#[repr(u8)]pub enum COMP1INSEL {
OneQuarterVref = 0,
OneHalfVref = 1,
ThreeQuarterVref = 2,
Vref = 3,
Comp1Inm4 = 4,
Comp1Inm5 = 5,
Comp1Inm6 = 6,
}
Expand description
Comparator 1 inverting input selection
Value on reset: 0
Variants§
OneQuarterVref = 0
0: 1/4 of VRefint
OneHalfVref = 1
1: 1/2 of VRefint
ThreeQuarterVref = 2
2: 3/4 of VRefint
Vref = 3
3: VRefint
Comp1Inm4 = 4
4: COMP1_INM4 (PA4 with DAC_OUT1 if enabled)
Comp1Inm5 = 5
5: COMP1_INM5 (PA5 with DAC_OUT2 if present and enabled)
Comp1Inm6 = 6
6: COMP1_INM6 (PA0)
Trait Implementations§
Source§impl Clone for COMP1INSEL
impl Clone for COMP1INSEL
Source§fn clone(&self) -> COMP1INSEL
fn clone(&self) -> COMP1INSEL
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 Debug for COMP1INSEL
impl Debug for COMP1INSEL
Source§impl Format for COMP1INSEL
impl Format for COMP1INSEL
Source§impl From<COMP1INSEL> for u8
impl From<COMP1INSEL> for u8
Source§fn from(variant: COMP1INSEL) -> Self
fn from(variant: COMP1INSEL) -> Self
Converts to this type from the input type.
Source§impl PartialEq for COMP1INSEL
impl PartialEq for COMP1INSEL
impl Copy for COMP1INSEL
impl Eq for COMP1INSEL
impl IsEnum for COMP1INSEL
impl StructuralPartialEq for COMP1INSEL
Auto Trait Implementations§
impl Freeze for COMP1INSEL
impl RefUnwindSafe for COMP1INSEL
impl Send for COMP1INSEL
impl Sync for COMP1INSEL
impl Unpin for COMP1INSEL
impl UnwindSafe for COMP1INSEL
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