Skip to main content

Module dot15d4

Module dot15d4 

Source
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§

Dot15d4FcsLayer
IEEE 802.15.4 MAC frame with FCS (2-byte CRC at the end).
Dot15d4Layer
IEEE 802.15.4 MAC frame layer (without FCS).

Constants§

DOT15D4_FCS_FIELDS
FCS layer field names (includes all base fields plus fcs).
DOT15D4_FIELDS
Field names for dynamic access.
DOT15D4_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).