nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_802154_csma_ca_cancel()

void nrf_802154_csma_ca_cancel ( void )

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

Cancel the CSMA-CA procedure.

Cancels the scheduled CSMA-CA delayed timeslot (backoff) and resets the CSMA-CA state machine to its initial (idle) state. This does not request termination of a frame transmission that is already in progress from this procedure.

Note
If no transmit attempt is active, the upper layer will not receive transmit success or failure callbacks for the cancelled procedure. If a transmit is already in progress (or completes after this call), the upper layer still receives the usual notifications (either nrf_802154_transmitted_raw or nrf_802154_transmit_failed) so that the frame outcome and metadata (for example ACK-related data) are reported and buffers can be released. However there is one exception to this rule. When CSMA-CA procedure is failed due to busy channel, the notification is sent to the user immediately and next random backoff should not be started.