#[repr(C)]pub struct PamojaLoraDataRate {
pub bitrate_bps: u32,
pub bandwidth_hz: u32,
pub kind: u8,
pub spreading_factor: u8,
pub coding_rate_numerator: u8,
pub coding_rate_denominator: u8,
}Expand description
One data rate: how a number on the wire maps onto radio settings.
kind selects which fields carry meaning. A LoRa rate uses
spreading_factor and bandwidth_hz; an LR-FHSS rate uses the coding-rate
pair and bandwidth_hz; an FSK rate uses bitrate_bps alone. A reserved
number leaves every field zero.
Fields§
§bitrate_bps: u32The payload bitrate in bits per second.
bandwidth_hz: u32The channel bandwidth in hertz, or zero for FSK.
kind: u8One of the PAMOJA_LORA_MODULATION_* constants.
spreading_factor: u8The spreading factor, for a LoRa rate.
coding_rate_numerator: u8The coding-rate numerator, for an LR-FHSS rate.
coding_rate_denominator: u8The coding-rate denominator, for an LR-FHSS rate.
Trait Implementations§
Source§impl Clone for PamojaLoraDataRate
impl Clone for PamojaLoraDataRate
Source§fn clone(&self) -> PamojaLoraDataRate
fn clone(&self) -> PamojaLoraDataRate
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 PamojaLoraDataRate
Source§impl Debug for PamojaLoraDataRate
impl Debug for PamojaLoraDataRate
impl Eq for PamojaLoraDataRate
Source§impl PartialEq for PamojaLoraDataRate
impl PartialEq for PamojaLoraDataRate
Source§fn eq(&self, other: &PamojaLoraDataRate) -> bool
fn eq(&self, other: &PamojaLoraDataRate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaLoraDataRate
Auto Trait Implementations§
impl Freeze for PamojaLoraDataRate
impl RefUnwindSafe for PamojaLoraDataRate
impl Send for PamojaLoraDataRate
impl Sync for PamojaLoraDataRate
impl Unpin for PamojaLoraDataRate
impl UnsafeUnpin for PamojaLoraDataRate
impl UnwindSafe for PamojaLoraDataRate
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