Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ieee802154.h File Reference

IEEE 802.15.4 native L2 stack public header. More...

Go to the source code of this file.

Data Structures

struct  ieee802154_security_ctx
 Interface-level security attributes, see section 9.5. More...
 
struct  ieee802154_context
 IEEE 802.15.4 L2 context. More...
 

Macros

#define IEEE802154_MAX_PHY_PACKET_SIZE   127
 Represents the PHY constant aMaxPhyPacketSize, see section 11.3.
 
#define IEEE802154_FCS_LENGTH   2
 Represents the frame check sequence length, see section 7.2.1.1.
 
#define IEEE802154_MTU   (IEEE802154_MAX_PHY_PACKET_SIZE - IEEE802154_FCS_LENGTH)
 IEEE 802.15.4 "hardware" MTU (not to be confused with L3/IP MTU), i.e.
 
#define IEEE802154_SHORT_ADDR_LENGTH   2
 IEEE 802.15.4 short address length.
 
#define IEEE802154_EXT_ADDR_LENGTH   8
 IEEE 802.15.4 extended address length.
 
#define IEEE802154_MAX_ADDR_LENGTH   IEEE802154_EXT_ADDR_LENGTH
 IEEE 802.15.4 maximum address length.
 
#define IEEE802154_NO_CHANNEL   USHRT_MAX
 A special channel value that symbolizes "all" channels or "any" channel - depending on context.
 
#define IEEE802154_BROADCAST_ADDRESS   0xffff
 Represents the IEEE 802.15.4 broadcast short address, see sections 6.1 and 8.4.3, table 8-94, macShortAddress.
 
#define IEEE802154_NO_SHORT_ADDRESS_ASSIGNED   0xfffe
 Represents a special IEEE 802.15.4 short address that indicates that a device has been associated with a coordinator but did not receive a short address, see sections 6.4.1 and 8.4.3, table 8-94, macShortAddress.
 
#define IEEE802154_BROADCAST_PAN_ID   0xffff
 Represents the IEEE 802.15.4 broadcast PAN ID, see section 6.1.
 
#define IEEE802154_SHORT_ADDRESS_NOT_ASSOCIATED   IEEE802154_BROADCAST_ADDRESS
 Represents a special value of the macShortAddress MAC PIB attribute, while the device is not associated, see section 8.4.3, table 8-94.
 
#define IEEE802154_PAN_ID_NOT_ASSOCIATED   IEEE802154_BROADCAST_PAN_ID
 Represents a special value of the macPanId MAC PIB attribute, while the device is not associated, see section 8.4.3, table 8-94.
 

Enumerations

enum  ieee802154_device_role { IEEE802154_DEVICE_ROLE_ENDDEVICE , IEEE802154_DEVICE_ROLE_COORDINATOR , IEEE802154_DEVICE_ROLE_PAN_COORDINATOR }
 IEEE 802.15.4 device role. More...
 

Detailed Description

IEEE 802.15.4 native L2 stack public header.

Note
All references to the standard in this file cite IEEE 802.15.4-2020.