embassy-stm32

Crates

git

Versions

stm32g0c1ke

Flavors

Module adc

Source
Expand description

Analog to Digital Converter (ADC)

Modules§

vals

Structs§

Adc
Analog to Digital driver.
AnyAdcChannel
A type-erased channel for a given ADC instance.
Temperature
Vbat
VrefInt

Enums§

Averaging
Number of samples used for averaging.
CkModePclk
Synchronous PCLK prescaler
Clock
The analog clock is either the synchronous prescaled PCLK or the asynchronous prescaled ADCCLK configured by the RCC mux. The data sheet states the maximum analog clock frequency - for STM32WL55CC it is 36 MHz.
Presc
Asynchronous ADCCLK prescaler
Resolution
SampleTime

Constants§

VREF_CALIB_MV
VREF voltage used for factory calibration of VREFINTCAL register.
VREF_DEFAULT_MV
Default VREF voltage used for sample conversion to millivolts.

Traits§

AdcChannel
ADC channel.
Instance
ADC instance.
RxDma
RxDma DMA request trait

Functions§

resolution_to_max_count
Get the maximum reading value for this resolution.