#[repr(C)]pub struct PamojaLoraRadioConfig {
pub frequency_hz: u32,
pub band_low_hz: u32,
pub band_high_hz: u32,
pub link: PamojaLoraLink,
pub output_dbm: i8,
pub sync_word: u8,
pub invert_iq_transmit: bool,
pub invert_iq_receive: bool,
}Expand description
What a radio of either family sends and listens with.
Fields§
§frequency_hz: u32The carrier frequency in hertz.
band_low_hz: u32The lower edge of the band an SX126x calibrates its receiver for, in hertz, or 0 with
band_high_hz 0 to calibrate for the carrier alone.
band_high_hz: u32The upper edge of that band in hertz.
link: PamojaLoraLinkThe spreading factor, bandwidth, coding rate, preamble, header, and CRC.
output_dbm: i8The output power asked of the amplifier, in dBm, clamped to its range.
sync_word: u8The sync word byte: PAMOJA_LORA_RADIO_SYNC_WORD_PUBLIC,
PAMOJA_LORA_RADIO_SYNC_WORD_PRIVATE, or another value.
invert_iq_transmit: booltrue to send frames with inverted IQ, as a LoRaWAN gateway sends downlinks.
invert_iq_receive: booltrue to expect frames with inverted IQ, as a LoRaWAN device hears downlinks.
Trait Implementations§
Source§impl Clone for PamojaLoraRadioConfig
impl Clone for PamojaLoraRadioConfig
Source§fn clone(&self) -> PamojaLoraRadioConfig
fn clone(&self) -> PamojaLoraRadioConfig
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 PamojaLoraRadioConfig
Source§impl Debug for PamojaLoraRadioConfig
impl Debug for PamojaLoraRadioConfig
impl Eq for PamojaLoraRadioConfig
Source§impl PartialEq for PamojaLoraRadioConfig
impl PartialEq for PamojaLoraRadioConfig
impl StructuralPartialEq for PamojaLoraRadioConfig
Auto Trait Implementations§
impl Freeze for PamojaLoraRadioConfig
impl RefUnwindSafe for PamojaLoraRadioConfig
impl Send for PamojaLoraRadioConfig
impl Sync for PamojaLoraRadioConfig
impl Unpin for PamojaLoraRadioConfig
impl UnsafeUnpin for PamojaLoraRadioConfig
impl UnwindSafe for PamojaLoraRadioConfig
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