aboutsummaryrefslogtreecommitdiff
path: root/common/protocol.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-10-02 01:23:31 +0200
committerjaseg <git@jaseg.de>2023-10-02 01:23:31 +0200
commitc8623eb4c6c1464ffd49e83126e66d71ba5bf862 (patch)
tree55151e10f1ca05f2539de59778e757819038678e /common/protocol.h
parent67e30fa91e12b452c1a18f6c5eb8a33cdb9ec625 (diff)
download8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.tar.gz
8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.tar.bz2
8seg-c8623eb4c6c1464ffd49e83126e66d71ba5bf862.zip
8b10b issues
Diffstat (limited to 'common/protocol.h')
-rw-r--r--common/protocol.h13
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__ */