30 lines
650 B
C

/**
* @file ble_up.h
* @brief CLI output uplink over BLE notify (rdtss service).
*/
#ifndef __BLE_UP_H__
#define __BLE_UP_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
/* Enqueue uplink bytes (any task context). Dropped when notify is off or
* the buffer is full. */
void ble_up_write(const uint8_t* data, uint16_t len);
/* Flush pending uplink bytes, one <=20B chunk per notify. BLE schedule task
* context only (ke_msg constraint). */
void ble_up_poll(void);
/* Called from the rdtss notification-confirm handler to pace the next chunk */
void ble_up_on_cfm(void);
#ifdef __cplusplus
}
#endif
#endif /* __BLE_UP_H__ */