pub struct LoRaConfig {
pub freq_hz: u32,
pub sf: u8,
pub bw: LoRaBandwidth,
pub cr: LoRaCodingRate,
pub preamble_len: u16,
pub sync_word: u16,
pub tx_power_dbm: i8,
pub header_mode: LoRaHeaderMode,
pub payload_crc: bool,
pub iq_invert: bool,
}Expand description
LoRa configuration payload (15 bytes after modulation_id).
Fields§
§freq_hz: u32§sf: u8Spreading factor 5–12 (chip-dependent: SX127x is 6–12).
bw: LoRaBandwidth§cr: LoRaCodingRate§preamble_len: u16§sync_word: u16§tx_power_dbm: i8§header_mode: LoRaHeaderMode§payload_crc: boolPayload CRC: false disabled, true enabled.
iq_invert: boolIQ inversion: false normal, true inverted.
Implementations§
Trait Implementations§
Source§impl Clone for LoRaConfig
impl Clone for LoRaConfig
Source§fn clone(&self) -> LoRaConfig
fn clone(&self) -> LoRaConfig
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 LoRaConfig
impl Debug for LoRaConfig
Source§impl Format for LoRaConfig
impl Format for LoRaConfig
Source§impl PartialEq for LoRaConfig
impl PartialEq for LoRaConfig
impl Copy for LoRaConfig
impl Eq for LoRaConfig
impl StructuralPartialEq for LoRaConfig
Auto Trait Implementations§
impl Freeze for LoRaConfig
impl RefUnwindSafe for LoRaConfig
impl Send for LoRaConfig
impl Sync for LoRaConfig
impl Unpin for LoRaConfig
impl UnsafeUnpin for LoRaConfig
impl UnwindSafe for LoRaConfig
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