pub enum Mode {
PowerDown = 0,
ShuntTriggered = 1,
BusTriggered = 2,
ShuntAndBusTriggered = 3,
AdcOff = 4,
ShuntContinuous = 5,
BusContinuous = 6,
ShuntAndBusContinuous = 7,
}Expand description
The operating mode, the MODE bits of the Configuration register.
Writing a triggered mode starts one conversion, even if that mode is already set.
Variants§
PowerDown = 0
No conversions, lowest power.
ShuntTriggered = 1
One shunt conversion.
BusTriggered = 2
One bus conversion.
ShuntAndBusTriggered = 3
One shunt and one bus conversion.
AdcOff = 4
The ADC disabled.
ShuntContinuous = 5
Shunt conversions back to back.
BusContinuous = 6
Bus conversions back to back.
ShuntAndBusContinuous = 7
Shunt and bus conversions back to back, the reset setting.
Implementations§
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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