Skip to main content

apis_saltans_aps/
lib.rs

1//! APS frame definitions and utilities.
2//!
3//! This crate models Zigbee APS data, command, and acknowledgement frames. It
4//! also provides [`Assembler`] for rebuilding fragmented APS data frames from
5//! network-layer envelopes.
6//!
7//! APS headers preserve endpoint bytes from incoming frames and expose fallible
8//! endpoint getters. This lets callers distinguish valid
9//! [`Endpoint`](zb_core::Endpoint) values from reserved endpoint IDs
10//! without losing the original protocol value.
11
12pub use self::broadcast::Broadcast;
13pub use self::frame::acknowledgement::Frame as Acknowledgement;
14pub use self::frame::command::Frame as Command;
15pub use self::frame::data::{self, Assembler, Frame as Data, Unicast};
16pub use self::frame::{
17    AckFmt, Control, DeliveryMode, Destination, Extended, ExtendedControl, Fragmentation,
18    FrameType, WeakDestination,
19};
20pub use self::tx_options::TxOptions;
21
22mod broadcast;
23mod frame;
24mod tx_options;