diff options
| author | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-06-23 19:22:20 +0700 |
|---|---|---|
| committer | Dien-Nhung Nguyen-Phu <kein@kienlab.com> | 2024-06-23 19:33:13 +0700 |
| commit | 8274cab154f198447f12028e1686bbe2a6de6ebd (patch) | |
| tree | 35c825b6551afad7688813d7de510111a67bf007 /src/ble/common.h | |
| parent | 2383bf65e5f3ee9bc58877905dd29eed2e194d19 (diff) | |
feat: add initial Bluetooth LE module
Diffstat (limited to 'src/ble/common.h')
| -rw-r--r-- | src/ble/common.h | 23 |
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__ */ |