#[repr(C)]pub struct PamojaIna226Config {
pub reset: u8,
pub averaging: u8,
pub bus_conversion_time: u8,
pub shunt_conversion_time: u8,
pub mode: u8,
}Expand description
An INA226 configuration register, field by field.
Fields§
§reset: u81 resets the part when this register is written.
averaging: u8The averaging code, 0..=7, from 1 to 1024 samples.
bus_conversion_time: u8The bus-voltage conversion-time code, 0..=7.
shunt_conversion_time: u8The shunt-voltage conversion-time code, 0..=7.
mode: u8The operating-mode code, 0..=7.
Trait Implementations§
Source§impl Clone for PamojaIna226Config
impl Clone for PamojaIna226Config
Source§fn clone(&self) -> PamojaIna226Config
fn clone(&self) -> PamojaIna226Config
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 PamojaIna226Config
Source§impl Debug for PamojaIna226Config
impl Debug for PamojaIna226Config
impl Eq for PamojaIna226Config
Source§impl From<Configuration> for PamojaIna226Config
impl From<Configuration> for PamojaIna226Config
Source§impl From<PamojaIna226Config> for Configuration
impl From<PamojaIna226Config> for Configuration
Source§fn from(value: PamojaIna226Config) -> Self
fn from(value: PamojaIna226Config) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaIna226Config
impl PartialEq for PamojaIna226Config
Source§fn eq(&self, other: &PamojaIna226Config) -> bool
fn eq(&self, other: &PamojaIna226Config) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaIna226Config
Auto Trait Implementations§
impl Freeze for PamojaIna226Config
impl RefUnwindSafe for PamojaIna226Config
impl Send for PamojaIna226Config
impl Sync for PamojaIna226Config
impl Unpin for PamojaIna226Config
impl UnsafeUnpin for PamojaIna226Config
impl UnwindSafe for PamojaIna226Config
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