Enum embassy_stm32::adc::SampleTime
source · pub enum SampleTime {
Cycles1_5,
Cycles2_5,
Cycles8_5,
Cycles16_5,
Cycles32_5,
Cycles64_5,
Cycles387_5,
Cycles810_5,
}
Expand description
ADC sample time
The default setting is 1.5 ADC clock cycles.
Variants§
Cycles1_5
1.5 ADC clock cycles.
Cycles2_5
2.5 ADC clock cycles.
Cycles8_5
8.5 ADC clock cycles.
Cycles16_5
16.5 ADC clock cycles.
Cycles32_5
32.5 ADC clock cycles.
Cycles64_5
64.5 ADC clock cycles.
Cycles387_5
387.5 ADC clock cycles.
Cycles810_5
810.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 Format for SampleTime
impl Format 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 StructuralEq for SampleTime
impl StructuralPartialEq for SampleTime
Auto Trait Implementations§
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