From 379492ff3c10eef6479fd85418b797f97889d3f9 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Mon, 28 May 2012 17:03:11 +0200 Subject: interfaces first draft first idea of an interface description to control io s Signed-off-by: Manuel Traut --- interfaces/device.idl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 interfaces/device.idl (limited to 'interfaces/device.idl') diff --git a/interfaces/device.idl b/interfaces/device.idl new file mode 100644 index 0000000..1306639 --- /dev/null +++ b/interfaces/device.idl @@ -0,0 +1,26 @@ +include common.idl +include io.idl + +module device { + + enum function_id { + START; + STOP; + }; + + struct function { + string description; + int value; + enum fundtion_id id; + }; + + interface device { + common.error name (out string name); + common.error execute (in device.function); + common.error functions (out list ); + int id; + list analog; + list digital; + }; + +}; -- cgit v1.2.3