Expand description
Host-side interface to the Bluetooth HCI.
§Ideas for discussion and improvements
- Remove
cmd_linkandevent_linkmodules. These provide alternative mechanisms for writing to and reading from the controller, respectively, without the packet identifier byte. The open-source Bluetooth implementations I have found (admittedly, I haven’t looked hard) only support sending the packet ID, asuartdoes. In that case, it would make sense to also removeuartand move its contents up one level.
Re-exports§
pub use super::types::AdvertisingInterval;pub use super::types::AdvertisingType;pub use super::types::ConnectionInterval;pub use super::types::ConnectionIntervalBuilder;pub use super::types::ExpectedConnectionLength;pub use super::types::ScanWindow;
Modules§
- uart
- Implementation of the HCI that includes the packet ID byte in the header.
Structs§
- Advertising
Parameters - Parameters for the
le_set_advertising_parameterscommand. - AesParameters
- Parameters for the
le_encryptcommand. - Channels
- The advertising channels that shall be used when transmitting advertising packets.
- Connection
Parameters - Parameters for the
le_create_connectionevent. - Connection
Update Parameters - Parameters for the
le_connection_updatecommand. - Encryption
Key - Newtype for the encryption key.
- Encryption
Parameters - Parameters for the
le_start_encryptioncommand. - Event
Flags - Event flags defined for the
set_event_maskcommand. - Host
Buffer Size - Parameters for the host_buffer_size commad
- LeEvent
Flags - Event flags defined for the
le_set_event_maskcommand. - Plaintext
Block - Newtype for the plaintext data.
- Scan
Parameters - Parameters for the
le_set_scan_parameterscommand.
Enums§
- Advertising
Filter Policy - Possible filter policies used for undirected advertising.
- Connection
Filter Policy - Possible values for the initiator filter policy in the
le_create_connectioncommand. - Error
- Errors that may occur when sending commands to the controller. Must be specialized on the types of communication errors.
- Flow
Control - For the set_controller_to_host_flow_control command, the allowed values for flow control.
- OwnAddress
Type - Indicates the type of address being used in the advertising packets.
- Peer
Addr Type - Possible values for the peer address in the
le_create_connectioncommand. - Scan
Filter Policy - Which advertising packets to accept from a scan.
- Scan
Type - Types of scan to perform.
- Test
Packet Payload - Possible values of the
payloadparameter for thele_transmitter_testcommand. - TxPower
Level - For the
read_tx_power_levelcommand, the allowed values for the type of power level to read.