pub enum LoRaProfile {
Fast,
Balanced,
LongRange,
}Expand description
Pre-defined LoRa profiles
Variants§
Fast
Fast: SF7, 250kHz - ~11 kbps, short range
Balanced
Balanced: SF9, 125kHz - ~3 kbps, medium range
LongRange
Long Range: SF12, 125kHz - ~300 bps, maximum range
Implementations§
Source§impl LoRaProfile
impl LoRaProfile
Sourcepub const fn approx_bitrate(self) -> u32
pub const fn approx_bitrate(self) -> u32
Get approximate data rate in bps
Sourcepub const fn approx_range_m(self) -> u32
pub const fn approx_range_m(self) -> u32
Get approximate range in meters (outdoor, line of sight)
Trait Implementations§
Source§impl Clone for LoRaProfile
impl Clone for LoRaProfile
Source§fn clone(&self) -> LoRaProfile
fn clone(&self) -> LoRaProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoRaProfile
impl Debug for LoRaProfile
Source§impl PartialEq for LoRaProfile
impl PartialEq for LoRaProfile
impl Copy for LoRaProfile
impl Eq for LoRaProfile
impl StructuralPartialEq for LoRaProfile
Auto Trait Implementations§
impl Freeze for LoRaProfile
impl RefUnwindSafe for LoRaProfile
impl Send for LoRaProfile
impl Sync for LoRaProfile
impl Unpin for LoRaProfile
impl UnsafeUnpin for LoRaProfile
impl UnwindSafe for LoRaProfile
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