Struct bluetooth_hci::event::command::LmpFeatures [−]
pub struct LmpFeatures { /* fields omitted */ }
See the Bluetooth Specification, v4.1 or later, Vol 2, Part C, Section 3.3 (Table 3.2).
Methods
impl LmpFeatures
impl LmpFeatures
pub const THREE_SLOT_PACKETS: LmpFeatures
THREE_SLOT_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 0,}
3-slot packets
pub const FIVE_SLOT_PACKETS: LmpFeatures
FIVE_SLOT_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 1,}
5-slot packets
pub const ENCRYPTION: LmpFeatures
ENCRYPTION: LmpFeatures = LmpFeatures{bits: 1 << 2,}
Encryption
pub const SLOT_OFFSET: LmpFeatures
SLOT_OFFSET: LmpFeatures = LmpFeatures{bits: 1 << 3,}
Slot offset
pub const TIMING_ACCURACY: LmpFeatures
TIMING_ACCURACY: LmpFeatures = LmpFeatures{bits: 1 << 4,}
Timing accuracy
pub const ROLE_SWITCH: LmpFeatures
ROLE_SWITCH: LmpFeatures = LmpFeatures{bits: 1 << 5,}
Role switch
pub const HOLD_MODE: LmpFeatures
HOLD_MODE: LmpFeatures = LmpFeatures{bits: 1 << 6,}
Hold mode
pub const SNIFF_MODE: LmpFeatures
SNIFF_MODE: LmpFeatures = LmpFeatures{bits: 1 << 7,}
Sniff mode
pub const POWER_CONTROL_REQUESTS: LmpFeatures
POWER_CONTROL_REQUESTS: LmpFeatures = LmpFeatures{bits: 1 << 9,}
Power control requests
pub const CHANNEL_QUALITY_DRIVEN_DATA_RATE_CQDDR: LmpFeatures
CHANNEL_QUALITY_DRIVEN_DATA_RATE_CQDDR: LmpFeatures = LmpFeatures{bits: 1 << 10,}
Channel quality driven data rate (CQDDR)
pub const SCO_LINK: LmpFeatures
SCO_LINK: LmpFeatures = LmpFeatures{bits: 1 << 11,}
SCO link
pub const HV2_PACKETS: LmpFeatures
HV2_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 12,}
HV2 packets
pub const HV3_PACKETS: LmpFeatures
HV3_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 13,}
HV3 packets
pub const MU_LAW_LOG_SYNCHRONOUS_DATA: LmpFeatures
MU_LAW_LOG_SYNCHRONOUS_DATA: LmpFeatures = LmpFeatures{bits: 1 << 14,}
μ-law log synchronous data
pub const A_LAW_LOG_SYNCHRONOUS_DATA: LmpFeatures
A_LAW_LOG_SYNCHRONOUS_DATA: LmpFeatures = LmpFeatures{bits: 1 << 15,}
A-law log synchronous data
pub const CVSD_SYNCHRONOUS_DATA: LmpFeatures
CVSD_SYNCHRONOUS_DATA: LmpFeatures = LmpFeatures{bits: 1 << 16,}
CVSD synchronous data
pub const PAGING_PARAMETER_NEGOTIATION: LmpFeatures
PAGING_PARAMETER_NEGOTIATION: LmpFeatures = LmpFeatures{bits: 1 << 17,}
Paging parameter negotiation
pub const POWER_CONTROL: LmpFeatures
POWER_CONTROL: LmpFeatures = LmpFeatures{bits: 1 << 18,}
Power control
pub const TRANSPARENT_SYNCHRONOUS_DATA: LmpFeatures
TRANSPARENT_SYNCHRONOUS_DATA: LmpFeatures = LmpFeatures{bits: 1 << 19,}
Transparent synchronous data
pub const FLOW_CONTROL_LAG_LSB: LmpFeatures
FLOW_CONTROL_LAG_LSB: LmpFeatures = LmpFeatures{bits: 1 << 20,}
Flow control lag (least significant bit)
pub const FLOW_CONTROL_LAG_MID: LmpFeatures
FLOW_CONTROL_LAG_MID: LmpFeatures = LmpFeatures{bits: 1 << 21,}
Flow control lag (middle bit)
pub const FLOW_CONTROL_LAG_MSB: LmpFeatures
FLOW_CONTROL_LAG_MSB: LmpFeatures = LmpFeatures{bits: 1 << 22,}
Flow control lag (most significant bit)
pub const BROADCAST_ENCRYPTION: LmpFeatures
BROADCAST_ENCRYPTION: LmpFeatures = LmpFeatures{bits: 1 << 23,}
Broadcast Encryption
pub const ENHANCED_DATA_RATE_ACL_2_MB_PER_S_MODE: LmpFeatures
ENHANCED_DATA_RATE_ACL_2_MB_PER_S_MODE: LmpFeatures = LmpFeatures{bits: 1 << 25,}
Enhanced Data Rate ACL 2 Mb/s mode
pub const ENHANCED_DATA_RATE_ACL_3_MB_PER_S_MODE: LmpFeatures
ENHANCED_DATA_RATE_ACL_3_MB_PER_S_MODE: LmpFeatures = LmpFeatures{bits: 1 << 26,}
Enhanced Data Rate ACL 3 Mb/s mode
pub const ENHANCED_INQUIRY_SCAN: LmpFeatures
ENHANCED_INQUIRY_SCAN: LmpFeatures = LmpFeatures{bits: 1 << 27,}
Enhanced inquiry scan
pub const INTERLACED_INQUIRY_SCAN: LmpFeatures
INTERLACED_INQUIRY_SCAN: LmpFeatures = LmpFeatures{bits: 1 << 28,}
Interlaced inquiry scan
pub const INTERLACED_PAGE_SCAN: LmpFeatures
INTERLACED_PAGE_SCAN: LmpFeatures = LmpFeatures{bits: 1 << 29,}
Interlaced page scan
pub const RSSI_WITH_INQUIRY_RESULTS: LmpFeatures
RSSI_WITH_INQUIRY_RESULTS: LmpFeatures = LmpFeatures{bits: 1 << 30,}
RSSI with inquiry results
pub const EXTENDED_SCO_LINK_EV3_PACKETS: LmpFeatures
EXTENDED_SCO_LINK_EV3_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 31,}
Extended SCO link (EV3 packets)
pub const EV4_PACKETS: LmpFeatures
EV4_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 32,}
EV4 packets
pub const EV5_PACKETS: LmpFeatures
EV5_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 33,}
EV5 packets
pub const AFH_CAPABLE_PERIPHERAL: LmpFeatures
AFH_CAPABLE_PERIPHERAL: LmpFeatures = LmpFeatures{bits: 1 << 35,}
AFH capable peripheral
pub const AFH_CLASSIFICATION_PERIPHERAL: LmpFeatures
AFH_CLASSIFICATION_PERIPHERAL: LmpFeatures = LmpFeatures{bits: 1 << 36,}
AFH classification peripheral
pub const BR_EDR_NOT_SUPPORTED: LmpFeatures
BR_EDR_NOT_SUPPORTED: LmpFeatures = LmpFeatures{bits: 1 << 37,}
BR/EDR Not Supported
pub const LE_SUPPORTED_BY_CONTROLLER: LmpFeatures
LE_SUPPORTED_BY_CONTROLLER: LmpFeatures = LmpFeatures{bits: 1 << 38,}
LE Supported (Controller)
pub const THREE_SLOT_ENHANCED_DATA_RATE_ACL_PACKETS: LmpFeatures
THREE_SLOT_ENHANCED_DATA_RATE_ACL_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 39,}
3-slot Enhanced Data Rate ACL packets
pub const FIVE_SLOT_ENHANCED_DATA_RATE_ACL_PACKETS: LmpFeatures
FIVE_SLOT_ENHANCED_DATA_RATE_ACL_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 40,}
5-slot Enhanced Data Rate ACL packets
pub const SNIFF_SUBRATING: LmpFeatures
SNIFF_SUBRATING: LmpFeatures = LmpFeatures{bits: 1 << 41,}
Sniff subrating
pub const PAUSE_ENCRYPTION: LmpFeatures
PAUSE_ENCRYPTION: LmpFeatures = LmpFeatures{bits: 1 << 42,}
Pause encryption
pub const AFH_CAPABLE_CENTRAL_DEVICE: LmpFeatures
AFH_CAPABLE_CENTRAL_DEVICE: LmpFeatures = LmpFeatures{bits: 1 << 43,}
AFH capable central device
pub const AFH_CLASSIFICATION_CENTRAL_DEVICE: LmpFeatures
AFH_CLASSIFICATION_CENTRAL_DEVICE: LmpFeatures = LmpFeatures{bits: 1 << 44,}
AFH classification central device
pub const ENHANCED_DATA_RATE_ESCO_2_MB_PER_S_MODE: LmpFeatures
ENHANCED_DATA_RATE_ESCO_2_MB_PER_S_MODE: LmpFeatures = LmpFeatures{bits: 1 << 45,}
Enhanced Data Rate eSCO 2 Mb/s mode
pub const ENHANCED_DATA_RATE_ESCO_3_MB_PER_S_MODE: LmpFeatures
ENHANCED_DATA_RATE_ESCO_3_MB_PER_S_MODE: LmpFeatures = LmpFeatures{bits: 1 << 46,}
Enhanced Data Rate eSCO 3 Mb/s mode
pub const THREE_SLOT_ENHANCED_DATA_RATE_ESCO_PACKETS: LmpFeatures
THREE_SLOT_ENHANCED_DATA_RATE_ESCO_PACKETS: LmpFeatures = LmpFeatures{bits: 1 << 47,}
3-slot Enhanced Data Rate eSCO packets
pub const EXTENDED_INQUIRY_RESPONSE: LmpFeatures
EXTENDED_INQUIRY_RESPONSE: LmpFeatures = LmpFeatures{bits: 1 << 48,}
Extended Inquiry Response
pub const SIMULTANEOUS_LE_AND_BR_EDR_TO_SAME_DEVICE_CAPABLE: LmpFeatures
SIMULTANEOUS_LE_AND_BR_EDR_TO_SAME_DEVICE_CAPABLE: LmpFeatures = LmpFeatures{bits: 1 << 49,}
Simultaneous LE and BR/EDR to Same Device Capable (Controller)
pub const SECURE_SIMPLE_PAIRING: LmpFeatures
SECURE_SIMPLE_PAIRING: LmpFeatures = LmpFeatures{bits: 1 << 51,}
Secure Simple Pairing
pub const ENCAPSULATED_PDU: LmpFeatures
ENCAPSULATED_PDU: LmpFeatures = LmpFeatures{bits: 1 << 52,}
Encapsulated PDU
pub const ERRONEOUS_DATA_REPORTING: LmpFeatures
ERRONEOUS_DATA_REPORTING: LmpFeatures = LmpFeatures{bits: 1 << 53,}
Erroneous Data Reporting
pub const NON_FLUSHABLE_PACKET_BOUNDARY_FLAG: LmpFeatures
NON_FLUSHABLE_PACKET_BOUNDARY_FLAG: LmpFeatures = LmpFeatures{bits: 1 << 54,}
Non-flushable Packet Boundary Flag
pub const LINK_SUPERVISION_TIMEOUT_CHANGED_EVENT: LmpFeatures
LINK_SUPERVISION_TIMEOUT_CHANGED_EVENT: LmpFeatures = LmpFeatures{bits: 1 << 56,}
Link Supervision Timeout Changed Event
pub const INQUIRY_TX_POWER_LEVEL: LmpFeatures
INQUIRY_TX_POWER_LEVEL: LmpFeatures = LmpFeatures{bits: 1 << 57,}
Inquiry TX Power Level
pub const ENHANCED_POWER_CONTROL: LmpFeatures
ENHANCED_POWER_CONTROL: LmpFeatures = LmpFeatures{bits: 1 << 58,}
Enhanced Power Control
pub const EXTENDED_FEATURES: LmpFeatures
EXTENDED_FEATURES: LmpFeatures = LmpFeatures{bits: 1 << 63,}
Extended features
pub fn empty() -> LmpFeatures
pub fn empty() -> LmpFeatures
Returns an empty set of flags.
pub fn all() -> LmpFeatures
pub fn all() -> LmpFeatures
Returns the set containing all flags.
pub fn bits(&self) -> u64
pub fn bits(&self) -> u64
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u64) -> Option<LmpFeatures>
pub fn from_bits(bits: u64) -> Option<LmpFeatures>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u64) -> LmpFeatures
pub fn from_bits_truncate(bits: u64) -> LmpFeatures
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: LmpFeatures) -> bool
pub fn intersects(&self, other: LmpFeatures) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: LmpFeatures) -> bool
pub fn contains(&self, other: LmpFeatures) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: LmpFeatures)
pub fn insert(&mut self, other: LmpFeatures)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: LmpFeatures)
pub fn remove(&mut self, other: LmpFeatures)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: LmpFeatures)
pub fn toggle(&mut self, other: LmpFeatures)
Toggles the specified flags in-place.
pub fn set(&mut self, other: LmpFeatures, value: bool)
pub fn set(&mut self, other: LmpFeatures, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for LmpFeatures
impl Copy for LmpFeatures
impl PartialEq for LmpFeatures
impl PartialEq for LmpFeatures
fn eq(&self, other: &LmpFeatures) -> bool
fn eq(&self, other: &LmpFeatures) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &LmpFeatures) -> bool
fn ne(&self, other: &LmpFeatures) -> bool
This method tests for !=
.
impl Eq for LmpFeatures
impl Eq for LmpFeatures
impl Clone for LmpFeatures
impl Clone for LmpFeatures
fn clone(&self) -> LmpFeatures
fn clone(&self) -> LmpFeatures
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for LmpFeatures
impl PartialOrd for LmpFeatures
fn partial_cmp(&self, other: &LmpFeatures) -> Option<Ordering>
fn partial_cmp(&self, other: &LmpFeatures) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &LmpFeatures) -> bool
fn lt(&self, other: &LmpFeatures) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &LmpFeatures) -> bool
fn le(&self, other: &LmpFeatures) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &LmpFeatures) -> bool
fn gt(&self, other: &LmpFeatures) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &LmpFeatures) -> bool
fn ge(&self, other: &LmpFeatures) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for LmpFeatures
impl Ord for LmpFeatures
fn cmp(&self, other: &LmpFeatures) -> Ordering
fn cmp(&self, other: &LmpFeatures) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for LmpFeatures
impl Hash for LmpFeatures
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for LmpFeatures
impl Debug for LmpFeatures
impl Binary for LmpFeatures
impl Binary for LmpFeatures
impl Octal for LmpFeatures
impl Octal for LmpFeatures
impl LowerHex for LmpFeatures
impl LowerHex for LmpFeatures
impl UpperHex for LmpFeatures
impl UpperHex for LmpFeatures
impl BitOr for LmpFeatures
impl BitOr for LmpFeatures
type Output = LmpFeatures
The resulting type after applying the |
operator.
fn bitor(self, other: LmpFeatures) -> LmpFeatures
fn bitor(self, other: LmpFeatures) -> LmpFeatures
Returns the union of the two sets of flags.
impl BitOrAssign for LmpFeatures
impl BitOrAssign for LmpFeatures
fn bitor_assign(&mut self, other: LmpFeatures)
fn bitor_assign(&mut self, other: LmpFeatures)
Adds the set of flags.
impl BitXor for LmpFeatures
impl BitXor for LmpFeatures
type Output = LmpFeatures
The resulting type after applying the ^
operator.
fn bitxor(self, other: LmpFeatures) -> LmpFeatures
fn bitxor(self, other: LmpFeatures) -> LmpFeatures
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for LmpFeatures
impl BitXorAssign for LmpFeatures
fn bitxor_assign(&mut self, other: LmpFeatures)
fn bitxor_assign(&mut self, other: LmpFeatures)
Toggles the set of flags.
impl BitAnd for LmpFeatures
impl BitAnd for LmpFeatures
type Output = LmpFeatures
The resulting type after applying the &
operator.
fn bitand(self, other: LmpFeatures) -> LmpFeatures
fn bitand(self, other: LmpFeatures) -> LmpFeatures
Returns the intersection between the two sets of flags.
impl BitAndAssign for LmpFeatures
impl BitAndAssign for LmpFeatures
fn bitand_assign(&mut self, other: LmpFeatures)
fn bitand_assign(&mut self, other: LmpFeatures)
Disables all flags disabled in the set.
impl Sub for LmpFeatures
impl Sub for LmpFeatures
type Output = LmpFeatures
The resulting type after applying the -
operator.
fn sub(self, other: LmpFeatures) -> LmpFeatures
fn sub(self, other: LmpFeatures) -> LmpFeatures
Returns the set difference of the two sets of flags.
impl SubAssign for LmpFeatures
impl SubAssign for LmpFeatures
fn sub_assign(&mut self, other: LmpFeatures)
fn sub_assign(&mut self, other: LmpFeatures)
Disables all flags enabled in the set.
impl Not for LmpFeatures
impl Not for LmpFeatures
type Output = LmpFeatures
The resulting type after applying the !
operator.
fn not(self) -> LmpFeatures
fn not(self) -> LmpFeatures
Returns the complement of this set of flags.
impl Extend<LmpFeatures> for LmpFeatures
impl Extend<LmpFeatures> for LmpFeatures
fn extend<T: IntoIterator<Item = LmpFeatures>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = LmpFeatures>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<LmpFeatures> for LmpFeatures
impl FromIterator<LmpFeatures> for LmpFeatures
fn from_iter<T: IntoIterator<Item = LmpFeatures>>(iterator: T) -> LmpFeatures
fn from_iter<T: IntoIterator<Item = LmpFeatures>>(iterator: T) -> LmpFeatures
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for LmpFeatures
impl Send for LmpFeatures
impl Sync for LmpFeatures
impl Sync for LmpFeatures