Expand description
Zigbee hardware abstraction API.
This crate defines the boundary between coordinator-level logic and concrete Zigbee network co-processor (NCP) drivers.
No default features are enabled. Enable exactly the API surface needed by the depending crate:
coordinatorexposesNcp,Driver,NcpHandle,WeakNcpHandle, common errors, hardware events, access to the NCP’s local simple descriptors, scan results, transmit datagram types, and the deferredHwResponsereturned by transmission requests for coordinator and application code that sends commands to a running NCP actor.driverexposesDriver, shared driver/coordinator data types, the required local-endpoint API, command handles,HwResponse, common errors, and theaps,core,nwk, andzdpprotocol re-export modules for hardware backend implementations.
Driver is part of the shared API and is therefore available with either feature. Event
translation and startup wiring are backend concerns; this crate does not prescribe backend
configuration or provide an event-translator abstraction.
The protocol re-export modules are available only with driver. They let driver crates refer to
APIS Saltans protocol types through this crate, for example apis_saltans_hw::core::IeeeAddress
or apis_saltans_hw::zdp::SimpleDescriptor, without adding direct dependencies on each
protocol crate.
Ncp::transmit is a two-stage operation. Awaiting the method hands the datagram to the driver
actor and returns an HwResponse; awaiting that response observes completion of the hardware
transmission.
Every Driver implementation must provide the NCP’s local application endpoints through
Driver::get_endpoints. Each endpoint is represented by a complete
zb_zdp::SimpleDescriptor; coordinator code retrieves the same descriptors through
Ncp::get_endpoints.
Modules§
- aps
driver - APS frame and payload types.
- core
driver - Core Zigbee domain types.
- nwk
driver - NWK receive context types.
- zdp
driver - ZDP descriptor and service types.
Structs§
- Clusters
coordinatorordriver - Input and output cluster set advertised by one local application endpoint.
- Datagram
coordinatorordriver - Serialized application payload plus APS metadata for transmission.
- Found
Network coordinatorordriver - A found network with additional link quality information.
- HwResponse
coordinatorordriver - A deferred hardware-operation result.
- Metadata
coordinatorordriver - APS metadata and transmission options associated with a serialized application payload.
- Network
coordinatorordriver - Information about a found network during a network scan.
- Scanned
Channel coordinatorordriver - A structure representing the result of a channel scan operation.
- TxOptions
coordinatorordriver - Transmission options for an APSDE-DATA request.
Enums§
- Error
coordinatorordriver - A generic error type for Zigbee hardware drivers.
- Event
coordinatorordriver - Events emitted by the hardware layer.
- Route
Error coordinatorordriver - Route errors.
Traits§
- Driver
coordinatorordriver - A common Zigbee NCP driver interface.
- Ncp
coordinator - Proxy trait for sending commands to a Zigbee NCP driver actor.
Type Aliases§
- NcpHandle
coordinatorordriver - A handle on the NCP.
- Weak
NcpHandle coordinatorordriver - A weak handle on the NCP.