71 uint8_t frameType : 3;
72 bool securityEnabled : 1;
73 bool framePending : 1;
75 bool panIdCompression : 1;
77 uint8_t destAddrMode : 2;
78 uint8_t frameVersion : 2;
79 uint8_t srcAddrMode : 2;
90 uint8_t dest_addr_len;
98 uint8_t security_level : 3;
99 uint8_t key_id_mode : 2;
100 uint8_t reserved : 3;
123 #define FIXEDFRAMEOVERHEAD (5)
182 uint8_t * aux_sec_hdr;
184 uint8_t payload_length;
199 void frame_rx_callback(uint16_t data);
PAN_ID_ADDR_SPEC_t destAddrFields
Destination address.
uint8_t length
Length (in bytes) of created frame.
ADDR_SIZE_SPEC_t addrSpec
A short or long address.
uint16_t src_pid
Source PAN ID.
uint8_t seq
Sequence number.
uint8_t payload_len
Length of payload field.
Structure containing a PAN ID and an address.
PAN_ID_ADDR_SPEC_t srcAddrFields
Source address.
void rx_frame_parse(hal_rx_frame_t *rx_frame, parsed_frame_t *pf)
Parses an input frame.
Structure containing both source and destination addresses.
scf_t security_control
Security control bitfield.
uint64_t longAddr
Long address, eight bytes.
void frame_tx_create(frame_create_params_t *p, frame_result_t *frame_result)
Creates a frame for transmission over the air.
This file contains low-level radio driver code.
This struct defines the rx data container.
uint32_t frame_counter
Frame counter, used for security.
uint8_t * frame
Pointer to created frame.
Strucure used to return that status of the frame create process.
aux_hdr_t aux_hdr
Aux security header.
uint16_t shortAddr
Short address, two bytes.
addr_t src_addr
Source address.
uint64_t addr64
Long address.
uint16_t dest_pid
Destination PAN ID.
uint16_t addr16
Short address.
addr_t dest_addr
Destination address.
Union of both short and long addresses.
Parameters used by the frame_tx_create() function.
802.15.4 Aux security header
802.15.4 security control bitfield.
uint16_t word_val
A word-wide value for the entire FCF.
fcf_t fcf
Frame control field.
A union of short and long address types.
uint8_t * payload
Pointer to 802.15.4 frame payload.
Defines the bitfields of the frame control field (FCF).