![]() |
nrfxlib API 3.3.99
|
| 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.
| [in] | p_frame | Pointer to a frame data structure. |
| [in] | p_metadata | Pointer to metadata structure. Contains detailed properties of data to transmit. |
| NRF_802154_TX_ERROR_NONE | The procedure started successfully. |
| NRF_802154_TX_ERROR_TIMESLOT_DENIED | The transmission did not start due to a denied timeslot request. |