pub struct Measurements {
pub edges: u64,
pub high_ns: u64,
pub low_ns: u64,
pub min_pulse_ns: Option<u64>,
pub max_pulse_ns: Option<u64>,
pub frequency_hz: Option<f64>,
pub duty: Option<f64>,
pub min_volts: Option<f64>,
pub max_volts: Option<f64>,
}Expand description
The numbers a channel reports.
Fields§
§edges: u64Transitions between a driven high and a driven low. A release to high impedance is not an edge.
high_ns: u64§low_ns: u64§min_pulse_ns: Option<u64>The shortest and longest complete high or low pulse in the window.
max_pulse_ns: Option<u64>§frequency_hz: Option<f64>From the rising edges: (rising edges - 1) / (last - first).
duty: Option<f64>Time high over time driven, 0 through 1.
min_volts: Option<f64>§max_volts: Option<f64>Trait Implementations§
Source§impl Clone for Measurements
impl Clone for Measurements
Source§fn clone(&self) -> Measurements
fn clone(&self) -> Measurements
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 moreimpl Copy for Measurements
Source§impl Debug for Measurements
impl Debug for Measurements
Source§impl Default for Measurements
impl Default for Measurements
Source§fn default() -> Measurements
fn default() -> Measurements
Returns the “default value” for a type. Read more
Source§impl PartialEq for Measurements
impl PartialEq for Measurements
impl StructuralPartialEq for Measurements
Auto Trait Implementations§
impl Forget for Measurements
impl Freeze for Measurements
impl Move for Measurements
impl RefUnwindSafe for Measurements
impl Send for Measurements
impl Sync for Measurements
impl Unpin for Measurements
impl UnsafeUnpin for Measurements
impl UnwindSafe for Measurements
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more