Routine infrastructure

This commit is contained in:
Aaron Cook 2025-08-31 22:03:41 -05:00
commit 9f005b547b
11 changed files with 527 additions and 30 deletions

22
includes/ble.h Normal file
View 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_ */