Enum stm32_metapac::adc::vals::OversamplingRatio
#[repr(u8)]pub enum OversamplingRatio {
OVERSAMPLE2X = 0,
OVERSAMPLE4X = 1,
OVERSAMPLE8X = 2,
OVERSAMPLE16X = 3,
OVERSAMPLE32X = 4,
OVERSAMPLE64X = 5,
OVERSAMPLE128X = 6,
OVERSAMPLE256X = 7,
}
Variants§
OVERSAMPLE2X = 0
Oversample 2 times
OVERSAMPLE4X = 1
Oversample 4 times
OVERSAMPLE8X = 2
Oversample 8 times
OVERSAMPLE16X = 3
Oversample 16 times
OVERSAMPLE32X = 4
Oversample 32 times
OVERSAMPLE64X = 5
Oversample 64 times
OVERSAMPLE128X = 6
Oversample 128 times
OVERSAMPLE256X = 7
Oversample 256 times
Implementations§
§impl OversamplingRatio
impl OversamplingRatio
pub const fn from_bits(val: u8) -> OversamplingRatio
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for OversamplingRatio
impl Clone for OversamplingRatio
§fn clone(&self) -> OversamplingRatio
fn clone(&self) -> OversamplingRatio
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 OversamplingRatio
impl Debug for OversamplingRatio
§impl From<OversamplingRatio> for u8
impl From<OversamplingRatio> for u8
§fn from(val: OversamplingRatio) -> u8
fn from(val: OversamplingRatio) -> u8
Converts to this type from the input type.
§impl From<u8> for OversamplingRatio
impl From<u8> for OversamplingRatio
§fn from(val: u8) -> OversamplingRatio
fn from(val: u8) -> OversamplingRatio
Converts to this type from the input type.
§impl Ord for OversamplingRatio
impl Ord for OversamplingRatio
§fn cmp(&self, other: &OversamplingRatio) -> Ordering
fn cmp(&self, other: &OversamplingRatio) -> 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 OversamplingRatio
impl PartialEq for OversamplingRatio
§impl PartialOrd for OversamplingRatio
impl PartialOrd for OversamplingRatio
impl Copy for OversamplingRatio
impl Eq for OversamplingRatio
impl StructuralPartialEq for OversamplingRatio
Auto Trait Implementations§
impl Freeze for OversamplingRatio
impl RefUnwindSafe for OversamplingRatio
impl Send for OversamplingRatio
impl Sync for OversamplingRatio
impl Unpin for OversamplingRatio
impl UnwindSafe for OversamplingRatio
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
)