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

◆ nrf_802154_ie_writer_prepare()

void nrf_802154_ie_writer_prepare ( uint8_t *  p_ie_header,
const uint8_t *  p_end_addr 
)

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

Prepares to write Information Element data to all elements recognized by the module.

Calls to this function put the IE writer module into an armed state. In the armed state the addresses of recognized Information Element values are latched. The IE writer module shall perform necessary calculations and write the results to the latched addresses during the execution of either nrf_802154_ie_writer_tx_ack_started_hook or nrf_802154_ie_writer_tx_started_hook hooks.

It is expected, that the layout of the frame does not change while the IE writer is in armed state.

If this function detects a malformed header IE, the module state shall be reset to the unarmed state. There is no guarantee that all malformed header IEs will be detected, but it is guaranteed that the writer module shall never modify memory past the p_end_addr argument.

Parameters
[in]p_ie_headerAddress of the IE header.
[in]p_end_addrFirst invalid address after p_ie_header.