aboutsummaryrefslogtreecommitdiff
path: root/src/ble/common.h
blob: 6c031215a6fca8b21d9ab686719d47610d09f0c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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__ */