nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_802154_trx_transmit_ack()

bool nrf_802154_trx_transmit_ack ( const void *  p_transmit_buffer,
uint32_t  delay_us 
)

Puts the trx module into transmit ACK mode.

Note
This function may be called from nrf_802154_trx_receive_frame_received handler only. This is because in this condition only the TIMER peripheral is running and allows timed transmission.
Parameters
[in]p_transmit_bufferPointer to a buffer containing ACK frame to be transmitted. Caller is responsible for preparing an ACK frame according to the 802.15.4 protocol.
[in]delay_usDelay (in microseconds)
Return values
trueIf the function was called in time and ACK frame is scheduled for transmission. When transmission starts the function nrf_802154_trx_transmit_ack_started will be called. When transmission is finished the function nrf_802154_trx_transmit_ack_transmitted will be called.
falseIf the function was called too late and given delay_us time gap between received frame and ACK frame transmission could not be hold. The TIMER peripheral is stopped and it is not possible to trigger nrf_802154_trx_transmit_ack again without receiving another frame again. No handlers will be called.