root / logic / trunk / src / init / devicelist.h @ 14
History | View | Annotate | Download (623 Bytes)
1 | 10 | Janez1 | #ifndef DEVICELIST_H_INCLUDED
|
---|---|---|---|
2 | #define DEVICELIST_H_INCLUDED
|
||
3 | |||
4 | //struct device_d ; /* Forward declaration */
|
||
5 | |||
6 | typedef struct device_d |
||
7 | { |
||
8 | char *name;
|
||
9 | char *id;
|
||
10 | int minval;
|
||
11 | int maxval;
|
||
12 | char *action;
|
||
13 | char *param;
|
||
14 | //TODO add circular buffer for each device
|
||
15 | struct device_d *nxt;
|
||
16 | }device; |
||
17 | |||
18 | void setNewDeviceList(); // ony called on startup |
||
19 | /*
|
||
20 | void updateDeviceList(device_d *deviceList); // called on HMI change
|
||
21 | char *getDeviceName();
|
||
22 | char *getDeviceID();
|
||
23 | ? requestDeviceUpdate(); //HMI naj nastavi parametre napravi
|
||
24 | /**/
|
||
25 | //check status?
|
||
26 | |||
27 | #endif // DEVICELIST_H_INCLUDED |