[][src]Struct nucleo_f401re::adc::config::AdcConfig

pub struct AdcConfig { /* fields omitted */ }

Configuration for the adc. There are some additional parameters on the adc peripheral that can be added here when needed but this covers several basic usecases.

Methods

impl AdcConfig[src]

pub fn clock(self, clock: Clock) -> AdcConfig[src]

change the clock field

pub fn resolution(self, resolution: Resolution) -> AdcConfig[src]

change the resolution field

pub fn align(self, align: Align) -> AdcConfig[src]

change the align field

pub fn scan(self, scan: Scan) -> AdcConfig[src]

change the scan field

pub fn external_trigger(
    self,
    trigger_mode: TriggerMode,
    trigger: ExternalTrigger
) -> AdcConfig
[src]

change the external_trigger field

pub fn continuous(self, continuous: Continuous) -> AdcConfig[src]

change the continuous field

pub fn dma(self, dma: Dma) -> AdcConfig[src]

change the dma field

pub fn end_of_conversion_interrupt(
    self,
    end_of_conversion_interrupt: Eoc
) -> AdcConfig
[src]

change the end_of_conversion_interrupt field

pub fn default_sample_time(self, default_sample_time: SampleTime) -> AdcConfig[src]

change the default_sample_time field

Trait Implementations

impl Default for AdcConfig[src]

impl Clone for AdcConfig[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for AdcConfig[src]

impl Copy for AdcConfig[src]

Auto Trait Implementations

impl Send for AdcConfig

impl Sync for AdcConfig

Blanket Implementations

impl<T> From for T[src]

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, U> Into for T where
    U: From<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> 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