Enum stm32_metapac::opamp::vals::VmSel
#[repr(u8)]pub enum VmSel {
INM0 = 0,
INM1 = 1,
PGA = 2,
FOLLOWER = 3,
}
Variants§
INM0 = 0
INM0 connected to OPAMP_VINM input
INM1 = 1
INM1 connected to OPAMP_VINM input
PGA = 2
Feedback resistor is connected to the OPAMP_VINM input (PGA mode), Inverting input selection depends on the PGA_GAIN setting
FOLLOWER = 3
opamp_out connected to OPAMP_VINM input (Follower mode)
Implementations§
Trait Implementations§
§impl Ord for VmSel
impl Ord for VmSel
§impl PartialOrd for VmSel
impl PartialOrd for VmSel
§fn partial_cmp(&self, other: &VmSel) -> Option<Ordering>
fn partial_cmp(&self, other: &VmSel) -> 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 VmSel
impl Eq for VmSel
impl StructuralEq for VmSel
impl StructuralPartialEq for VmSel
Auto Trait Implementations§
impl RefUnwindSafe for VmSel
impl Send for VmSel
impl Sync for VmSel
impl Unpin for VmSel
impl UnwindSafe for VmSel
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