123
Fork of LG by
DeviceLightUp.h@161:efd949e8d536, 2016-05-15 (annotated)
- Committer:
- Diletant
- Date:
- Sun May 15 19:12:12 2016 +0000
- Revision:
- 161:efd949e8d536
- Parent:
- 156:e68ee0bcdcda
- Child:
- 167:bedc0a9d559a
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 | 161:efd949e8d536 | 21 | void DeviceLightUpDoCycle(void); |
Diletant | 149:abbf7663d27d | 22 | |
Diletant | 149:abbf7663d27d | 23 | #endif /* __DEVICE_LIGHT_UP_H__ */ |