HAL ADC Generic Driver
6.1.4
ADC_HandleTypeDef
Data Fields
ADC_TypeDef * Instance
ADC_InitTypeDef Init
__IO uint32_t NbrOfCurrentConversionRank
DMA_HandleTypeDef * DMA_Handle
HAL_LockTypeDef Lock
__IO uint32_t State
__IO uint32_t ErrorCode
Field Documentation
ADC_TypeDef* ADC_HandleTypeDef::Instance
Register base address
ADC_InitTypeDef ADC_HandleTypeDef::Init
ADC required parameters
__IO uint32_t ADC_HandleTypeDef::NbrOfCurrentConversionRank
ADC number of current conversion rank
DMA_HandleTypeDef* ADC_HandleTypeDef::DMA_Handle
Pointer DMA Handler
HAL_LockTypeDef ADC_HandleTypeDef::Lock
ADC locking object
__IO uint32_t ADC_HandleTypeDef::State
ADC communication state
__IO uint32_t ADC_HandleTypeDef::ErrorCode
ADC Error code
6.2
ADC Firmware driver API description
6.2.1
ADC Peripheral features
1.
12-bit, 10-bit, 8-bit or 6-bit configurable resolution.
2.
Interrupt generation at the end of conversion, end of injected conversion, and in case
of analog watchdog or overrun events
3.
Single and continuous conversion modes.
4.
Scan mode for automatic conversion of channel 0 to channel x.
5.
Data alignment with in-built data coherency.
6.
Channel-wise programmable sampling time.
7.
External trigger option with configurable polarity for both regular and injected
conversion.
8.
Dual/Triple mode (on devices with 2 ADCs or more).
9.
Configurable DMA data storage in Dual/Triple ADC mode.
10. Configurable delay between conversions in Dual/Triple interleaved mode.
11. ADC conversion type (refer to the datasheets).
12. ADC supply requirements: 2.4 V to 3.6 V at full speed and down to 1.8 V at slower
speed.
13. ADC input range: VREF(minus) = VIN = VREF(plus).
14. DMA request generation during regular channel conversion.
80/1371
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers