pub enum SampleTime {
Cycles1C5,
Cycles2C5,
Cycles4C5,
Cycles7C5,
Cycles19C5,
Cycles61C5,
Cycles181C5,
Cycles601C5,
}Expand description
ADC sampling time
Each channel can be sampled with a different sample time. There is always an overhead of 13 ADC clock cycles.
E.g. For SampleTime::T19C5 the total conversion time (in ADC clock cycles) is
13 + 19 = 32 ADC Clock Cycles
§Related functions
§Note
Currently, no way to set the specific clock of the Adc is
implemented. By default the Adc peripheral is clocked by the Clock::pllclk,
and will fall back to using the Clock::pllclk, if that is not set.
Variants§
Cycles1C5
1.5 ADC clock cycles
Cycles2C5
2.5 ADC clock cycles
Cycles4C5
4.5 ADC clock cycles
Cycles7C5
7.5 ADC clock cycles
Cycles19C5
19.5 ADC clock cycles
Cycles61C5
61.5 ADC clock cycles
Cycles181C5
181.5 ADC clock cycles
Cycles601C5
601.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 duplicate 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§fn default() -> Self
fn default() -> Self
SampleTime::Cycles1C5 is also the reset value.
Source§impl From<SMP10_A> for SampleTime
impl From<SMP10_A> for SampleTime
Source§impl From<SMP1_A> for SampleTime
impl From<SMP1_A> for SampleTime
Source§impl From<SampleTime> for SMP10_A
impl From<SampleTime> for SMP10_A
Source§fn from(t: SampleTime) -> Self
fn from(t: SampleTime) -> Self
Converts to this type from the input type.
Source§impl From<SampleTime> for SMP1_A
impl From<SampleTime> for SMP1_A
Source§fn from(t: SampleTime) -> Self
fn from(t: SampleTime) -> Self
Converts to this type from the input type.
Source§impl From<SampleTime> for f32
impl From<SampleTime> for f32
Source§fn from(t: SampleTime) -> Self
fn from(t: SampleTime) -> Self
Converts to this type from the input type.
Source§impl From<SampleTime> for u16
impl From<SampleTime> for u16
Source§fn from(t: SampleTime) -> Self
fn from(t: SampleTime) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SampleTime
impl PartialEq for SampleTime
impl 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