pub struct BaseBandModulationParams {
pub sf: SpreadingFactor,
pub bw: Bandwidth,
pub cr: CodingRate,
pub ldro: bool,
/* private fields */
}
Expand description
LoRa modulation parameters barring frequency
Fields§
§sf: SpreadingFactor
§bw: Bandwidth
§cr: CodingRate
§ldro: bool
low data rate optimization, see SX127x datasheet section 4.1.1.6
Implementations§
Source§impl BaseBandModulationParams
impl BaseBandModulationParams
Sourcepub const fn new(sf: SpreadingFactor, bw: Bandwidth, cr: CodingRate) -> Self
pub const fn new(sf: SpreadingFactor, bw: Bandwidth, cr: CodingRate) -> Self
Create a set of parameters, possible forcing low data rate optimization on or off.
Low data rate optimization is determined automatically
based on sf
and bw
according to Semtech’s datasheets for SX126x/SX127x
(enabled if symbol length is >= 16.38ms)
pub const fn delay_in_symbols(&self, delay_in_ms: u32) -> u16
pub const fn symbols_to_ms(&self, symbols: u32) -> u32
Trait Implementations§
Source§impl Clone for BaseBandModulationParams
impl Clone for BaseBandModulationParams
Source§fn clone(&self) -> BaseBandModulationParams
fn clone(&self) -> BaseBandModulationParams
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 BaseBandModulationParams
impl Debug for BaseBandModulationParams
Source§impl PartialEq for BaseBandModulationParams
impl PartialEq for BaseBandModulationParams
impl Copy for BaseBandModulationParams
impl StructuralPartialEq for BaseBandModulationParams
Auto Trait Implementations§
impl Freeze for BaseBandModulationParams
impl RefUnwindSafe for BaseBandModulationParams
impl Send for BaseBandModulationParams
impl Sync for BaseBandModulationParams
impl Unpin for BaseBandModulationParams
impl UnwindSafe for BaseBandModulationParams
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