pub struct DDCConfig {
pub enabled: bool,
pub frequency: f64,
pub decimation: u32,
pub input_sampling_frequency: f64,
pub output_sampling_frequency: f64,
pub max_input_sampling_frequency: f64,
pub fir1: DDCFIRConfig,
pub fir2: Option<DDCFIRConfig>,
pub fir3: Option<DDCFIRConfig>,
}Expand description
DDC configuration GET JSON schema.
This JSON schema corresponds to GET requests on /api/ddc/config. It lists
the configuration of each FIR filter in the DDC, as well as some values
calculated from this configuration.
Fields§
§enabled: boolIndicates whether the DDC is currently enabled.
frequency: f64Frequency for the mixer, in Hz.
decimation: u32Total decimation of this DDC configuration.
input_sampling_frequency: f64Input sampling frequency in samples per second.
output_sampling_frequency: f64Output sampling frequency in samples per second.
max_input_sampling_frequency: f64Maximum input sampling frequency supported by this DDC configuration.
fir1: DDCFIRConfigConfiguration of the first FIR filter.
fir2: Option<DDCFIRConfig>Configuration of the second FIR filter.
This has the value None if the second FIR filter is bypassed.
fir3: Option<DDCFIRConfig>Configuration of the third FIR filter.
This has the value None if the third FIR filter is bypassed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DDCConfig
impl<'de> Deserialize<'de> for DDCConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DDCConfig> for DDCConfigSummary
impl From<DDCConfig> for DDCConfigSummary
Source§fn from(value: DDCConfig) -> DDCConfigSummary
fn from(value: DDCConfig) -> DDCConfigSummary
Converts to this type from the input type.
impl StructuralPartialEq for DDCConfig
Auto Trait Implementations§
impl Freeze for DDCConfig
impl RefUnwindSafe for DDCConfig
impl Send for DDCConfig
impl Sync for DDCConfig
impl Unpin for DDCConfig
impl UnwindSafe for DDCConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more