#[repr(C)]pub struct PamojaIna219Config {
pub reset: u8,
pub bus_range: u8,
pub gain: u8,
pub bus_adc: u8,
pub shunt_adc: u8,
pub mode: u8,
}Expand description
An INA219 configuration register, field by field, each setting as the code the datasheet prints.
Fields§
§reset: u81 resets the part when this register is written.
bus_range: u8The bus-voltage range code: 0 for 16 V, 1 for 32 V.
gain: u8The shunt gain code, 0..=3, for ranges of 40, 80, 160, and 320 mV.
bus_adc: u8The bus ADC code, 0..=15: a resolution below 8, a sample count averaged at 12 bits
from 9 up.
shunt_adc: u8The shunt ADC code, as bus_adc.
mode: u8The operating-mode code, 0..=7.
Trait Implementations§
Source§impl Clone for PamojaIna219Config
impl Clone for PamojaIna219Config
Source§fn clone(&self) -> PamojaIna219Config
fn clone(&self) -> PamojaIna219Config
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 PamojaIna219Config
Source§impl Debug for PamojaIna219Config
impl Debug for PamojaIna219Config
impl Eq for PamojaIna219Config
Source§impl From<Configuration> for PamojaIna219Config
impl From<Configuration> for PamojaIna219Config
Source§impl From<PamojaIna219Config> for Configuration
impl From<PamojaIna219Config> for Configuration
Source§fn from(value: PamojaIna219Config) -> Self
fn from(value: PamojaIna219Config) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaIna219Config
impl PartialEq for PamojaIna219Config
impl StructuralPartialEq for PamojaIna219Config
Auto Trait Implementations§
impl Freeze for PamojaIna219Config
impl RefUnwindSafe for PamojaIna219Config
impl Send for PamojaIna219Config
impl Sync for PamojaIna219Config
impl Unpin for PamojaIna219Config
impl UnsafeUnpin for PamojaIna219Config
impl UnwindSafe for PamojaIna219Config
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