Get next MAC sequence number. HOT PATH: Optimized counter increment
Incremented MAC sequence number (wraps at 255)
Process 802.15.4 MAC association request.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3.1):
Command data
Current offset in data
MAC header
New offset after processing
Process 802.15.4 MAC association response.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3.2.4):
Command data
Current offset in data
MAC header
New offset after processing
Process 802.15.4 MAC beacon request.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #5.3.3):
Command data (unused)
Current offset in data
MAC header (unused)
New offset after processing
Process 802.15.4 MAC command.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3):
Command payload (without MAC header)
Decoded MAC header for context
Process 802.15.4 MAC data request. Used by indirect transmission devices to retrieve information from parent.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3.4):
Per spec #6.3.4: "Upon receipt of data request, coordinator checks if data pending. If yes, sends frame. If no, sends ACK with framePending=false" This is handled correctly by the indirect transmission mechanism. DEVICE SCOPE: Coordinator, routers (N/A)
Command data (unused)
Current offset in data
MAC header
New offset after processing
Process disassociation motification
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.4.3.3):
Send 802.15.4 MAC association response
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3.2.5):
Destination IEEE address
Assigned network address
Association status
True if success sending
Send 802.15.4 MAC command
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.3 (MAC command frames)):
MAC command ID
Destination 16-bit address
Destination 64-bit address
Use extended source address
Command payload
True if success sending
Send 802.15.4 MAC frame. Checks if indirect transmission is needed for devices with rxOnWhenIdle=false.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.7.3 / #6.3.4):
MAC sequence number
MAC frame payload
Destination 16-bit address
Destination 64-bit address
True if success sending, undefined if set for indirect transmission
Send 802.15.4 MAC frame without checking for need to use indirect transmission.
SPEC COMPLIANCE NOTES (IEEE 802.15.4-2015 #6.7.1 / #6.7.4):
MAC sequence number
MAC frame payload
Destination 16-bit address
Destination 64-bit address
True if success sending
MAC Handler - IEEE 802.15.4 MAC Layer Protocol Operations
Responsibilities: