summaryrefslogtreecommitdiff
path: root/interfaces/device.idl
blob: 130663981e81495d8d6bd76301cec9591b2c8208 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
	};

};