Routine infrastructure
This commit is contained in:
parent
603ef99919
commit
9f005b547b
11 changed files with 527 additions and 30 deletions
14
core/ble.h
14
core/ble.h
|
|
@ -1,19 +1,15 @@
|
|||
#ifndef _BLE_H_
|
||||
#define _BLE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "includes/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);
|
||||
void ble_tick(void);
|
||||
|
||||
#endif /* _BLE_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue