Enum stm32_metapac::opamp::vals::Opamode
#[repr(u8)]pub enum Opamode {
DISABLE = 0,
DISABLE2 = 1,
ENABLE = 2,
FOLLOWER = 3,
}
Variants§
DISABLE = 0
internal PGA disable.
DISABLE2 = 1
internal PGA disable. (Duplicate)
ENABLE = 2
internal PGA enable, gain programmed in PGA_GAIN.
FOLLOWER = 3
internal follower.
Implementations§
Trait Implementations§
§impl Ord for Opamode
impl Ord for Opamode
§impl PartialOrd for Opamode
impl PartialOrd for Opamode
§fn partial_cmp(&self, other: &Opamode) -> Option<Ordering>
fn partial_cmp(&self, other: &Opamode) -> 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 Opamode
impl Eq for Opamode
impl StructuralEq for Opamode
impl StructuralPartialEq for Opamode
Auto Trait Implementations§
impl RefUnwindSafe for Opamode
impl Send for Opamode
impl Sync for Opamode
impl Unpin for Opamode
impl UnwindSafe for Opamode
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