[][src]Struct ambiq_apollo3_pac::adc::cfg::R

pub struct R { /* fields omitted */ }

Value read from the register

Methods

impl R[src]

pub fn bits(&self) -> u32[src]

Value of the register as raw bits

pub fn clksel(&self) -> CLKSELR[src]

Bits 24:25 - Select the source and frequency for the ADC clock. All values not enumerated below are undefined.

pub fn trigpol(&self) -> TRIGPOLR[src]

Bit 19 - This bit selects the ADC trigger polarity for external off chip triggers.

pub fn trigsel(&self) -> TRIGSELR[src]

Bits 16:18 - Select the ADC trigger source.

pub fn dfiforden(&self) -> DFIFORDENR[src]

Bit 12 - Destructive FIFO Read Enable. Setting this will enable FIFO pop upon reading the FIFOPR register.

pub fn refsel(&self) -> REFSELR[src]

Bits 8:9 - Select the ADC reference voltage.

pub fn ckmode(&self) -> CKMODER[src]

Bit 4 - Clock mode register

pub fn lpmode(&self) -> LPMODER[src]

Bit 3 - Select power mode to enter between active scans.

pub fn rpten(&self) -> RPTENR[src]

Bit 2 - This bit enables Repeating Scan Mode.

pub fn adcen(&self) -> ADCENR[src]

Bit 0 - This bit enables the ADC module. While the ADC is enabled, the ADCCFG and SLOT Configuration regsiter settings must remain stable and unchanged. All configuration register settings, slot configuration settings and window comparison settings should be written prior to setting the ADCEN bit to '1'.

Auto Trait Implementations

impl Send for R

impl Sync for R

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

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

The type returned in the event of a conversion error.

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

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

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

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

impl<T> Same for T

type Output = T

Should always be Self