[−][src]Struct nucleo_f401re::adc::config::AdcConfig
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]
self,
trigger_mode: TriggerMode,
trigger: ExternalTrigger
) -> AdcConfig
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]
self,
end_of_conversion_interrupt: Eoc
) -> AdcConfig
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(&self) -> 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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self