Enum stm32_metapac::adc::vals::Presc
#[repr(u8)]pub enum Presc {
Show 16 variants
DIV1 = 0,
DIV2 = 1,
DIV4 = 2,
DIV6 = 3,
DIV8 = 4,
DIV10 = 5,
DIV12 = 6,
DIV16 = 7,
DIV32 = 8,
DIV64 = 9,
DIV128 = 10,
DIV256 = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
}
Variants§
DIV1 = 0
Input ADC clock not divided.
DIV2 = 1
Input ADC clock divided by 2.
DIV4 = 2
Input ADC clock divided by 4.
DIV6 = 3
Input ADC clock divided by 6.
DIV8 = 4
Input ADC clock divided by 8.
DIV10 = 5
Input ADC clock divided by 10.
DIV12 = 6
Input ADC clock divided by 12.
DIV16 = 7
Input ADC clock divided by 16.
DIV32 = 8
Input ADC clock divided by 32.
DIV64 = 9
Input ADC clock divided by 64.
DIV128 = 10
Input ADC clock divided by 128.
DIV256 = 11
Input ADC clock divided by 256.
_RESERVED_c = 12
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
Implementations§
Trait Implementations§
§impl Ord for Presc
impl Ord for Presc
§impl PartialOrd for Presc
impl PartialOrd for Presc
§fn partial_cmp(&self, other: &Presc) -> Option<Ordering>
fn partial_cmp(&self, other: &Presc) -> 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 Presc
impl Eq for Presc
impl StructuralEq for Presc
impl StructuralPartialEq for Presc
Auto Trait Implementations§
impl RefUnwindSafe for Presc
impl Send for Presc
impl Sync for Presc
impl Unpin for Presc
impl UnwindSafe for Presc
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