Enum stm32_metapac::adc::vals::OversamplingShift
#[repr(u8)]pub enum OversamplingShift {
Show 16 variants
SHIFT0 = 0,
SHIFT1 = 1,
SHIFT2 = 2,
SHIFT3 = 3,
SHIFT4 = 4,
SHIFT5 = 5,
SHIFT6 = 6,
SHIFT7 = 7,
SHIFT8 = 8,
_RESERVED_9 = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
}
Variants§
SHIFT0 = 0
No shift
SHIFT1 = 1
Shift 1-bit
SHIFT2 = 2
Shift 2-bits
SHIFT3 = 3
Shift 3-bits
SHIFT4 = 4
Shift 4-bits
SHIFT5 = 5
Shift 5-bits
SHIFT6 = 6
Shift 6-bits
SHIFT7 = 7
Shift 7-bits
SHIFT8 = 8
Shift 8-bits
_RESERVED_9 = 9
_RESERVED_a = 10
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
Implementations§
§impl OversamplingShift
impl OversamplingShift
pub const fn from_bits(val: u8) -> OversamplingShift
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for OversamplingShift
impl Clone for OversamplingShift
§fn clone(&self) -> OversamplingShift
fn clone(&self) -> OversamplingShift
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 more§impl Debug for OversamplingShift
impl Debug for OversamplingShift
§impl From<OversamplingShift> for u8
impl From<OversamplingShift> for u8
§fn from(val: OversamplingShift) -> u8
fn from(val: OversamplingShift) -> u8
Converts to this type from the input type.
§impl From<u8> for OversamplingShift
impl From<u8> for OversamplingShift
§fn from(val: u8) -> OversamplingShift
fn from(val: u8) -> OversamplingShift
Converts to this type from the input type.
§impl Ord for OversamplingShift
impl Ord for OversamplingShift
§fn cmp(&self, other: &OversamplingShift) -> Ordering
fn cmp(&self, other: &OversamplingShift) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for OversamplingShift
impl PartialEq for OversamplingShift
§impl PartialOrd for OversamplingShift
impl PartialOrd for OversamplingShift
impl Copy for OversamplingShift
impl Eq for OversamplingShift
impl StructuralPartialEq for OversamplingShift
Auto Trait Implementations§
impl Freeze for OversamplingShift
impl RefUnwindSafe for OversamplingShift
impl Send for OversamplingShift
impl Sync for OversamplingShift
impl Unpin for OversamplingShift
impl UnwindSafe for OversamplingShift
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)