aboutsummaryrefslogtreecommitdiff
path: root/src/ble/common.h
diff options
context:
space:
mode:
authorFrançois Cartegnie <281376+fcartegnie@users.noreply.github.com>2024-07-09 08:46:19 +0200
committerGitHub <noreply@github.com>2024-07-09 08:46:19 +0200
commita6c62295e92b3d960700508a445be1fba71a3cc2 (patch)
tree35c825b6551afad7688813d7de510111a67bf007 /src/ble/common.h
parent69b530cbbb72ad9e4b9a7a6c4742f29540664d00 (diff)
parent8274cab154f198447f12028e1686bbe2a6de6ebd (diff)
Merge pull request #30 from kienvo/ble-init
feat: Bluetooth LE initial setup
Diffstat (limited to 'src/ble/common.h')
-rw-r--r--src/ble/common.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ble/common.h b/src/ble/common.h
new file mode 100644
index 0000000..6c03121
--- /dev/null
+++ b/src/ble/common.h
@@ -0,0 +1,23 @@
+/**
+ * This file contain high-level data structures for differents BLE chip.
+ *
+ */
+
+#ifndef __BLE_H__
+#define __BLE_H__
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef struct {
+ uint8_t *bytes;
+ int size;
+} byte_t;
+
+typedef struct {
+ byte_t val; // Values
+ uint8_t props; // Properties //TODO: add enum
+ byte_t uuid;
+} ble_char_t;
+
+#endif /* __BLE_H__ */