#[repr(C)]pub struct PamojaLoraLink {
pub bandwidth_hz: u32,
pub preamble_symbols: u16,
pub spreading_factor: u8,
pub coding_rate_denominator: u8,
pub explicit_header: u8,
pub crc: u8,
}Expand description
The radio settings of a LoRa link.
Build one with pamoja_lora_link_default and adjust the fields that differ
from the defaults. Values outside the ranges LoRa defines are clamped when the
link is used: the spreading factor to 5-12, the coding-rate denominator to 5-8,
and a bandwidth of 0 to one hertz.
Fields§
§bandwidth_hz: u32The channel bandwidth in hertz, such as 125000.
preamble_symbols: u16The preamble length in symbols; the LoRa default is 8.
spreading_factor: u8The spreading factor, 5 (fastest) to 12 (longest range).
coding_rate_denominator: u8The coding-rate denominator, 5 to 8, for 4/5 to 4/8.
explicit_header: u81 for an explicit header, 0 to omit the header symbols.
crc: u81 to append the frame CRC, 0 to leave it off.
Trait Implementations§
Source§impl Clone for PamojaLoraLink
impl Clone for PamojaLoraLink
Source§fn clone(&self) -> PamojaLoraLink
fn clone(&self) -> PamojaLoraLink
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 PamojaLoraLink
Source§impl Debug for PamojaLoraLink
impl Debug for PamojaLoraLink
Source§impl Default for PamojaLoraLink
impl Default for PamojaLoraLink
Source§fn default() -> PamojaLoraLink
fn default() -> PamojaLoraLink
Returns the “default value” for a type. Read more
impl Eq for PamojaLoraLink
Source§impl PartialEq for PamojaLoraLink
impl PartialEq for PamojaLoraLink
impl StructuralPartialEq for PamojaLoraLink
Auto Trait Implementations§
impl Freeze for PamojaLoraLink
impl RefUnwindSafe for PamojaLoraLink
impl Send for PamojaLoraLink
impl Sync for PamojaLoraLink
impl Unpin for PamojaLoraLink
impl UnsafeUnpin for PamojaLoraLink
impl UnwindSafe for PamojaLoraLink
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