summaryrefslogtreecommitdiff
path: root/app/include/zmk/split/bluetooth/uuid.h
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-01 22:27:01 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-17 22:43:40 -0400
commita165db63586f37531d5050623bc5a7bc96793d49 (patch)
treef0d9ce8d16642944cb1037feff292d3dc8899409 /app/include/zmk/split/bluetooth/uuid.h
parent3796f76c56d42ca9b4fd36edae7f6bf6656009b9 (diff)
Initial work on split central support.
Diffstat (limited to 'app/include/zmk/split/bluetooth/uuid.h')
-rw-r--r--app/include/zmk/split/bluetooth/uuid.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/include/zmk/split/bluetooth/uuid.h b/app/include/zmk/split/bluetooth/uuid.h
new file mode 100644
index 0000000..4fa7f40
--- /dev/null
+++ b/app/include/zmk/split/bluetooth/uuid.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <bluetooth/uuid.h>
+
+#ifndef BT_UUID_NUM_OF_DIGITALS
+#define BT_UUID_NUM_OF_DIGITALS BT_UUID_DECLARE_16(0x2909)
+#endif
+
+#define ZMK_SPLIT_BT_BASE_UUID 0x2a, 0x48, 0xc2, 0xb1, 0xcf, 0xc5, 0x67, 0xc9, 0x07, 0x71, 0x96, 0x00
+#define ZMK_SPLIT_BT_SERVICE_UUID ZMK_SPLIT_BT_BASE_UUID, 0x00, 0x00, 0x00, 0x00
+#define ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID ZMK_SPLIT_BT_BASE_UUID, 0x01, 0x00, 0x00, 0x00
+
+#define ZMK_BT_UUID_SPLIT BT_UUID_DECLARE_128(ZMK_SPLIT_BT_SERVICE_UUID)
+#define ZMK_BT_UUID_SPLIT_POS_STATE BT_UUID_DECLARE_128(ZMK_SPLIT_BT_CHAR_POSITION_STATE_UUID)