OfdmConfig

Struct OfdmConfig 

Source
pub struct OfdmConfig {
Show 26 fields pub fs: f32, pub fs_baseband: f32, pub fc: f32, pub payload_gain: f32, pub nfft: usize, pub ncp: usize, pub base_freq_hz: Option<f32>, pub used_bins: Vec<usize>, pub pilot_bins: Vec<usize>, pub num_pilots: Option<usize>, pub use_pilots: Option<bool>, pub retrain_interval_data_symbols: Option<usize>, pub terminal_training_symbol: bool, pub modulation: Modulation, pub equalizer: EqualizerConfig, pub fec_mode: FecMode, pub passband_mode: PassbandMode, pub wake_ms: f32, pub wake_freq: f32, pub wake_guard_ms: f32, pub wake_preamble: WakePreamble, pub sync_chirp_f0: f32, pub sync_chirp_f1: f32, pub sync_half_len: usize, pub packet_payload_bytes: usize, pub session_id: u16,
}

Fields§

§fs: f32

Audio-side sample rate in hertz.

§fs_baseband: f32

Complex-baseband sample rate in hertz before IQ up/downsampling.

§fc: f32

Passband carrier frequency in hertz.

§payload_gain: f32

Additional payload/body gain applied before final packet shaping.

§nfft: usize

IFFT/FFT size for OFDM symbols.

§ncp: usize

Cyclic-prefix length in samples at the active baseband rate.

§base_freq_hz: Option<f32>

Optional explicit baseband frequency origin override.

§used_bins: Vec<usize>

Active FFT-bin indices used by the modem.

§pilot_bins: Vec<usize>

Active FFT-bin indices reserved for pilots.

§num_pilots: Option<usize>

Optional legacy pilot-count override kept for compatibility.

§use_pilots: Option<bool>

Optional legacy pilot enable flag kept for compatibility.

§retrain_interval_data_symbols: Option<usize>

Optional periodic retraining interval in data symbols.

§terminal_training_symbol: bool

Whether to append a terminal training symbol at the end of the packet.

§modulation: Modulation

Data modulation used on the active data carriers.

§equalizer: EqualizerConfig

Equalizer subsystem configuration.

§fec_mode: FecMode

Forward-error-correction mode applied to packet bits.

§passband_mode: PassbandMode

Passband conversion path: direct legacy path or IQ path.

§wake_ms: f32

Wake-preamble duration in milliseconds.

§wake_freq: f32

Tone wake frequency in hertz when tone wake-up is enabled.

§wake_guard_ms: f32

Silence/guard interval inserted after the wake preamble, in milliseconds.

§wake_preamble: WakePreamble

Wake-preamble family used before the OFDM body.

§sync_chirp_f0: f32

Start frequency of the chirp wake preamble in hertz.

§sync_chirp_f1: f32

End frequency of the chirp wake preamble in hertz.

§sync_half_len: usize

Half-length of the repeated-half sync sequence, in baseband samples.

§packet_payload_bytes: usize

Maximum application payload bytes per packet fragment before FEC.

§session_id: u16

Session identifier written into packet headers.

Trait Implementations§

Source§

impl Clone for OfdmConfig

Source§

fn clone(&self) -> OfdmConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OfdmConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OfdmConfig

Source§

fn default() -> Self

Builds the default OFDM modem configuration.

Parameters:

  • none. Returns:
  • OfdmConfig: default configuration values.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.