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: f32Audio-side sample rate in hertz.
fs_baseband: f32Complex-baseband sample rate in hertz before IQ up/downsampling.
fc: f32Passband carrier frequency in hertz.
payload_gain: f32Additional payload/body gain applied before final packet shaping.
nfft: usizeIFFT/FFT size for OFDM symbols.
ncp: usizeCyclic-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: boolWhether to append a terminal training symbol at the end of the packet.
modulation: ModulationData modulation used on the active data carriers.
equalizer: EqualizerConfigEqualizer subsystem configuration.
fec_mode: FecModeForward-error-correction mode applied to packet bits.
passband_mode: PassbandModePassband conversion path: direct legacy path or IQ path.
wake_ms: f32Wake-preamble duration in milliseconds.
wake_freq: f32Tone wake frequency in hertz when tone wake-up is enabled.
wake_guard_ms: f32Silence/guard interval inserted after the wake preamble, in milliseconds.
wake_preamble: WakePreambleWake-preamble family used before the OFDM body.
sync_chirp_f0: f32Start frequency of the chirp wake preamble in hertz.
sync_chirp_f1: f32End frequency of the chirp wake preamble in hertz.
sync_half_len: usizeHalf-length of the repeated-half sync sequence, in baseband samples.
packet_payload_bytes: usizeMaximum application payload bytes per packet fragment before FEC.
session_id: u16Session identifier written into packet headers.
Trait Implementations§
Source§impl Clone for OfdmConfig
impl Clone for OfdmConfig
Source§fn clone(&self) -> OfdmConfig
fn clone(&self) -> OfdmConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more