BLE stack groundwork

This commit is contained in:
Aaron Cook 2025-08-31 12:59:01 -05:00
commit 603ef99919
8 changed files with 461 additions and 7 deletions

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