#[repr(u8)]pub enum OperatingMode {
PowerDown = 0,
ShuntTriggered = 1,
BusTriggered = 2,
ShuntBusTriggered = 3,
ShuntContinuous = 5,
BusContinuous = 6,
ShuntBusContinuous = 7,
}Expand description
Operating mode for the INA3221
Controls whether the device performs continuous measurements, single-shot (triggered), or enters power-down mode.
Variants§
PowerDown = 0
Power-down mode - minimal power consumption
ShuntTriggered = 1
Shunt voltage only, single-shot (triggered)
BusTriggered = 2
Bus voltage only, single-shot (triggered)
ShuntBusTriggered = 3
Shunt and bus voltage, single-shot (triggered)
ShuntContinuous = 5
Shunt voltage only, continuous
BusContinuous = 6
Bus voltage only, continuous
ShuntBusContinuous = 7
Shunt and bus voltage, continuous (default)
Implementations§
Trait Implementations§
Source§impl Clone for OperatingMode
impl Clone for OperatingMode
Source§fn clone(&self) -> OperatingMode
fn clone(&self) -> OperatingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatingMode
impl Debug for OperatingMode
Source§impl Default for OperatingMode
impl Default for OperatingMode
Source§fn default() -> OperatingMode
fn default() -> OperatingMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for OperatingMode
impl PartialEq for OperatingMode
impl Copy for OperatingMode
impl Eq for OperatingMode
impl StructuralPartialEq for OperatingMode
Auto Trait Implementations§
impl Freeze for OperatingMode
impl RefUnwindSafe for OperatingMode
impl Send for OperatingMode
impl Sync for OperatingMode
impl Unpin for OperatingMode
impl UnwindSafe for OperatingMode
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