#[repr(C)]pub struct PamojaIna226MaskEnable {
pub shunt_over_limit: u8,
pub shunt_under_limit: u8,
pub bus_over_limit: u8,
pub bus_under_limit: u8,
pub power_over_limit: u8,
pub conversion_ready: u8,
pub alert_function_flag: u8,
pub conversion_ready_flag: u8,
pub math_overflow: u8,
pub alert_active_high: u8,
pub alert_latch: u8,
}Expand description
An INA226 Mask/Enable register, field by field.
Fields§
§shunt_over_limit: u81 alerts when the shunt voltage exceeds the limit.
shunt_under_limit: u81 alerts when the shunt voltage drops below the limit.
bus_over_limit: u81 alerts when the bus voltage exceeds the limit.
bus_under_limit: u81 alerts when the bus voltage drops below the limit.
power_over_limit: u81 alerts when the power exceeds the limit.
conversion_ready: u81 also alerts when a conversion completes.
alert_function_flag: u81 when the selected limit function caused the last alert.
conversion_ready_flag: u81 when every conversion and multiplication has completed.
math_overflow: u81 when an arithmetic overflow left current and power invalid.
alert_active_high: u81 makes the alert pin active high.
alert_latch: u81 latches the alert pin until this register is read.
Trait Implementations§
Source§impl Clone for PamojaIna226MaskEnable
impl Clone for PamojaIna226MaskEnable
Source§fn clone(&self) -> PamojaIna226MaskEnable
fn clone(&self) -> PamojaIna226MaskEnable
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 PamojaIna226MaskEnable
Source§impl Debug for PamojaIna226MaskEnable
impl Debug for PamojaIna226MaskEnable
impl Eq for PamojaIna226MaskEnable
Source§impl From<MaskEnable> for PamojaIna226MaskEnable
impl From<MaskEnable> for PamojaIna226MaskEnable
Source§impl From<PamojaIna226MaskEnable> for MaskEnable
impl From<PamojaIna226MaskEnable> for MaskEnable
Source§fn from(value: PamojaIna226MaskEnable) -> Self
fn from(value: PamojaIna226MaskEnable) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaIna226MaskEnable
impl PartialEq for PamojaIna226MaskEnable
Source§fn eq(&self, other: &PamojaIna226MaskEnable) -> bool
fn eq(&self, other: &PamojaIna226MaskEnable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaIna226MaskEnable
Auto Trait Implementations§
impl Freeze for PamojaIna226MaskEnable
impl RefUnwindSafe for PamojaIna226MaskEnable
impl Send for PamojaIna226MaskEnable
impl Sync for PamojaIna226MaskEnable
impl Unpin for PamojaIna226MaskEnable
impl UnsafeUnpin for PamojaIna226MaskEnable
impl UnwindSafe for PamojaIna226MaskEnable
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