Enum SampleTime
#[repr(u8)]pub enum SampleTime {
Cycles5 = 0,
Cycles6 = 1,
Cycles12 = 2,
Cycles20 = 3,
Cycles36 = 4,
Cycles68 = 5,
Cycles391 = 6,
Cycles814 = 7,
}Expand description
Sample time, in ADC clock cycles.
The variants are the cycle counts of this chip’s ADC. On the STM32U5 the two ADC generations
coexist: ADC1/ADC2 use SampleTime, ADC4 uses Adc4SampleTime.
Variants§
Cycles5 = 0
5 ADC clock cycles
Cycles6 = 1
6 ADC clock cycles
Cycles12 = 2
12 ADC clock cycles
Cycles20 = 3
20 ADC clock cycles
Cycles36 = 4
36 ADC clock cycles
Cycles68 = 5
68 ADC clock cycles
Cycles391 = 6
391 ADC clock cycles
Cycles814 = 7
814 ADC clock 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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SampleTime
§impl Debug for SampleTime
impl Debug for SampleTime
impl Eq for SampleTime
§impl Format for SampleTime
impl Format for SampleTime
§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
§fn cmp(&self, other: &SampleTime) -> Ordering
fn cmp(&self, other: &SampleTime) -> Ordering
1.21.0 (const: unstable) · 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 SampleTime
impl PartialEq for SampleTime
§impl PartialOrd for SampleTime
impl PartialOrd 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 UnsafeUnpin for SampleTime
impl UnwindSafe for SampleTime
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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