nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ esb_flush_tx()

int esb_flush_tx ( void )

#include <include/esb.h>

Flush the TX buffer.

This function clears the TX FIFO buffer.

Note
The radio must not be in transmission state for this operation to succeed. This requirement prevents erroneous operations on the FIFO queue that could occur if the buffer is cleared while the radio is transmitting.
Return values
0If successful (FIFO cleared).
-EACCESIf ESB is not initialized.
-EBUSYIf radio is transmitting.