[][src]Struct radio_sx128x::device::Config

pub struct Config {
    pub regulator_mode: RegulatorMode,
    pub pa_config: PaConfig,
    pub modem: Modem,
    pub channel: Channel,
    pub rf_timeout: Timeout,
    pub xtal_freq: u32,
    pub timeout_ms: u32,
    pub skip_version_check: bool,
    // some fields omitted
}

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

xtal_freq: u32

Crystal oscillator frequency

timeout_ms: u32

Timeout for blocking / polling internal methods

skip_version_check: bool

Skip firmware version validation

Methods

impl Config[src]

pub fn freq_step(&self) -> f32[src]

pub fn freq_to_steps(&self, f: f32) -> f32[src]

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl<'de> Deserialize<'de> for Config[src]

impl PartialEq<Config> for Config[src]

impl Serialize for Config[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.