#[repr(C)]pub struct PamojaIna219Reading {
pub shunt: i16,
pub bus: u16,
pub current: i16,
pub power: u16,
pub current_lsb_microamps: u32,
pub shunt_microvolts: i32,
pub bus_millivolts: u32,
pub current_microamps: i32,
pub power_microwatts: u32,
pub math_overflow: u8,
}Expand description
One INA219 conversion: the four result registers as read, and what they mean.
Fields§
§shunt: i16The shunt-voltage register.
bus: u16The bus-voltage register, flags included.
current: i16The current register.
power: u16The power register.
current_lsb_microamps: u32The current step the calibration programmed, in microamps per count.
shunt_microvolts: i32The shunt voltage in microvolts.
bus_millivolts: u32The bus voltage in millivolts.
current_microamps: i32The current in microamps; negative flows the other way through the shunt.
power_microwatts: u32The power in microwatts.
math_overflow: u81 when the part’s arithmetic overflowed and the current and power are meaningless.
Trait Implementations§
Source§impl Clone for PamojaIna219Reading
impl Clone for PamojaIna219Reading
Source§fn clone(&self) -> PamojaIna219Reading
fn clone(&self) -> PamojaIna219Reading
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 PamojaIna219Reading
Source§impl Debug for PamojaIna219Reading
impl Debug for PamojaIna219Reading
impl Eq for PamojaIna219Reading
Source§impl PartialEq for PamojaIna219Reading
impl PartialEq for PamojaIna219Reading
impl StructuralPartialEq for PamojaIna219Reading
Auto Trait Implementations§
impl Freeze for PamojaIna219Reading
impl RefUnwindSafe for PamojaIna219Reading
impl Send for PamojaIna219Reading
impl Sync for PamojaIna219Reading
impl Unpin for PamojaIna219Reading
impl UnsafeUnpin for PamojaIna219Reading
impl UnwindSafe for PamojaIna219Reading
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