summaryrefslogtreecommitdiff
path: root/ibus.h
diff options
context:
space:
mode:
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