Rev 2 | Rev 6 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 5 | ||
---|---|---|---|
Line 15... | Line 15... | ||
15 | typedef enum |
15 | typedef enum |
16 | { |
16 | { |
17 | DMX_IDLE, // nothing happening |
17 | DMX_IDLE, // nothing happening |
18 | DMX_BREAK, // |
18 | DMX_BREAK, // |
19 | DMX_BYTES, |
19 | DMX_BYTES, |
- | 20 | DMX_DATA, // got data |
|
- | 21 | DMX_DONE // finished with DMX data |
|
20 | 22 | ||
21 | } DMX_State_t; |
23 | } DMX_State_t; |
22 | 24 | ||
- | 25 | ||
23 | extern DMX_State_t DMX_State; |
26 | extern DMX_State_t DMX_State; |
24 | 27 | ||
- | 28 | extern uint8_t DMX_Buffer[512]; |
|
- | 29 | extern uint32_t DMX_Pointer; |
|
- | 30 | ||
- | 31 | ||
- | 32 | #pragma pack(push,1) |
|
25 | typedef struct |
33 | typedef struct |
26 | { |
34 | { |
27 | uint8_t fader; |
35 | uint8_t fader; |
28 | uint8_t red; |
36 | uint8_t red; |
29 | uint8_t green; |
37 | uint8_t green; |
30 | uint8_t blue; |
38 | uint8_t blue; |
- | 39 | uint8_t white; |
|
31 | } frgb_t; |
40 | } frgbw_t; |
32 | - | ||
- | 41 | #pragma pack(pop) |