42#define TLM_BLE_RING_SIZE 2048u
43#define TLM_BLE_MTU_DEFAULT 23u
52#define TLM_BLE_CMD_SEND_INIT 0x01u
53#define TLM_BLE_CMD_STATE_DECIM 0x02u
int tlm_ble_push(const uint8_t *frame, uint16_t len)
Queue a whole frame or nothing.
uint16_t tlm_ble_peek(uint8_t *dst, uint16_t max)
Copies up to max bytes of the next notification into dst without removing them; tlm_ble_consume(n) wi...
void tlm_ble_set_state(tlm_ble_state_t s)
int tlm_ble_want_state(uint16_t seq)
1 if a STATE frame with this sequence number must go over BLE (decimation)
volatile uint8_t g_dbg_ble_stall
Bench test of HANDOVER_FW.md §6 / §16.12 (debugger Live Expression): 1 = the BLE path stops on purpos...
void tlm_ble_consume(uint16_t n)
void tlm_ble_on_command(const uint8_t *data, uint16_t len)
legacy 0x01/0x02
uint16_t tlm_ble_hi_free(void)
bytes free in HI
int tlm_ble_take_subscribe(void)
1 once after a client enabled notifications (AppTask: CAPS, INIT, CHECKS)
uint16_t tlm_ble_mtu(void)
int tlm_ble_push_hi(const uint8_t *frame, uint16_t len)
HI: AppTask
uint8_t tlm_ble_state_decim(void)
@ TLM_BLE_OFF
BLE not compiled in or stack not started
@ TLM_BLE_CONNECTED
central connected, notifications not enabled
@ TLM_BLE_READY
service registered, advertising
uint16_t tlm_ble_chunk_max(void)
ATT_MTU - 3.
uint32_t tlm_ble_dropped(void)
void tlm_ble_discard(void)
drop everything queued (consumer side)
uint16_t tlm_ble_queued(void)
tlm_ble_state_t tlm_ble_state(void)
void tlm_ble_set_mtu(uint16_t att_mtu)
void tlm_ble_set_error(uint8_t ble_status)
last non-recoverable stack error
void tlm_ble_open_streams(void)
uint8_t tlm_ble_error(void)
int tlm_ble_take_init_request(void)
1 once after the legacy [0x01] command: send INIT now (TelemetryTask)