#[repr(C)]pub struct PamojaLorawanDeviceSettings {
pub lowest_hz: u32,
pub highest_hz: u32,
pub seed: u32,
pub version: u8,
pub adr: u8,
pub min_output_dbm: i8,
pub max_output_dbm: i8,
pub antenna_gain_db: i8,
pub regional_duty_cycle: u8,
pub behind_repeater: u8,
}Expand description
What a device’s radio can do, and how it takes part.
Fill one with pamoja_lorawan_device_settings, then change what differs.
Fields§
§lowest_hz: u32The lowest frequency the radio and its front end can use, in hertz.
highest_hz: u32The highest, in hertz.
seed: u32A seed for the random choices of channel and retry delay, ideally from a hardware random source. The device identifier is mixed in.
version: u8The link layer revision, PAMOJA_LORAWAN_VERSION_1_0_3 or
PAMOJA_LORAWAN_VERSION_1_0_4.
adr: u81 to let the network manage the data rate and power.
min_output_dbm: i8The lowest power the radio puts out, conducted, in dBm.
max_output_dbm: i8The highest, conducted, in dBm.
antenna_gain_db: i8The antenna gain less the cable and connector losses, in dB.
regional_duty_cycle: u81 to hold the device to the region’s sub-band duty cycles.
behind_repeater: u81 to size payloads for a path through a relay.
Trait Implementations§
Source§impl Clone for PamojaLorawanDeviceSettings
impl Clone for PamojaLorawanDeviceSettings
Source§fn clone(&self) -> PamojaLorawanDeviceSettings
fn clone(&self) -> PamojaLorawanDeviceSettings
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 PamojaLorawanDeviceSettings
Source§impl Debug for PamojaLorawanDeviceSettings
impl Debug for PamojaLorawanDeviceSettings
impl Eq for PamojaLorawanDeviceSettings
impl StructuralPartialEq for PamojaLorawanDeviceSettings
Auto Trait Implementations§
impl Freeze for PamojaLorawanDeviceSettings
impl RefUnwindSafe for PamojaLorawanDeviceSettings
impl Send for PamojaLorawanDeviceSettings
impl Sync for PamojaLorawanDeviceSettings
impl Unpin for PamojaLorawanDeviceSettings
impl UnsafeUnpin for PamojaLorawanDeviceSettings
impl UnwindSafe for PamojaLorawanDeviceSettings
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