nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_802154_trx_receive_is_buffer_missing()

bool nrf_802154_trx_receive_is_buffer_missing ( void  )

Checks if current receive operation was started without providing receive buffer.

It may happen that nrf_802154_trx_receive_frame or nrf_802154_trx_receive_ack have been started when there was no receive buffer set. The RADIO peripheral will start ramping up, but it will remain in RXIDLE state, because of missing receive buffer. This function allows to check if such situation occurred.

Usually this function may be called by buffer management subsystem when buffer becomes available. Consider following code snippet:

void buffer_is_available_callback(void * p_buffer)
{
{
}
}
bool nrf_802154_trx_receive_buffer_set(void *p_receive_buffer)
Sets pointer to a receive buffer.
bool nrf_802154_trx_receive_is_buffer_missing(void)
Checks if current receive operation was started without providing receive buffer.
Return values
trueWhen in receive mode and receive buffer is missing
falseOtherwise.