pub enum Gain {
Div1,
Div2,
Div4,
Div8,
}Expand description
The shunt voltage gain and range, the PG bits of the Configuration register.
Variants§
Div1
Gain 1, ±40 mV.
Div2
Gain 1/2, ±80 mV.
Div4
Gain 1/4, ±160 mV.
Div8
Gain 1/8, ±320 mV, the reset setting.
Implementations§
Trait Implementations§
impl Copy for Gain
impl Eq for Gain
impl StructuralPartialEq for Gain
Auto Trait Implementations§
impl Freeze for Gain
impl RefUnwindSafe for Gain
impl Send for Gain
impl Sync for Gain
impl Unpin for Gain
impl UnsafeUnpin for Gain
impl UnwindSafe for Gain
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