Expand description
IEEE 802.15.4 (Zigbee / Dot15d4) protocol layer implementation.
Provides full 802.15.4 MAC frame parsing, building, and field access with:
- Frame Control Field (FCF) with all flag/mode fields
- Variable-length addressing (short and long addresses)
- PAN ID compression support
- Auxiliary Security Header (optional)
- Beacon frames with superframe spec, GTS, and pending addresses
- MAC command frames with all command payloads
- FCS (CRC-16 CCITT Kermit) computation and verification
All fields are little-endian as per the IEEE 802.15.4 standard.
Re-exports§
pub use builder::Dot15d4Builder;pub use builder::Dot15d4FcsBuilder;
Modules§
- beacon
- IEEE 802.15.4 Beacon frame parsing and building.
- builder
- IEEE 802.15.4 packet builders with fluent API.
- command
- IEEE 802.15.4 MAC Command frame parsing and building.
- crc
- CRC-16 CCITT Kermit implementation for IEEE 802.15.4 FCS.
- security
- IEEE 802.15.4 Auxiliary Security Header parsing and building.
- types
- IEEE 802.15.4 constants and type definitions.
Structs§
- Dot15d4
FcsLayer - IEEE 802.15.4 MAC frame with FCS (2-byte CRC at the end).
- Dot15d4
Layer - IEEE 802.15.4 MAC frame layer (without FCS).
Constants§
- DOT15
D4_ FCS_ FIELDS - FCS layer field names (includes all base fields plus fcs).
- DOT15
D4_ FIELDS - Field names for dynamic access.
- DOT15
D4_ MIN_ HEADER_ LEN - Minimum header length: 2 bytes FCF + 1 byte sequence number.
- FCS_LEN
- FCS length in bytes (CRC-16).
Functions§
- build_
fcf - Build a Frame Control Field value from individual fields.
- compute_
header_ len - Compute the variable header length based on FCF fields.
- fcf_
ackreq - Extract ACK request flag from FCF (bit 5).
- fcf_
dest_ addr_ mode - Extract destination address mode from FCF (bits 10-11).
- fcf_
frame_ type - Extract frame type from FCF (bits 0-2).
- fcf_
frame_ ver - Extract frame version from FCF (bits 12-13).
- fcf_
panid_ compress - Extract PAN ID compression flag from FCF (bit 6).
- fcf_
pending - Extract frame pending flag from FCF (bit 4).
- fcf_
security - Extract security enabled flag from FCF (bit 3).
- fcf_
src_ addr_ mode - Extract source address mode from FCF (bits 14-15).