[−][src]Struct stm32f4xx_hal::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) -> Self[src]
change the clock field
pub fn resolution(self, resolution: Resolution) -> Self[src]
change the resolution field
pub fn align(self, align: Align) -> Self[src]
change the align field
pub fn scan(self, scan: Scan) -> Self[src]
change the scan field
pub fn external_trigger(
self,
trigger_mode: TriggerMode,
trigger: ExternalTrigger
) -> Self[src]
self,
trigger_mode: TriggerMode,
trigger: ExternalTrigger
) -> Self
change the external_trigger field
pub fn continuous(self, continuous: Continuous) -> Self[src]
change the continuous field
pub fn dma(self, dma: Dma) -> Self[src]
change the dma field
pub fn end_of_conversion_interrupt(
self,
end_of_conversion_interrupt: Eoc
) -> Self[src]
self,
end_of_conversion_interrupt: Eoc
) -> Self
change the end_of_conversion_interrupt field
pub fn default_sample_time(self, default_sample_time: SampleTime) -> Self[src]
change the default_sample_time field
Trait Implementations
impl Clone for AdcConfig[src]
fn clone(&self) -> AdcConfig[src]
default 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]
impl Default for AdcConfig[src]
Auto Trait Implementations
Blanket Implementations
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> From for T[src]
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, U> Into for T where
U: From<T>, [src]
U: From<T>,
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