Skip to main content

zigbee_core/aps/
mod.rs

1//! Application Support Sub-Layer
2//!
3//! See Section 2.2
4//!
5//! The application support sub-layer provides an interface between the
6//! `Network layer` and the `Application layer`.
7
8pub(crate) mod error;
9pub mod types;
10
11/// Maximum number of retries after a transmission failure (2.2.7.1).
12pub(crate) const APSC_MAX_FRAME_RETRIES: u8 = 3;
13
14/// Time to wait for an APS acknowledgement (2.2.7.1):
15/// `0.05 * (2 * nwkcMaxDepth) + 0.1 s` at a maximum depth of 15.
16pub(crate) const APSC_ACK_WAIT_DURATION_MS: u32 = 1600;
17
18/// Entries kept for duplicate rejection (2.2.8.4.2); the spec requires at
19/// least `apscMinDuplicateRejectionTableSize` = 1.
20pub(crate) const APS_DUPLICATE_REJECTION_TABLE_SIZE: usize = 8;
21
22/// Concurrently outstanding acknowledged transmissions.
23pub(crate) const APS_MAX_PENDING_ACKS: usize = 2;
24
25/// The APS data entity provides the data transmission service between two or
26/// more application entities located on the same network.
27pub mod apsde;
28
29pub mod aib;
30/// The APS management entity provides a variety of services to application
31/// objects including security services and binding of devices.
32/// It also maintains a database of managed objects, known as the APS
33/// information base (AIB).
34pub mod apsme;
35/// Binding table (2.2.8.2.1).
36pub mod binding;
37/// APS frame formats (2.2.5).
38pub mod frame;
39pub mod security;