[][src]Enum lpc54606_pac::adc0::ctrl::RESOL_A

#[repr(u8)]pub enum RESOL_A {
    RESOLUTION_6_BIT,
    RESOLUTION_8_BIT,
    RESOLUTION_10_BIT,
    RESOLUTION_12_BIT,
}

The number of bits of ADC resolution. Accuracy can be reduced to achieve higher conversion rates. A single conversion (including one conversion in a burst or sequence) requires the selected number of bits of resolution plus 3 ADC clocks. This field must only be altered when the ADC is fully idle. Changing it during any kind of ADC operation may have unpredictable results. ADC clock frequencies for various resolutions must not exceed: - 5x the system clock rate for 12-bit resolution - 4.3x the system clock rate for 10-bit resolution - 3.6x the system clock for 8-bit resolution - 3x the bus clock rate for 6-bit resolution

Value on reset: 3

Variants

RESOLUTION_6_BIT

0: 6-bit resolution. An ADC conversion requires 9 ADC clocks, plus any clocks specified by the TSAMP field.

RESOLUTION_8_BIT

1: 8-bit resolution. An ADC conversion requires 11 ADC clocks, plus any clocks specified by the TSAMP field.

RESOLUTION_10_BIT

2: 10-bit resolution. An ADC conversion requires 13 ADC clocks, plus any clocks specified by the TSAMP field.

RESOLUTION_12_BIT

3: 12-bit resolution. An ADC conversion requires 15 ADC clocks, plus any clocks specified by the TSAMP field.

Trait Implementations

impl Clone for RESOL_A[src]

impl Copy for RESOL_A[src]

impl Debug for RESOL_A[src]

impl From<RESOL_A> for u8[src]

impl PartialEq<RESOL_A> for RESOL_A[src]

impl StructuralPartialEq for RESOL_A[src]

Auto Trait Implementations

impl Send for RESOL_A

impl Sync for RESOL_A

impl Unpin for RESOL_A

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.