123
Fork of LG by
DeviceLightUp.h@156:e68ee0bcdcda, 2016-05-09 (annotated)
- Committer:
- Diletant
- Date:
- Mon May 09 20:03:26 2016 +0000
- Revision:
- 156:e68ee0bcdcda
- Parent:
- 149:abbf7663d27d
- Child:
- 161:efd949e8d536
Device & ... update. Not final!!!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Diletant | 149:abbf7663d27d | 1 | #ifndef __DEVICE_LIGHT_UP_H__ |
Diletant | 149:abbf7663d27d | 2 | #define __DEVICE_LIGHT_UP_H__ |
Diletant | 149:abbf7663d27d | 3 | |
Diletant | 149:abbf7663d27d | 4 | typedef struct _DeviceLightUpSettings { |
Diletant | 149:abbf7663d27d | 5 | uint32_t sequence; |
Diletant | 149:abbf7663d27d | 6 | } DeviceLightUpSettings; |
Diletant | 149:abbf7663d27d | 7 | |
Diletant | 149:abbf7663d27d | 8 | typedef struct _DeviceLightUpState { |
Diletant | 149:abbf7663d27d | 9 | uint32_t sequence; |
Diletant | 149:abbf7663d27d | 10 | uint8_t enabled; |
Diletant | 149:abbf7663d27d | 11 | } DeviceLightUpState; |
Diletant | 149:abbf7663d27d | 12 | |
Diletant | 149:abbf7663d27d | 13 | typedef struct _DeviceLightUp { |
Diletant | 149:abbf7663d27d | 14 | DeviceLightUpSettings settings; |
Diletant | 149:abbf7663d27d | 15 | DeviceLightUpState state; |
Diletant | 149:abbf7663d27d | 16 | } DeviceLightUp; |
Diletant | 149:abbf7663d27d | 17 | |
Diletant | 149:abbf7663d27d | 18 | void InitLightUpWithDefaults(void); |
Diletant | 149:abbf7663d27d | 19 | void InitLightUp(void); |
Diletant | 156:e68ee0bcdcda | 20 | void DeviceStartLightUp(void); |
Diletant | 156:e68ee0bcdcda | 21 | void DeviceLightUpCycle(void); |
Diletant | 149:abbf7663d27d | 22 | |
Diletant | 149:abbf7663d27d | 23 | #endif /* __DEVICE_LIGHT_UP_H__ */ |