pub struct Capabilities {Show 17 fields
pub public_address: [u8; 6],
pub hci_version: u8,
pub hci_subversion: u16,
pub lmp_version: u8,
pub lmp_subversion: u16,
pub manufacturer: u16,
pub commands: [u8; 64],
pub lmp_features: u64,
pub le_features: u64,
pub le_states: u64,
pub le_acl: (u16, u16),
pub iso: (u16, u8),
pub max_adv_data: u16,
pub adv_sets: u8,
pub filter_accept_list_size: u8,
pub resolving_list_size: u8,
pub max_data_length: (u16, u16, u16, u16),
}Expand description
The controller’s identity and capabilities.
Fields§
§public_address: [u8; 6]The public address, least significant byte first; all zeros when the controller has none.
hci_version: u8HCI version (a Core Specification version number).
hci_subversion: u16HCI subversion.
lmp_version: u8LMP/LL version.
lmp_subversion: u16LMP/LL subversion.
manufacturer: u16Manufacturer (a company identifier).
commands: [u8; 64]Supported commands, the 64-octet mask.
lmp_features: u64LMP features, page 0.
le_features: u64LE features.
le_states: u64LE supported states.
le_acl: (u16, u16)Maximum LE ACL data length per packet, and how many the controller buffers.
iso: (u16, u8)Maximum ISO data length and buffer count (0 when ISO is not supported).
max_adv_data: u16Maximum extended advertising data length (31 for legacy only).
adv_sets: u8Number of advertising sets (1 for legacy only).
filter_accept_list_size: u8Filter Accept List size.
resolving_list_size: u8Resolving List size (0 without LL privacy).
max_data_length: (u16, u16, u16, u16)Maximum data length: (tx octets, tx time, rx octets, rx time).
Implementations§
Source§impl Capabilities
impl Capabilities
Sourcepub fn extended_advertising(&self) -> bool
pub fn extended_advertising(&self) -> bool
Extended advertising, scanning and connecting (Bluetooth 5). The feature bit makes those commands mandatory (Core Vol 4, Part E, 3), so it alone decides: some controllers leave them out of their supported-commands mask.
Sourcepub fn extended_scanning(&self) -> bool
pub fn extended_scanning(&self) -> bool
Extended scanning commands (the same feature bit).
Sourcepub fn periodic_advertising(&self) -> bool
pub fn periodic_advertising(&self) -> bool
Periodic advertising.
Sourcepub fn data_length_extension(&self) -> bool
pub fn data_length_extension(&self) -> bool
Data length extension.
Sourcepub fn phy_update(&self) -> bool
pub fn phy_update(&self) -> bool
Changing PHY on a connection.
Sourcepub fn le_feature_names(&self) -> Vec<&'static str>
pub fn le_feature_names(&self) -> Vec<&'static str>
Names of the LE features the controller has.
Sourcepub fn manufacturer_name(&self) -> Option<&'static str>
pub fn manufacturer_name(&self) -> Option<&'static str>
The manufacturer’s name, from the assigned numbers.
Sourcepub fn version_name(&self) -> Option<&'static str>
pub fn version_name(&self) -> Option<&'static str>
The Core Specification version the controller implements.