Struct radio_sx128x::device::Config [−][src]
Sx128x general configuration object
Fields
regulator_mode: RegulatorMode
Regulator mode configuration
pa_config: PaConfig
Power amplifier configuration
modem: Modem
RF Modem configuration
(note this must match the modulation configuration)
channel: Channel
RF Modulation / Channel configuration
(note this must match the packet configuration)
rf_timeout: Timeout
RF timeout configuration
Note that in high-traffic conditions Timeout::Single must be used to avoid the radio becoming unresponsive, see the chip errata for further details
xtal_freq: u32
Crystal oscillator frequency
timeout_ms: u32
Timeout for blocking / polling internal methods
skip_version_check: bool
Skip firmware version validation
Implementations
impl Config
[src]
pub fn flrc() -> Self
[src]
Create a default FLRC configuration
pub fn gfsk() -> Self
[src]
Create a default GFSK configuration
pub fn lora() -> Self
[src]
Create a default LoRa configuration
impl Config
[src]
pub fn freq_step(&self) -> f32
[src]
Calculate frequency step for a given crystal frequency
pub fn freq_to_steps(&self, f: f32) -> f32
[src]
Convert a provided frequency into configuration steps
Trait Implementations
impl Clone for Config
[src]
impl Debug for Config
[src]
impl Default for Config
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Config> for Config
[src]
impl Serialize for Config
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Config
[src]
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,