Enum stm32wlxx_hal::subghz::SpreadingFactor  
source · #[repr(u8)]pub enum SpreadingFactor {
    Sf5 = 5,
    Sf6 = 6,
    Sf7 = 7,
    Sf8 = 8,
    Sf9 = 9,
    Sf10 = 10,
    Sf11 = 11,
    Sf12 = 12,
}Expand description
LoRa spreading factor.
Argument of LoRaModParams::set_sf.
Higher spreading factors improve receiver sensitivity, but reduce bit rate and increase power consumption.
Variants§
Sf5 = 5
Spreading factor 5.
Sf6 = 6
Spreading factor 6.
Sf7 = 7
Spreading factor 7.
Sf8 = 8
Spreading factor 8.
Sf9 = 9
Spreading factor 9.
Sf10 = 10
Spreading factor 10.
Sf11 = 11
Spreading factor 11.
Sf12 = 12
Spreading factor 12.
Trait Implementations§
source§impl Clone for SpreadingFactor
 
impl Clone for SpreadingFactor
source§fn clone(&self) -> SpreadingFactor
 
fn clone(&self) -> SpreadingFactor
Returns a copy 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 SpreadingFactor
 
impl Debug for SpreadingFactor
source§impl From<SpreadingFactor> for u8
 
impl From<SpreadingFactor> for u8
source§fn from(sf: SpreadingFactor) -> Self
 
fn from(sf: SpreadingFactor) -> Self
Converts to this type from the input type.
source§impl Ord for SpreadingFactor
 
impl Ord for SpreadingFactor
source§fn cmp(&self, other: &SpreadingFactor) -> Ordering
 
fn cmp(&self, other: &SpreadingFactor) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SpreadingFactor
 
impl PartialEq for SpreadingFactor
source§fn eq(&self, other: &SpreadingFactor) -> bool
 
fn eq(&self, other: &SpreadingFactor) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SpreadingFactor
 
impl PartialOrd for SpreadingFactor
source§fn partial_cmp(&self, other: &SpreadingFactor) -> Option<Ordering>
 
fn partial_cmp(&self, other: &SpreadingFactor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for SpreadingFactor
impl Eq for SpreadingFactor
impl StructuralEq for SpreadingFactor
impl StructuralPartialEq for SpreadingFactor
Auto Trait Implementations§
impl RefUnwindSafe for SpreadingFactor
impl Send for SpreadingFactor
impl Sync for SpreadingFactor
impl Unpin for SpreadingFactor
impl UnwindSafe for SpreadingFactor
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