pub enum Modulation {
LoRa {
spreading_factor: u8,
bandwidth_hz: u32,
},
Fsk {
bitrate_bps: u32,
},
LrFhss {
coding_rate_numerator: u8,
coding_rate_denominator: u8,
bandwidth_hz: u32,
},
}Expand description
How a data rate puts bits on the air.
Variants§
LoRa
LoRa chirp spread spectrum, the modulation the rest of this crate models.
Fields
Fsk
Plain FSK, which one data rate in several regions uses.
LrFhss
Long-range frequency hopping spread spectrum.
Trait Implementations§
Source§impl Clone for Modulation
impl Clone for Modulation
Source§fn clone(&self) -> Modulation
fn clone(&self) -> Modulation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Modulation
Source§impl Debug for Modulation
impl Debug for Modulation
impl Eq for Modulation
Source§impl PartialEq for Modulation
impl PartialEq for Modulation
Source§fn eq(&self, other: &Modulation) -> bool
fn eq(&self, other: &Modulation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Modulation
Auto Trait Implementations§
impl Freeze for Modulation
impl RefUnwindSafe for Modulation
impl Send for Modulation
impl Sync for Modulation
impl Unpin for Modulation
impl UnsafeUnpin for Modulation
impl UnwindSafe for Modulation
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