Routine infrastructure

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

View file

@ -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_ */