Struct stm32_hal2::adc::AdcConfig
source · [−]pub struct AdcConfig {
pub clock_mode: ClockMode,
pub prescaler: Prescaler,
pub operation_mode: OperationMode,
pub cal_single_ended: Option<u16>,
pub cal_differential: Option<u16>,
}Expand description
Initial configuration data for the ADC peripheral.
Fields
clock_mode: ClockModeADC clock mode. Defaults to AHB clock rcc_hclk3 (or hclk) divided by 2.
prescaler: PrescalerADC clock prescaler. Defaults to no division.
operation_mode: OperationModeOne-shot, or continuous measurements. Defaults to one-shot.
cal_single_ended: Option<u16>Optional calibration data for single-ended measurements.
cal_differential: Option<u16>Optional calibration data for differential measurements.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AdcConfig
impl Send for AdcConfig
impl Sync for AdcConfig
impl Unpin for AdcConfig
impl UnwindSafe for AdcConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more