Enum stm32f4xx_hal::adc::config::SampleTime
source · #[repr(u8)]pub enum SampleTime {
Cycles_3 = 0,
Cycles_15 = 1,
Cycles_28 = 2,
Cycles_56 = 3,
Cycles_84 = 4,
Cycles_112 = 5,
Cycles_144 = 6,
Cycles_480 = 7,
}
Expand description
The number of cycles to sample a given channel for
Variants§
Cycles_3 = 0
3 cycles
Cycles_15 = 1
15 cycles
Cycles_28 = 2
28 cycles
Cycles_56 = 3
56 cycles
Cycles_84 = 4
84 cycles
Cycles_112 = 5
112 cycles
Cycles_144 = 6
144 cycles
Cycles_480 = 7
480 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 Format for SampleTime
impl Format for SampleTime
source§impl From<SampleTime> for u8
impl From<SampleTime> for u8
source§fn from(l: SampleTime) -> u8
fn from(l: SampleTime) -> u8
Converts to this type from the input type.
source§impl From<u8> for SampleTime
impl From<u8> for SampleTime
source§fn from(f: u8) -> SampleTime
fn from(f: u8) -> SampleTime
Converts to this type from the input type.
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 ==
.impl 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