12 #define TWR_SPIRIT1_MAX_PACKET_SIZE 64
bool twr_spirit1_deinit(void)
Deitialize.
void * twr_spirit1_get_rx_buffer(void)
Get RX buffer.
void * twr_spirit1_get_tx_buffer(void)
Get TX buffer.
void twr_spirit1_tx(void)
Enter TX state.
twr_spirit1_event_t
Callback events.
void twr_spirit1_set_rx_timeout(twr_tick_t timeout)
Set TX timeout.
size_t twr_spirit1_get_tx_length(void)
Get TX buffer length.
int twr_spirit1_get_rx_rssi(void)
Get RSSI.
void twr_spirit1_sleep(void)
Enter sleep state.
void twr_spirit1_set_tx_length(size_t length)
Set TX buffer length.
bool twr_spirit1_init(void)
Initialize.
size_t twr_spirit1_get_rx_length(void)
Get RX buffer length.
void twr_spirit1_rx(void)
Enter RX state.
void twr_spirit1_set_event_handler(void(*event_handler)(twr_spirit1_event_t, void *), void *event_param)
Set callback function.
@ TWR_SPIRIT1_EVENT_RX_TIMEOUT
Event is RX timeout.
@ TWR_SPIRIT1_EVENT_TX_DONE
Event is TX done.
@ TWR_SPIRIT1_EVENT_RX_DONE
Event is RX done.
uint64_t twr_tick_t
Timestamp data type.