pub enum BlePhy {
Le1M,
Le2M,
LeCodedS2,
LeCodedS8,
}Expand description
BLE Physical Layer (PHY) type
BLE 5.0+ supports multiple PHY options with different trade-offs between range, throughput, and power consumption.
Variants§
Le1M
LE 1M PHY - 1 Mbps, ~100m range (default, most compatible)
Le2M
LE 2M PHY - 2 Mbps, ~50m range (higher throughput)
LeCodedS2
LE Coded S=2 - 500 kbps, ~200m range
LeCodedS8
LE Coded S=8 - 125 kbps, ~400m range (maximum range)
Implementations§
Source§impl BlePhy
impl BlePhy
Sourcepub fn bandwidth_bps(&self) -> u32
pub fn bandwidth_bps(&self) -> u32
Get the theoretical bandwidth in bytes per second
Sourcepub fn typical_range_meters(&self) -> u32
pub fn typical_range_meters(&self) -> u32
Get the typical range in meters
Sourcepub fn requires_ble5(&self) -> bool
pub fn requires_ble5(&self) -> bool
Check if this PHY requires BLE 5.0+
Trait Implementations§
impl Copy for BlePhy
impl Eq for BlePhy
impl StructuralPartialEq for BlePhy
Auto Trait Implementations§
impl Freeze for BlePhy
impl RefUnwindSafe for BlePhy
impl Send for BlePhy
impl Sync for BlePhy
impl Unpin for BlePhy
impl UnwindSafe for BlePhy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more