pub struct PassCriteria {
pub normalized_rms_error_db: Option<f64>,
pub peak_error_db: Option<f64>,
pub thd_error_db: Option<f64>,
pub thd_plus_n_error_db: Option<f64>,
pub harmonic_mag_error_db: Option<f64>,
pub even_odd_ratio_error_db: Option<f64>,
pub spectral_error_db: Option<f64>,
pub max_dc_drift_mv: Option<f64>,
pub max_magnitude_error_db: Option<f64>,
pub max_phase_error_deg: Option<f64>,
}Expand description
Pass/fail criteria for a test.
Fields§
§normalized_rms_error_db: Option<f64>Maximum normalized RMS error in dB (e.g., -60.0)
peak_error_db: Option<f64>Maximum peak error in dB (e.g., -40.0)
thd_error_db: Option<f64>Maximum THD difference in dB (e.g., 1.0)
thd_plus_n_error_db: Option<f64>Maximum THD+N difference in dB (includes broadband noise/intermod)
harmonic_mag_error_db: Option<f64>Maximum per-harmonic magnitude error in dB (gated at −100 dBFS)
even_odd_ratio_error_db: Option<f64>Maximum even/odd ratio error in dB
spectral_error_db: Option<f64>Maximum spectral error in dB (e.g., 3.0)
max_dc_drift_mv: Option<f64>Maximum DC drift in mV
max_magnitude_error_db: Option<f64>Maximum magnitude error for transfer function in dB
max_phase_error_deg: Option<f64>Maximum phase error in degrees
Trait Implementations§
Source§impl Clone for PassCriteria
impl Clone for PassCriteria
Source§fn clone(&self) -> PassCriteria
fn clone(&self) -> PassCriteria
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PassCriteria
impl Debug for PassCriteria
Source§impl Default for PassCriteria
impl Default for PassCriteria
Source§fn default() -> PassCriteria
fn default() -> PassCriteria
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PassCriteria
impl<'de> Deserialize<'de> for PassCriteria
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
Auto Trait Implementations§
impl Freeze for PassCriteria
impl RefUnwindSafe for PassCriteria
impl Send for PassCriteria
impl Sync for PassCriteria
impl Unpin for PassCriteria
impl UnsafeUnpin for PassCriteria
impl UnwindSafe for PassCriteria
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