BLE stack groundwork
This commit is contained in:
parent
8650335ad8
commit
979b906f4f
8 changed files with 461 additions and 7 deletions
19
core/ble.h
Normal file
19
core/ble.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef _BLE_H_
|
||||
#define _BLE_H_
|
||||
|
||||
/**
|
||||
* @brief Enable Bluetooth, setup default services, and begin advertising
|
||||
*/
|
||||
int ble_init(void);
|
||||
|
||||
/**
|
||||
* @brief Register a callback to occur when a new complete input is sent
|
||||
*/
|
||||
void ble_register_oninput_callback(void (*callback)(const void *buffer, uint16_t buffer_len));
|
||||
|
||||
/**
|
||||
* @brief Set a new value for telemetry data
|
||||
*/
|
||||
void ble_set_telemetry_data(const void *buffer, uint16_t buffer_len);
|
||||
|
||||
#endif /* _BLE_H_ */
|
||||
Loading…
Reference in a new issue