#[repr(C)]pub struct PamojaIna219Settings {
pub shunt_milliohms: u32,
pub max_microamps: u32,
pub current_lsb_microamps: u32,
pub config: PamojaIna219Config,
}Expand description
How an INA219 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, such as a round 100, or 0 to
take the finest step for max_microamps.
config: PamojaIna219ConfigThe range, gain, and converter settings; the mode is chosen per conversion.
Trait Implementations§
Source§impl Clone for PamojaIna219Settings
impl Clone for PamojaIna219Settings
Source§fn clone(&self) -> PamojaIna219Settings
fn clone(&self) -> PamojaIna219Settings
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 PamojaIna219Settings
Source§impl Debug for PamojaIna219Settings
impl Debug for PamojaIna219Settings
impl Eq for PamojaIna219Settings
Source§impl PartialEq for PamojaIna219Settings
impl PartialEq for PamojaIna219Settings
impl StructuralPartialEq for PamojaIna219Settings
Auto Trait Implementations§
impl Freeze for PamojaIna219Settings
impl RefUnwindSafe for PamojaIna219Settings
impl Send for PamojaIna219Settings
impl Sync for PamojaIna219Settings
impl Unpin for PamojaIna219Settings
impl UnsafeUnpin for PamojaIna219Settings
impl UnwindSafe for PamojaIna219Settings
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