summaryrefslogtreecommitdiff
path: root/interfaces/device.idl
diff options
context:
space:
mode:
authorManuel Traut <manut@mecka.net>2012-05-28 17:03:11 +0200
committerManuel Traut <manut@mecka.net>2012-05-28 17:03:11 +0200
commit379492ff3c10eef6479fd85418b797f97889d3f9 (patch)
tree6ec8ee28aec613377fab4d9e75bc5afab152e1f5 /interfaces/device.idl
interfaces first draft
first idea of an interface description to control io s Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'interfaces/device.idl')
-rw-r--r--interfaces/device.idl26
1 files changed, 26 insertions, 0 deletions
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 <device.function>);
+ int id;
+ list <io.analog> analog;
+ list <io.digital> digital;
+ };
+
+};