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

◆ nrf_802154_csma_ca_start()

bool nrf_802154_csma_ca_start ( uint8_t *  p_data,
const nrf_802154_transmit_csma_ca_metadata_t p_metadata 
)

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

Starts the CSMA-CA procedure for the transmission of a given frame.

If the CSMA-CA procedure is successful and the frame is transmitted, the nrf_802154_tx_started() function is called. If the procedure failed and the frame cannot be transmitted due to busy channel, the nrf_802154_transmit_failed() function is called.

Note
CSMA-CA does not time out automatically when waiting for ACK. Waiting for ACK must be timed out by the next layer. The ACK timeout timer must start when the nrf_802154_tx_started() function is called.
Parameters
[in]p_dataPointer to a buffer the contains PHR and PSDU of the frame that is to be transmitted.
[in]p_metadataPointer to metadata structure. Contains detailed properties of data to transmit.
Return values
trueThe function always returns true for compatibility reasons