diff options
Diffstat (limited to 'common/protocol.h')
-rw-r--r-- | common/protocol.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/protocol.h b/common/protocol.h new file mode 100644 index 0000000..30f3e0c --- /dev/null +++ b/common/protocol.h @@ -0,0 +1,13 @@ +#ifndef __PROTOCOL_H__ +#define __PROTOCOL_H__ + +#include <stdint.h> + +struct __attribute__((__packed__)) data_packet { + uint8_t channels[16]; + uint8_t brightness[8]; + uint8_t flags; + uint32_t crc; +}; + +#endif /* __PROTOCOL_H__ */ |