Enum embassy_stm32::adc::SampleTime
source · pub enum SampleTime {
Cycles1_5,
Cycles7_5,
Cycles13_5,
Cycles28_5,
Cycles41_5,
Cycles55_5,
Cycles71_5,
Cycles239_5,
}
Expand description
ADC sample time
The default setting is 1.5 ADC clock cycles.
Variants§
Cycles1_5
1.5 ADC clock cycles.
Cycles7_5
7.5 ADC clock cycles.
Cycles13_5
13.5 ADC clock cycles.
Cycles28_5
28.5 ADC clock cycles.
Cycles41_5
41.5 ADC clock cycles.
Cycles55_5
55.5 ADC clock cycles.
Cycles71_5
71.5 ADC clock cycles.
Cycles239_5
239.5 ADC clock cycles.
Trait Implementations§
source§impl Clone for SampleTime
impl Clone for SampleTime
source§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 moresource§impl Debug for SampleTime
impl Debug for SampleTime
source§impl Default for SampleTime
impl Default for SampleTime
source§impl From<SampleTime> for SampleTime
impl From<SampleTime> for SampleTime
source§fn from(sample_time: SampleTime) -> SampleTime
fn from(sample_time: SampleTime) -> SampleTime
Converts to this type from the input type.
source§impl From<SampleTime> for SampleTime
impl From<SampleTime> for SampleTime
source§fn from(sample_time: SampleTime) -> SampleTime
fn from(sample_time: SampleTime) -> SampleTime
Converts to this type from the input type.
source§impl Ord for SampleTime
impl Ord for SampleTime
source§fn cmp(&self, other: &SampleTime) -> Ordering
fn cmp(&self, other: &SampleTime) -> 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
source§impl PartialEq for SampleTime
impl PartialEq for SampleTime
source§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 ==
.source§impl PartialOrd for SampleTime
impl PartialOrd for SampleTime
source§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