Expand description
Wire protocol of the FRENZ brainband: characteristic identifiers, stream decoders, command encoders and command-response decoders.
This crate performs no I/O and allocates nothing. Every decoder is strict: a payload whose
length or structure differs from the verified layout returns a ParseError instead of being
guessed at, and no input can cause a panic. Fields whose meaning is not yet known are kept raw.
The layouts and their verification status are documented in docs/PROTOCOL.md.
Re-exports§
pub use command::Command;pub use command::Response;pub use command::ResponseBody;pub use error::ParseError;pub use gatt::Characteristic;pub use stream::BatteryPacket;pub use stream::ContactPacket;pub use stream::EegPacket;pub use stream::MotionPacket;pub use stream::Packet;pub use stream::PpgPacket;pub use stream::StatusMessage;pub use stream::VitalPacket;
Modules§
- command
- Commands (written to
Characteristic::CommandRx) and their responses (notified onCharacteristic::CommandResponse). - error
- Decode errors.
- gatt
- GATT identifiers of the band’s own services.
- stream
- Decoders for notification payloads.