MSEHCalibration

Struct MSEHCalibration 

Source
#[repr(C)]
pub struct MSEHCalibration {
Show 20 fields pub type_: [c_char; 30], pub begintime: nstime_t, pub endtime: nstime_t, pub steps: c_int, pub firstpulsepositive: c_int, pub alternatesign: c_int, pub trigger: [c_char; 30], pub continued: c_int, pub amplitude: f64, pub inputunits: [c_char; 30], pub amplituderange: [c_char; 30], pub duration: f64, pub sineperiod: f64, pub stepbetween: f64, pub inputchannel: [c_char; 30], pub refamplitude: f64, pub coupling: [c_char; 30], pub rolloff: [c_char; 30], pub noise: [c_char; 30], pub next: *mut MSEHCalibration,
}
Expand description

@brief Container for calibration parameters for use in extra headers

Actual values are optional, with special values indicating an unset state.

@see mseh_add_calibration

Fields§

§type_: [c_char; 30]

< Calibration type (e.g. “STEP”, “SINE”, “PSEUDORANDOM”), zero length = not included

§begintime: nstime_t

< Begin time, NSTUNSET = not included

§endtime: nstime_t

< End time, NSTUNSET = not included

§steps: c_int

< Number of step calibrations, -1 = not included

§firstpulsepositive: c_int

< Boolean, step cal. first pulse, -1 = not included

§alternatesign: c_int

< Boolean, step cal. alt. sign, -1 = not included

§trigger: [c_char; 30]

< Trigger, e.g. AUTOMATIC or MANUAL, zero length = not included

§continued: c_int

< Boolean, continued from prev. record, -1 = not included

§amplitude: f64

< Amp. of calibration signal, 0.0 = not included

§inputunits: [c_char; 30]

< Units of input (e.g. volts, amps), zero length = not included

§amplituderange: [c_char; 30]

< E.g PEAKTOPTEAK, ZEROTOPEAK, RMS, RANDOM, zero length = not included

§duration: f64

< Duration in seconds, 0.0 = not included

§sineperiod: f64

< Period of sine, 0.0 = not included

§stepbetween: f64

< Interval bewteen steps, 0.0 = not included

§inputchannel: [c_char; 30]

< Channel of input, zero length = not included

§refamplitude: f64

< Reference amplitude, 0.0 = not included

§coupling: [c_char; 30]

< Coupling, e.g. Resistive, Capacitive, zero length = not included

§rolloff: [c_char; 30]

< Rolloff of filters, zero length = not included

§noise: [c_char; 30]

< Noise for PR cals, e.g. White or Red, zero length = not included

§next: *mut MSEHCalibration

< Pointer to next, NULL if none

Trait Implementations§

Source§

impl Clone for MSEHCalibration

Source§

fn clone(&self) -> MSEHCalibration

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MSEHCalibration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for MSEHCalibration

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.