Crates.io | adafruit-bluefruit-protocol |
lib.rs | adafruit-bluefruit-protocol |
version | 1.0.0 |
source | src |
created_at | 2022-12-18 14:13:27.227684 |
updated_at | 2024-10-13 16:09:24.816402 |
description | A `no_std` parser for the Adafruit Bluefruit LE Connect controller protocol. |
homepage | |
repository | https://github.com/rust-embedded-community/adafruit-bluefruit-protocol-rs |
max_upload_size | |
id | 740437 |
size | 60,000 |
This implements the Adafruit Bluefruit LE Connect controller protocol which is e.g. used by the Adafruit Bluefruit LE UART Friend.
Note that this work is not affiliated with Adafruit.
defmt
: you can enable the defmt
feature to get a defmt::Format
implementation for all structs & enums and a defmt::debug!
call for each command being parsed.rgb
: if enabled, From<ColorEvent> for RGB8
is implemented to support the RGB crate.serde
: if enabled, all events implement the serde #[derive(Serialize, Deserialize)]
.ProtocolParseError::DisabledControllerDataPackageType
will be returned.The entry point to use this crate is Parser
which implements Iterator
to access the events in the input.
Note that this is a sans I/O crate, i.e. you have to talk to the Adafruit device, the parser just expects a byte sequence.
A simple example for the STM32F4 microcontrollers is available.
For the changelog please see the dedicated CHANGELOG.md.
This crate is guaranteed to compile on stable Rust 1.81 and up. It might compile with older versions but that may change in any new patch release.