zwave-cc
Z-Wave command classes, generated from data definitions.
Every command class in defs/cc/*.toml becomes a module with one struct
per command (multilevel_sensor::Report, wake_up::IntervalSet, ...),
a Command enum per class, and the crate-level Command that
dispatches on the class id. Parsers are generated from the same
definitions as encoders, are bounded by their input, never panic and
never use unsafe; trailing bytes from newer versions are ignored.
The sensor, meter and notification types assigned by the Z-Wave Alliance
are in tables. Transport Service segmentation and reassembly
(transport_service) and CRC-16 encapsulation (crc16) are written
by hand, because their command ids carry data bits.
use ;
let frame = ;
let MultilevelSensor = parse.unwrap else ;
assert_eq!; // air temperature
assert_eq!;
assert_eq!;
Part of zwave-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.
License: MIT.