nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_802154_csma_ca_abort()

bool nrf_802154_csma_ca_abort ( nrf_802154_term_t  term_lvl,
req_originator_t  req_orig 
)

#include <nrf_802154/driver/src/mac_features/nrf_802154_csma_ca.h>

Aborts the ongoing CSMA-CA procedure.

Note
Do not call this function during the execution of nrf_802154_csma_ca_start (from ISR with higher priority), as it will result in an unrecoverable runtime error.

If CSMA-CA is not running during the call, this function does nothing and returns true.

Parameters
[in]term_lvlTermination level of this request. Selects procedures to abort.
[in]req_origModule that originates this request.
Return values
trueCSMA-CA procedure is not running anymore.
falseCSMA-CA cannot be stopped because of a too low termination level.