Enum stm32_metapac::dac::vals::Mode
#[repr(u8)]pub enum Mode {
NORMAL_EXT_BUFEN = 0,
NORMAL_EXT_INT_BUFEN = 1,
NORMAL_EXT_BUFDIS = 2,
NORMAL_INT_BUFDIS = 3,
SAMPHOLD_EXT_BUFEN = 4,
SAMPHOLD_EXT_INT_BUFEN = 5,
SAMPHOLD_EXT_INT_BUFDIS = 6,
SAMPHOLD_INT_BUFDIS = 7,
}
Variants§
NORMAL_EXT_BUFEN = 0
Normal mode, external pin only, buffer enabled
NORMAL_EXT_INT_BUFEN = 1
Normal mode, external pin and internal peripherals, buffer enabled
NORMAL_EXT_BUFDIS = 2
Normal mode, external pin only, buffer disabled
NORMAL_INT_BUFDIS = 3
Normal mode, internal peripherals only, buffer disabled
SAMPHOLD_EXT_BUFEN = 4
Sample and hold mode, external pin only, buffer enabled
SAMPHOLD_EXT_INT_BUFEN = 5
Sample and hold mode, external pin and internal peripherals, buffer enabled
SAMPHOLD_EXT_INT_BUFDIS = 6
Sample and hold mode, external pin and internal peripherals, buffer disabled
SAMPHOLD_INT_BUFDIS = 7
Sample and hold mode, internal peripherals only, buffer disabled
Implementations§
Trait Implementations§
§impl Ord for Mode
impl Ord for Mode
§impl PartialOrd for Mode
impl PartialOrd for Mode
§fn partial_cmp(&self, other: &Mode) -> Option<Ordering>
fn partial_cmp(&self, other: &Mode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin 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