Enum stm32_metapac::adc::vals::Res
#[repr(u8)]pub enum Res {
SIXTEENBIT = 0,
FOURTEENBIT = 1,
TWELVEBIT = 2,
TENBIT = 3,
_RESERVED_4 = 4,
FOURTEENBITV = 5,
TWELVEBITV = 6,
EIGHTBIT = 7,
}
Variants§
SIXTEENBIT = 0
16-bit resolution
FOURTEENBIT = 1
14-bit resolution in legacy mode (not optimized power consumption)
TWELVEBIT = 2
12-bit resolution in legacy mode (not optimized power consumption)
TENBIT = 3
10-bit resolution
_RESERVED_4 = 4
FOURTEENBITV = 5
14-bit resolution
TWELVEBITV = 6
12-bit resolution
EIGHTBIT = 7
8-bit resolution
Implementations§
Trait Implementations§
§impl Ord for Res
impl Ord for Res
§impl PartialOrd for Res
impl PartialOrd for Res
§fn partial_cmp(&self, other: &Res) -> Option<Ordering>
fn partial_cmp(&self, other: &Res) -> 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 Res
impl Eq for Res
impl StructuralEq for Res
impl StructuralPartialEq for Res
Auto Trait Implementations§
impl RefUnwindSafe for Res
impl Send for Res
impl Sync for Res
impl Unpin for Res
impl UnwindSafe for Res
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