Expand description
Host-side interface to the Bluetooth HCI.
§Ideas for discussion and improvements
- Remove
cmd_link
andevent_link
modules. 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, asuart
does. In that case, it would make sense to also removeuart
and 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_parameters
command. - AesParameters
- Parameters for the
le_encrypt
command. - Channels
- The advertising channels that shall be used when transmitting advertising packets.
- Connection
Parameters - Parameters for the
le_create_connection
event. - Connection
Update Parameters - Parameters for the
le_connection_update
command. - Encryption
Key - Newtype for the encryption key.
- Encryption
Parameters - Parameters for the
le_start_encryption
command. - Event
Flags - Event flags defined for the
set_event_mask
command. - Host
Buffer Size - Parameters for the host_buffer_size commad
- LeEvent
Flags - Event flags defined for the
le_set_event_mask
command. - Plaintext
Block - Newtype for the plaintext data.
- Scan
Parameters - Parameters for the
le_set_scan_parameters
command.
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_connection
command. - 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_connection
command. - 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
payload
parameter for thele_transmitter_test
command. - TxPower
Level - For the
read_tx_power_level
command, the allowed values for the type of power level to read.