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