Struct SweepParams

Source
pub struct SweepParams {
    pub sample_rate_hz: u32,
    pub freq_mhz: Vec<(u16, u16)>,
    pub blocks_per_tuning: u16,
    pub step_width_hz: u32,
    pub offset_hz: u32,
    pub mode: SweepMode,
}
Expand description

Configuration settings for a receive sweep across multiple frequencies.

Fields§

§sample_rate_hz: u32

Sample rate to operate at.

§freq_mhz: Vec<(u16, u16)>

List of frequency pairs to sweep over, in MHz. There can be up to 10.

§blocks_per_tuning: u16

Number of blocks to capture per tuning. Each block is 16384 bytes, or 8192 samples.

§step_width_hz: u32

Width of each tuning step, in Hz. sample_rate is a good value, in general.

§offset_hz: u32

Frequency offset added to tuned frequencies. Sample_rate*3/8 is a good value for Interleaved sweep mode.

§mode: SweepMode

Sweep mode.

Implementations§

Source§

impl SweepParams

Source

pub fn initialize_from_sample_rate(sample_rate_hz: u32) -> Self

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> 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, 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.