Contiki-NG
|
The IEEE 802.15.4 frame has a number of constant/fixed fields that can be counted to make frame construction and max payload calculations easier. More...
#include <os/net/mac/framer/frame802154.h>
Data Fields | |
uint8_t | frame_type |
3 bit. More... | |
uint8_t | security_enabled |
1 bit. More... | |
uint8_t | frame_pending |
1 bit. More... | |
uint8_t | ack_required |
1 bit. More... | |
uint8_t | panid_compression |
1 bit. More... | |
uint8_t | sequence_number_suppression |
< 1 bit. More... | |
uint8_t | ie_list_present |
1 bit. More... | |
uint8_t | dest_addr_mode |
2 bit. More... | |
uint8_t | frame_version |
2 bit. More... | |
uint8_t | src_addr_mode |
2 bit. More... | |
The IEEE 802.15.4 frame has a number of constant/fixed fields that can be counted to make frame construction and max payload calculations easier.
These include:
Definition at line 152 of file frame802154.h.
uint8_t frame802154_fcf_t::ack_required |
1 bit.
Is an ack frame required?
Definition at line 156 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), and tsch_radio_off().
uint8_t frame802154_fcf_t::dest_addr_mode |
2 bit.
Destination address mode, see 802.15.4
Definition at line 161 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), and frame802154_parse().
uint8_t frame802154_fcf_t::frame_pending |
1 bit.
True if sender has more data to send
Definition at line 155 of file frame802154.h.
Referenced by frame802154_create(), and frame802154_hdrlen().
uint8_t frame802154_fcf_t::frame_type |
3 bit.
Frame type field, see 802.15.4
Definition at line 153 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), sixtop_input(), tsch_packet_parse_eb(), tsch_radio_off(), and tsch_schedule_keepalive_immediately().
uint8_t frame802154_fcf_t::frame_version |
2 bit.
802.15.4 frame version
Definition at line 162 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), sixtop_input(), tsch_packet_parse_eb(), and tsch_schedule_keepalive_immediately().
uint8_t frame802154_fcf_t::ie_list_present |
1 bit.
Does the header contain Information Elements?, see 802.15.4e
Definition at line 160 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), sixtop_input(), tsch_packet_parse_eack(), and tsch_packet_parse_eb().
uint8_t frame802154_fcf_t::panid_compression |
1 bit.
Is this a compressed header?
Definition at line 157 of file frame802154.h.
Referenced by frame802154_create(), and frame802154_hdrlen().
uint8_t frame802154_fcf_t::security_enabled |
1 bit.
True if security is used in this frame
Definition at line 154 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), frame802154_parse(), tsch_disassociate(), tsch_security_mic_len(), tsch_security_parse_frame(), and tsch_security_secure_frame().
uint8_t frame802154_fcf_t::sequence_number_suppression |
< 1 bit.
Unused bit 1 bit. Does the header omit sequence number?, see 802.15.4e
Definition at line 159 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), and frame802154_parse().
uint8_t frame802154_fcf_t::src_addr_mode |
2 bit.
Source address mode, see 802.15.4
Definition at line 163 of file frame802154.h.
Referenced by frame802154_create(), frame802154_hdrlen(), and frame802154_parse().