#[repr(C)]pub struct PamojaIna226Settings {
pub shunt_milliohms: u32,
pub max_microamps: u32,
pub current_lsb_microamps: u32,
pub config: PamojaIna226Config,
}Expand description
How an INA226 driver measures: the shunt, the current it is sized for, and the register settings.
Fields§
§shunt_milliohms: u32The shunt resistance in milliohms.
max_microamps: u32The largest current the shunt will carry, in microamps, which sets the finest current step the calibration allows.
current_lsb_microamps: u32A current step in microamps per count to use instead, or 0 to take the finest step
for max_microamps.
config: PamojaIna226ConfigThe averaging and conversion times; the mode is chosen per conversion.
Trait Implementations§
Source§impl Clone for PamojaIna226Settings
impl Clone for PamojaIna226Settings
Source§fn clone(&self) -> PamojaIna226Settings
fn clone(&self) -> PamojaIna226Settings
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 PamojaIna226Settings
Source§impl Debug for PamojaIna226Settings
impl Debug for PamojaIna226Settings
impl Eq for PamojaIna226Settings
Source§impl PartialEq for PamojaIna226Settings
impl PartialEq for PamojaIna226Settings
impl StructuralPartialEq for PamojaIna226Settings
Auto Trait Implementations§
impl Freeze for PamojaIna226Settings
impl RefUnwindSafe for PamojaIna226Settings
impl Send for PamojaIna226Settings
impl Sync for PamojaIna226Settings
impl Unpin for PamojaIna226Settings
impl UnsafeUnpin for PamojaIna226Settings
impl UnwindSafe for PamojaIna226Settings
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