#include <nrf_802154/common/include/nrf_802154_callouts.h>
Notifies that a frame was transmitted.
- Note
- If ACK was requested for the transmitted frame, this function is called after a proper ACK is received. If ACK was not requested, this function is called just after transmission has ended.
-
The buffer pointed to by
nrf_802154_transmit_done_metadata_t::data.transmitted.p_ack
is not modified by the radio driver (and cannot be used to receive a frame) until nrf_802154_buffer_free is called.
-
The buffer pointed to by
nrf_802154_transmit_done_metadata_t::data.transmitted.p_ack
may be modified by the function handler (and other modules) until nrf_802154_buffer_free is called.
-
The next higher layer must handle either nrf_802154_transmitted or nrf_802154_transmitted_raw. It should not handle both functions.
-
nrf_802154_transmit_done_metadata_t::data.transmitted.time
granularity depends on the granularity of the timer driver in the platform/timer directory.
-
Including a timestamp for received frames uses resources like CPU time and memory. If the timestamp is not required, use nrf_802154_received instead.
-
This callout is called by the nRF 802.15.4 Radio Driver if NRF_802154_USE_RAW_API is disabled.
- Parameters
-
[in] | p_frame | Pointer to a buffer that contains PHR and PSDU of the transmitted frame. |
[in] | p_metadata | Pointer to a metadata structure describing frame passed in p_frame . |