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

◆ nrf_802154_csma_ca_start()

nrf_802154_tx_error_t nrf_802154_csma_ca_start ( const nrf_802154_frame_t * p_frame,
const nrf_802154_transmit_csma_ca_metadata_t * p_metadata )

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

Start 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_transmitted_raw 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.

Parameters
[in]p_framePointer to a frame data structure.
[in]p_metadataPointer to metadata structure. Contains detailed properties of data to transmit.
Return values
NRF_802154_TX_ERROR_NONEThe procedure started successfully.
NRF_802154_TX_ERROR_TIMESLOT_DENIEDThe transmission did not start due to a denied timeslot request.