#[repr(u8)]pub enum ConfigMode {
SE = 0,
DIFF = 1,
}
Variants§
SE = 0
Single-ended, PSELN will be ignored, negative input to ADC shorted to GND
DIFF = 1
Differential
Implementations§
Source§impl ConfigMode
impl ConfigMode
Trait Implementations§
Source§impl Clone for ConfigMode
impl Clone for ConfigMode
Source§fn clone(&self) -> ConfigMode
fn clone(&self) -> ConfigMode
Returns a copy 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 From<ConfigMode> for u8
impl From<ConfigMode> for u8
Source§fn from(val: ConfigMode) -> u8
fn from(val: ConfigMode) -> u8
Converts to this type from the input type.
Source§impl From<u8> for ConfigMode
impl From<u8> for ConfigMode
Source§fn from(val: u8) -> ConfigMode
fn from(val: u8) -> ConfigMode
Converts to this type from the input type.
Source§impl Ord for ConfigMode
impl Ord for ConfigMode
Source§fn cmp(&self, other: &ConfigMode) -> Ordering
fn cmp(&self, other: &ConfigMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConfigMode
impl PartialEq for ConfigMode
Source§impl PartialOrd for ConfigMode
impl PartialOrd for ConfigMode
impl Copy for ConfigMode
impl Eq for ConfigMode
impl StructuralPartialEq for ConfigMode
Auto Trait Implementations§
impl Freeze for ConfigMode
impl RefUnwindSafe for ConfigMode
impl Send for ConfigMode
impl Sync for ConfigMode
impl Unpin for ConfigMode
impl UnwindSafe for ConfigMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)