pub struct PutDDCDesign {
pub frequency: f64,
pub decimation: u32,
pub transition_bandwidth: Option<f64>,
pub passband_ripple: Option<f64>,
pub stopband_attenuation_db: Option<f64>,
pub stopband_one_over_f: Option<bool>,
}Expand description
DDC design PUT JSON schema.
This JSON schema corresponds to PUT requests on /api/ddc/design. It is
used to define design constraints for the DDC and have maia-httpd calculate
suitable FIR filters coefficients using pm-remez.
Fields§
§frequency: f64Frequency for the mixer, in Hz.
decimation: u32Decimation factor for the DDC.
transition_bandwidth: Option<f64>Transition bandwidth of the DDC output.
This is the fraction (in [0, 1]) of the total output bandwidth that gets used as transition bands.
passband_ripple: Option<f64>Passband ripple.
stopband_attenuation_db: Option<f64>Stopband attenuation in dB.
stopband_one_over_f: Option<bool>Use 1/f response in the stopband.
Trait Implementations§
Source§impl Clone for PutDDCDesign
impl Clone for PutDDCDesign
Source§fn clone(&self) -> PutDDCDesign
fn clone(&self) -> PutDDCDesign
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PutDDCDesign
impl Debug for PutDDCDesign
Source§impl<'de> Deserialize<'de> for PutDDCDesign
impl<'de> Deserialize<'de> for PutDDCDesign
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 PartialEq for PutDDCDesign
impl PartialEq for PutDDCDesign
Source§impl Serialize for PutDDCDesign
impl Serialize for PutDDCDesign
impl StructuralPartialEq for PutDDCDesign
Auto Trait Implementations§
impl Freeze for PutDDCDesign
impl RefUnwindSafe for PutDDCDesign
impl Send for PutDDCDesign
impl Sync for PutDDCDesign
impl Unpin for PutDDCDesign
impl UnwindSafe for PutDDCDesign
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