summaryrefslogtreecommitdiff
path: root/ibus.h
diff options
context:
space:
mode:
authorLenczu Vex <kuba.lenczowski03@gmail.com>2024-10-13 00:37:05 +0200
committerLenczu Vex <kuba.lenczowski03@gmail.com>2024-10-13 00:37:05 +0200
commit3f96783eba8768109b449e0aebed67052e832661 (patch)
tree7882655767a70d2c3a9bd2269e3873e34de443d5 /ibus.h
parentd278e9e866802734fff1c11a38771028db36b085 (diff)
Fixes and some redesign
Diffstat (limited to 'ibus.h')
-rw-r--r--ibus.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ibus.h b/ibus.h
index 3be61c8..fb1d7fb 100644
--- a/ibus.h
+++ b/ibus.h
@@ -1,7 +1,13 @@
+#ifndef IBUS_H
+#define IBUS_H
+
+#include <stdint.h>
+
#define IBusSize 34
#define channelC 15
-#define startByteAlpha 0x20
+#define IBusSize 0x20
#define startByteBeta 0x40
-typedef char[IBusSize] IBusFrame
-typedef unsigned short int[15] channelValues
+typedef uint8_t[IBusSize] IBusFrame
+typedef uint16_t[15] channelValues
+#endif