Enum stm32_hal2::adc::SampleTime[][src]

#[repr(u8)]pub enum SampleTime {
    T1,
    T2,
    T4,
    T7,
    T19,
    T61,
    T181,
    T601,
}

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 T_19 the total conversion time (in ADC clock cycles) is 13 + 19 = 32 ADC Clock Cycles [derive(Clone, Copy)]

Variants

T1

1.5 ADC clock cycles

T2

2.5 ADC clock cycles

T4

4.5 ADC clock cycles

T7

7.5 ADC clock cycles

T19

19.5 ADC clock cycles

T61

61.5 ADC clock cycles

T181

181.5 ADC clock cycles

T601

601.5 ADC clock cycles

Trait Implementations

impl Default for SampleTime[src]

fn default() -> Self[src]

T_1 is also the reset value.

Auto Trait Implementations

impl Send for SampleTime

impl Sync for SampleTime

impl Unpin for SampleTime

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.