Routine infrastructure
This commit is contained in:
parent
979b906f4f
commit
17b3f0a89f
11 changed files with 527 additions and 30 deletions
22
includes/ble.h
Normal file
22
includes/ble.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef _INCLUDES_BLE_H_
|
||||
#define _INCLUDES_BLE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @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 Clear the on-input callback registered with
|
||||
* ble_register_oninput_callback
|
||||
*/
|
||||
void ble_clear_oninput_callback(void);
|
||||
|
||||
/**
|
||||
* @brief Set a new value for telemetry data
|
||||
*/
|
||||
void ble_set_telemetry_data(const void *buffer, uint16_t buffer_len);
|
||||
|
||||
#endif /* _INCLUDES_BLE_H_ */
|
||||
Loading…
Reference in a new issue