Struct ade791x::Measurement
source · pub struct Measurement {
pub current: f32,
pub voltage: f32,
pub aux: MeasurementAux,
}
Expand description
Contains the converted metrics coming from the ADC.
Fields§
§current: f32
Current value in Amperes.
voltage: f32
Voltage value in Volts.
aux: MeasurementAux
Auxiliary metric value as a MeasurementAux
. This field can be a second voltage
measurement in Volts for the ADE7913 or a temperature measurement in °C for the ADE7912 or
the ADE7913, if temp_en = true
in Config
.
Trait Implementations§
source§impl Clone for Measurement
impl Clone for Measurement
source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
Returns a copy 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 Measurement
impl Debug for Measurement
source§impl PartialEq<Measurement> for Measurement
impl PartialEq<Measurement> for Measurement
source§fn eq(&self, other: &Measurement) -> bool
fn eq(&self, other: &Measurement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.