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

◆ nrf_802154_frame_parser_data_init()

bool nrf_802154_frame_parser_data_init ( const uint8_t *  p_frame,
uint8_t  valid_data_len,
nrf_802154_frame_parser_level_t  requested_parse_level,
nrf_802154_frame_parser_data_t p_parser_data 
)

Initializes the frame parse data and parses the frame.

This function initializes and parses the given frame to the requested level. The parsing is performed to the extent that is achievable with the amount of valid data. The resulting parse level may be higher that the requested one, if it can be achieved without additional parsing.

Parameters
[in]p_framePointer to a frame.
[in]valid_data_lenNumber of valid bytes in the frame.
[in]requested_parse_levelRequested parse level.
[out]p_parser_dataPointer to a parser data that will be initialized.
Return values
trueThe parsing succeeded and requested parse level was achieved.
falseThe parsing failed or requested parse level could not be achieved.