Crate bt_hci

Source
Expand description

crates.io docs.rs

§bt-hci

Rust types for the Bluetooth HCI (Host Controller Interface) specification, and traits for implementing the Controller part of the interface.

See Trouble for an example of using this crate.

§Bluetooth UUIDs

The bluetooth specification includes reference information for pre-defined UUIDs that can be used to communicate specific services, characteristics, properties, etc of a device. These are also made available as constants from this crate through the uuid module for users of this crate.

For crate maintainers, to update these constants run the update_uuids binary, which will redownload the bluetooth-sig yaml spec and rebuild the uuids module based on the latest version.

§License

bt-hci is licensed under either of

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Re-exports§

pub use btuuid as uuid;

Modules§

cmd
HCI commands 📖
controller
HCI controller
data
HCI data packets 📖
event
HCI events 📖
param
Parameter types for HCI command and event packets 📖
transport
HCI transport layers 📖

Enums§

ControllerToHostPacket
Type representing valid deserialized HCI packets.
FromHciBytesError
Errors from parsing HCI data.
PacketKind
Enum of valid HCI packet types.
ReadHciError
Errors from reading HCI data.

Traits§

AsHciBytes
A HCI type which can be represented as bytes.
ByteAlignedValue
Marker trait for FixedSizeValues that have byte alignment.
FixedSizeValue
Marker trait for HCI values that have a known, fixed size
FromHciBytes
A fixed size HCI type that can be deserialized from bytes.
HostToControllerPacket
Trait representing a HCI packet.
ReadHci
Adapter trait for deserializing HCI types from embedded-io implementations.
WriteHci
Adapter trait for serializing HCI types to embedded-io implementations.