pub struct CalibrationOffset {
pub current: f32,
pub voltage: f32,
pub aux: Option<f32>,
}
Expand description
Contains the calibration offsets, that can be obtained by reading the ADC measurements with the default calibration values and no load applied.
Fields§
§current: f32
Calibration offset for the current channel.
voltage: f32
Calibration offset for the voltage channel.
aux: Option<f32>
Calibration offset for the auxiliary channel. Set this field to None
to automatically
set the auxiliary offset based on the internal values.
Trait Implementations§
Source§impl Clone for CalibrationOffset
impl Clone for CalibrationOffset
Source§fn clone(&self) -> CalibrationOffset
fn clone(&self) -> CalibrationOffset
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 CalibrationOffset
impl Debug for CalibrationOffset
Source§impl Default for CalibrationOffset
impl Default for CalibrationOffset
Source§fn default() -> CalibrationOffset
fn default() -> CalibrationOffset
Returns the “default value” for a type. Read more
impl Copy for CalibrationOffset
Auto Trait Implementations§
impl Freeze for CalibrationOffset
impl RefUnwindSafe for CalibrationOffset
impl Send for CalibrationOffset
impl Sync for CalibrationOffset
impl Unpin for CalibrationOffset
impl UnwindSafe for CalibrationOffset
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