![]() |
nrfxlib API 3.3.99
|
#include "nrfx.h"#include "nrf_802154_const.h"#include "nrf_802154_utils_byteorder.h"#include <stdbool.h>#include <stdint.h>#include <stddef.h>Go to the source code of this file.
Data Structures | |
| struct | nrf_802154_frame_t |
Macros | |
| #define | NRF_802154_FRAME_INVALID_OFFSET 0xff |
Enumerations | |
| enum | nrf_802154_frame_parser_level_t { PARSE_LEVEL_NONE , PARSE_LEVEL_FCF_OFFSETS , PARSE_LEVEL_DST_ADDRESSING_END , PARSE_LEVEL_ADDRESSING_END , PARSE_LEVEL_SEC_CTRL_OFFSETS , PARSE_LEVEL_AUX_SEC_HDR_END , PARSE_LEVEL_FULL , PARSE_LEVEL_MAX = PARSE_LEVEL_FULL } |
Functions | |
| __STATIC_INLINE nrf_802154_frame_parser_level_t | nrf_802154_frame_parse_level_get (const nrf_802154_frame_t *p_parser_data) |
| Gets current parse level of the provided parser data. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_length_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the PSDU length of the frame. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_psdu_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the PSDU start offset of the frame. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_psdu_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the PSDU start address of the frame. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_version_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the MAC frame version value from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_dsn_suppress_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the DSN suppress bit from the Frame Control Field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_dst_addr_type_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the MAC frame destination address type from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_dst_addr_is_extended (const nrf_802154_frame_t *p_parser_data) |
| Determines if the destination address is extended. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_src_addr_type_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the MAC frame source address type from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_src_addr_is_extended (const nrf_802154_frame_t *p_parser_data) |
| Determines if the source address is extended. | |
| __STATIC_INLINE bool | nrf_802154_frame_src_addr_is_short (const nrf_802154_frame_t *p_parser_data) |
| Determines if the source address is short. | |
| __STATIC_INLINE bool | nrf_802154_frame_security_enabled_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the Security Enabled bit from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_ie_present_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the IE present bit from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_pending_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| __STATIC_INLINE uint8_t | nrf_802154_frame_type_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the frame type field from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_panid_compression_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the PAN ID compressions bit from the Frame Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_ar_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the AR bit from the Frame Control Field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_dsn_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the DSN field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_dst_panid_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Destination PAN ID field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_dst_panid_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Destination PAN field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_dst_addr_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of frame Destination Address. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_dst_addr_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Destination Address field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_src_panid_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of frame Source PAN ID. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_src_panid_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Source PAN ID field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_src_addr_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of frame Source Address. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_src_addr_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Source Address field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_src_addr_size_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the size of the source address. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_dst_addr_size_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the size of the destination address. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_sec_ctrl_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Security Control Field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_sec_ctrl_sec_lvl_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the Security Level field from the Security Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_sec_ctrl_fc_suppress_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the Frame Counter Suppress bit from the Security Control Field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_sec_ctrl_key_id_mode_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the Key ID Mode field from the Security Control Field. | |
| __STATIC_INLINE bool | nrf_802154_frame_sec_ctrl_asn_in_nonce_bit_is_set (const nrf_802154_frame_t *p_parser_data) |
| Gets the value of the ASN in Nonce bit from the Security Control Field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_sec_ctrl_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Security Control Field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_counter_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Frame Counter field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_counter_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Frame Counter field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_key_id_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Key ID field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_key_id_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Key ID field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_key_source_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Key Source field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_key_source_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Key Source field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_key_source_length_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the length of the Key Source field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_key_index_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the Key Index field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_key_index_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the Key Index field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_ie_header_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the IE header. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_ie_header_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the IE header. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mac_payload_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the MAC payload. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_mac_payload_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the MAC payload. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mac_command_id_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the MAC Command ID field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_mac_command_id_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the MAC Command ID field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mfr_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the offset of the MFR field. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_mfr_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the address of the MFR field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mic_size_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the length of the MIC field. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mac_payload_length_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the length of the MAC payload. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_mac_header_length_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the length of the MAC header. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_dst_addressing_end_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the end offset of the destination addressing section. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_dst_addressing_end_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the end address of the destination addressing section. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_addressing_end_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the end offset of the addressing section. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_addressing_end_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the end address of the addressing section. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_aux_sec_hdr_end_offset_get (const nrf_802154_frame_t *p_parser_data) |
| Gets the end offset of the security header section. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_header_ie_iterator_begin (const uint8_t *p_ie_header) |
| Initializes the IE iterator with given IE header address. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_ie_content_address_get (const uint8_t *p_ie_iterator) |
| Gets payload address of currently iterated IE. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_ie_length_get (const uint8_t *p_ie_iterator) |
| Gets length of currently iterated IE. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_ie_iterator_next (const uint8_t *p_ie_iterator) |
| Gets next information element iterator. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_ie_id_get (const uint8_t *p_ie_iterator) |
| Gets identifier of currently iterated IE. | |
| __STATIC_INLINE bool | nrf_802154_frame_ie_iterator_end (const uint8_t *p_ie_iterator, const uint8_t *p_end_addr) |
| Checks if the current IE is a terminator. | |
| __STATIC_INLINE uint32_t | nrf_802154_frame_ie_vendor_oui_get (const uint8_t *p_ie_iterator) |
| Gets vendor-specific OUI (organizationally unique identifier) of currently iterated IE. | |
| __STATIC_INLINE uint8_t | nrf_802154_frame_ie_vendor_thread_subtype_get (const uint8_t *p_ie_iterator) |
| Gets subtype of Thread vendor-specific IE. | |
| __STATIC_INLINE const uint8_t * | nrf_802154_frame_ie_vendor_thread_data_addr_get (const uint8_t *p_ie_iterator) |
| Gets vendor-specific IE thread data address of currently iterated IE. | |