Struct radio_sx127x::device::lora::LoRaConfig
source · [−]pub struct LoRaConfig {
pub frequency_hop: FrequencyHopping,
pub preamble_len: u16,
pub payload_len: PayloadLength,
pub payload_crc: PayloadCrc,
pub invert_iq: bool,
pub symbol_timeout: u16,
}
Expand description
LoRa Radio Configuration Object
Fields
frequency_hop: FrequencyHopping
LoRa Frequency hopping configuration (defaults to disabled)
preamble_len: u16
Preamble length in symbols (defaults to 0x8) (note that hardware adds four additional symbols in LoRa mode)
payload_len: PayloadLength
Payload length configuration (defaults to Variable / Explicit header mode)
payload_crc: PayloadCrc
Payload RX CRC configuration (defaults to enabled)
invert_iq: bool
IQ inversion configuration (defaults to disabled)
symbol_timeout: u16
TxSingle timeout value (defaults to 0x64)
Trait Implementations
sourceimpl Clone for LoRaConfig
impl Clone for LoRaConfig
sourcefn clone(&self) -> LoRaConfig
fn clone(&self) -> LoRaConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LoRaConfig
impl Debug for LoRaConfig
sourceimpl Default for LoRaConfig
impl Default for LoRaConfig
sourceimpl<'de> Deserialize<'de> for LoRaConfig where
LoRaConfig: Default,
impl<'de> Deserialize<'de> for LoRaConfig where
LoRaConfig: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<LoRaConfig> for LoRaConfig
impl PartialEq<LoRaConfig> for LoRaConfig
sourcefn eq(&self, other: &LoRaConfig) -> bool
fn eq(&self, other: &LoRaConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LoRaConfig) -> bool
fn ne(&self, other: &LoRaConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for LoRaConfig
impl Serialize for LoRaConfig
impl Copy for LoRaConfig
impl StructuralPartialEq for LoRaConfig
Auto Trait Implementations
impl RefUnwindSafe for LoRaConfig
impl Send for LoRaConfig
impl Sync for LoRaConfig
impl Unpin for LoRaConfig
impl UnwindSafe for LoRaConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more