feat: add initial Bluetooth LE module

This commit is contained in:
Dien-Nhung Nguyen-Phu
2024-06-23 19:22:20 +07:00
parent 2383bf65e5
commit 8274cab154
12 changed files with 5167 additions and 3 deletions

23
src/ble/common.h Normal file
View File

@@ -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__ */