Enum stm32_metapac::adc::vals::SampleTime
#[repr(u8)]pub enum SampleTime {
CYCLES1_5 = 0,
CYCLES7_5 = 1,
CYCLES13_5 = 2,
CYCLES28_5 = 3,
CYCLES41_5 = 4,
CYCLES55_5 = 5,
CYCLES71_5 = 6,
CYCLES239_5 = 7,
}
Variants§
CYCLES1_5 = 0
1.5 cycles
CYCLES7_5 = 1
7.5 cycles
CYCLES13_5 = 2
13.5 cycles
CYCLES28_5 = 3
28.5 cycles
CYCLES41_5 = 4
41.5 cycles
CYCLES55_5 = 5
55.5 cycles
CYCLES71_5 = 6
71.5 cycles
CYCLES239_5 = 7
239.5 cycles
Implementations§
§impl SampleTime
impl SampleTime
pub const fn from_bits(val: u8) -> SampleTime
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for SampleTime
impl Clone for SampleTime
§fn clone(&self) -> SampleTime
fn clone(&self) -> SampleTime
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 From<SampleTime> for u8
impl From<SampleTime> for u8
§fn from(val: SampleTime) -> u8
fn from(val: SampleTime) -> u8
Converts to this type from the input type.
§impl From<u8> for SampleTime
impl From<u8> for SampleTime
§fn from(val: u8) -> SampleTime
fn from(val: u8) -> SampleTime
Converts to this type from the input type.
§impl Ord for SampleTime
impl Ord for SampleTime
§impl PartialEq for SampleTime
impl PartialEq for SampleTime
§fn eq(&self, other: &SampleTime) -> bool
fn eq(&self, other: &SampleTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for SampleTime
impl PartialOrd for SampleTime
§fn partial_cmp(&self, other: &SampleTime) -> Option<Ordering>
fn partial_cmp(&self, other: &SampleTime) -> 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 SampleTime
impl Eq for SampleTime
impl StructuralPartialEq for SampleTime
Auto Trait Implementations§
impl Freeze for SampleTime
impl RefUnwindSafe for SampleTime
impl Send for SampleTime
impl Sync for SampleTime
impl Unpin for SampleTime
impl UnwindSafe for SampleTime
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