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

◆ nrf_802154_ack_generator_create()

uint8_t * nrf_802154_ack_generator_create ( const nrf_802154_frame_t * p_frame_data,
const nrf_802154_peer_rec_t * p_peer_rec )

Create an ACK in response to the provided frame and insert it into a radio buffer.

Note
Only those contents of the frame being acknowledged marked by p_frame_data as valid are used for ACK generation. If any data necessary to generate an ACK is missing or marked as invalid by p_frame_data, this function returns NULL. Once more data becomes available and valid, this function can be called again and the generation will be continued. That allows for generating ACK iteratively as data to be acknowledged is being received.
Parameters
[in]p_frame_dataPointer to the parser data of the frame for which an Ack will be generated.
[in]p_peer_recInformation record about the peer the p_frame_data is received from. May be NULL if peer not found.
Returns
Either pointer to a constant buffer that contains PHR and PSDU of the created ACK frame, or NULL when the response cannot be created.