41 typedef uint16_t (*
pios_com_callback)(uintptr_t context, uint8_t * buf, uint16_t buf_len, uint16_t * headroom,
bool * task_woken);
64 extern uint16_t
PIOS_COM_ReceiveBuffer(uintptr_t com_id, uint8_t * buf, uint16_t buf_len, uint32_t timeout_ms);
bool(* available)(uintptr_t id)
int32_t PIOS_COM_SendString(uintptr_t com_id, const char *str)
int32_t PIOS_COM_SendBufferNonBlocking(uintptr_t com_id, const uint8_t *buffer, uint16_t len)
int32_t PIOS_COM_SendFormattedStringNonBlocking(uintptr_t com_id, const char *format,...)
void(* bind_tx_cb)(uintptr_t id, pios_com_callback tx_out_cb, uintptr_t context)
int32_t PIOS_COM_SendStringNonBlocking(uintptr_t com_id, const char *str)
int32_t PIOS_COM_SendChar(uintptr_t com_id, char c)
uint16_t PIOS_COM_ReceiveBuffer(uintptr_t com_id, uint8_t *buf, uint16_t buf_len, uint32_t timeout_ms)
uintptr_t PIOS_COM_GetDriverCtx(uintptr_t com_id)
int32_t PIOS_COM_SendFormattedString(uintptr_t com_id, const char *format,...)
uint16_t PIOS_COM_GetNumReceiveBytesPending(uintptr_t com_id)
int32_t PIOS_COM_SendCharNonBlocking(uintptr_t com_id, char c)
int32_t PIOS_COM_SendBuffer(uintptr_t com_id, const uint8_t *buffer, uint16_t len)
void(* rx_start)(uintptr_t id, uint16_t rx_bytes_avail)
int32_t PIOS_COM_SendBufferStallTimeout(uintptr_t com_id, const uint8_t *buffer, uint16_t len, uint32_t max_ms)
void(* bind_rx_cb)(uintptr_t id, pios_com_callback rx_in_cb, uintptr_t context)
void(* tx_start)(uintptr_t id, uint16_t tx_bytes_avail)
uint16_t(* pios_com_callback)(uintptr_t context, uint8_t *buf, uint16_t buf_len, uint16_t *headroom, bool *task_woken)
int32_t PIOS_COM_ChangeBaud(uintptr_t com_id, uint32_t baud)
bool PIOS_COM_Available(uintptr_t com_id)
void(* set_baud)(uintptr_t id, uint32_t baud)