nRF5 SDK for Thread and Zigbee v3.2.0
Functions
CSMA-CA procedure

Functions

void nrf_802154_transmit_csma_ca (const uint8_t *p_data, uint8_t length)
 Perform CSMA-CA procedure and transmit frame in case of success. More...
 

Detailed Description

Function Documentation

void nrf_802154_transmit_csma_ca ( const uint8_t *  p_data,
uint8_t  length 
)

Perform CSMA-CA procedure and transmit frame in case of success.

The end of the CSMA-CA procedure is notified by nrf_802154_transmitted or nrf_802154_transmit_failed.

Note
The driver may be configured to automatically time out waiting for an ACK frame depending on NRF_802154_ACK_TIMEOUT_ENABLED. If automatic ACK timeout is disabled, the CSMA-CA procedure does not time out waiting for an ACK frame if a frame with the ACK request bit set was transmitted. The MAC layer should manage the timer to time out waiting for the ACK frame. This timer can be started by nrf_802154_tx_started. When the timer expires, the MAC layer should call nrf_802154_receive or nrf_802154_sleep to stop waiting for the ACK frame.
Before the CSMA-CA procedure is used, the application should initialize a random seed with srand.
Parameters
[in]p_dataPointer to the frame to transmit. See also nrf_802154_transmit.
[in]lengthLength of the given frame. See also nrf_802154_transmit.

Documentation feedback | Developer Zone | Subscribe | Updated