pub enum Mux {
Ain0Ain1,
Ain0Ain3,
Ain1Ain3,
Ain2Ain3,
Ain0Gnd,
Ain1Gnd,
Ain2Gnd,
Ain3Gnd,
}Expand description
The input multiplexer setting (Config bits 14:12).
The ADS1115 measures either of two differential pairs against AIN3, the pair
AIN0/AIN1, or any one input against ground.
Variants§
Ain0Ain1
AINP = AIN0, AINN = AIN1 (the default).
Ain0Ain3
AINP = AIN0, AINN = AIN3.
Ain1Ain3
AINP = AIN1, AINN = AIN3.
Ain2Ain3
AINP = AIN2, AINN = AIN3.
Ain0Gnd
AINP = AIN0, AINN = GND (single-ended).
Ain1Gnd
AINP = AIN1, AINN = GND (single-ended).
Ain2Gnd
AINP = AIN2, AINN = GND (single-ended).
Ain3Gnd
AINP = AIN3, AINN = GND (single-ended).
Implementations§
Trait Implementations§
impl Copy for Mux
impl Eq for Mux
impl StructuralPartialEq for Mux
Auto Trait Implementations§
impl Freeze for Mux
impl RefUnwindSafe for Mux
impl Send for Mux
impl Sync for Mux
impl Unpin for Mux
impl UnsafeUnpin for Mux
impl UnwindSafe for Mux
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