STM32F4xx_HAL_Driver  1.8.3
ADC Exported Init structure
+ Collaboration diagram for ADC Exported Init structure:

Data Structures

struct  LL_ADC_CommonInitTypeDef
 Structure definition of some features of ADC common parameters and multimode (all ADC instances belonging to the same ADC common instance). More...
 
struct  LL_ADC_InitTypeDef
 Structure definition of some features of ADC instance. More...
 
struct  LL_ADC_REG_InitTypeDef
 Structure definition of some features of ADC group regular. More...
 
struct  LL_ADC_INJ_InitTypeDef
 Structure definition of some features of ADC group injected. More...
 

Detailed Description


Data Structure Documentation

◆ LL_ADC_CommonInitTypeDef

struct LL_ADC_CommonInitTypeDef

Structure definition of some features of ADC common parameters and multimode (all ADC instances belonging to the same ADC common instance).

Note
The setting of these parameters by function LL_ADC_CommonInit() is conditioned to ADC instances state (all ADC instances sharing the same ADC common instance): All ADC instances sharing the same ADC common instance must be disabled.

Definition at line 320 of file stm32f4xx_ll_adc.h.

Data Fields
uint32_t CommonClock

Set parameter common to several ADC: Clock source and prescaler. This parameter can be a value of ADC common - Clock source

This feature can be modified afterwards using unitary function LL_ADC_SetCommonClock().

uint32_t MultiDMATransfer

Set ADC multimode conversion data transfer: no transfer or transfer by DMA. This parameter can be a value of Multimode - DMA transfer

This feature can be modified afterwards using unitary function LL_ADC_SetMultiDMATransfer().

uint32_t Multimode

Set ADC multimode configuration to operate in independent mode or multimode (for devices with several ADC instances). This parameter can be a value of Multimode - Mode

This feature can be modified afterwards using unitary function LL_ADC_SetMultimode().

uint32_t MultiTwoSamplingDelay

Set ADC multimode delay between 2 sampling phases. This parameter can be a value of Multimode - Delay between two sampling phases

This feature can be modified afterwards using unitary function LL_ADC_SetMultiTwoSamplingDelay().

◆ LL_ADC_InitTypeDef

struct LL_ADC_InitTypeDef

Structure definition of some features of ADC instance.

Note
These parameters have an impact on ADC scope: ADC instance. Affects both group regular and group injected (availability of ADC group injected depends on STM32 families). Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: ADC instance .
The setting of these parameters by function LL_ADC_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.

Definition at line 366 of file stm32f4xx_ll_adc.h.

Data Fields
uint32_t DataAlignment

Set ADC conversion data alignment. This parameter can be a value of ADC instance - Data alignment

This feature can be modified afterwards using unitary function LL_ADC_SetDataAlignment().

uint32_t Resolution

Set ADC resolution. This parameter can be a value of ADC instance - Resolution

This feature can be modified afterwards using unitary function LL_ADC_SetResolution().

uint32_t SequencersScanMode

Set ADC scan selection. This parameter can be a value of ADC instance - Scan selection

This feature can be modified afterwards using unitary function LL_ADC_SetSequencersScanMode().

◆ LL_ADC_REG_InitTypeDef

struct LL_ADC_REG_InitTypeDef

Structure definition of some features of ADC group regular.

Note
These parameters have an impact on ADC scope: ADC group regular. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "REG").
The setting of these parameters by function LL_ADC_REG_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.

Definition at line 404 of file stm32f4xx_ll_adc.h.

Data Fields
uint32_t ContinuousMode

Set ADC continuous conversion mode on ADC group regular, whether ADC conversions are performed in single mode (one conversion per trigger) or in continuous mode (after the first trigger, following conversions launched successively automatically). This parameter can be a value of ADC group regular - Continuous mode Note: It is not possible to enable both ADC group regular continuous mode and discontinuous mode.

This feature can be modified afterwards using unitary function LL_ADC_REG_SetContinuousMode().

uint32_t DMATransfer

Set ADC group regular conversion data transfer: no transfer or transfer by DMA, and DMA requests mode. This parameter can be a value of ADC group regular - DMA transfer of ADC conversion data

This feature can be modified afterwards using unitary function LL_ADC_REG_SetDMATransfer().

uint32_t SequencerDiscont

Set ADC group regular sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. This parameter can be a value of ADC group regular - Sequencer discontinuous mode

Note
This parameter has an effect only if group regular sequencer is enabled (scan length of 2 ranks or more).

This feature can be modified afterwards using unitary function LL_ADC_REG_SetSequencerDiscont().

uint32_t SequencerLength

Set ADC group regular sequencer length. This parameter can be a value of ADC group regular - Sequencer scan length

Note
This parameter is discarded if scan mode is disabled (refer to parameter 'ADC_SequencersScanMode').

This feature can be modified afterwards using unitary function LL_ADC_REG_SetSequencerLength().

uint32_t TriggerSource

Set ADC group regular conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). This parameter can be a value of ADC group regular - Trigger source

Note
On this STM32 series, setting of external trigger edge is performed using function LL_ADC_REG_StartConversionExtTrig().

This feature can be modified afterwards using unitary function LL_ADC_REG_SetTriggerSource().

◆ LL_ADC_INJ_InitTypeDef

struct LL_ADC_INJ_InitTypeDef

Structure definition of some features of ADC group injected.

Note
These parameters have an impact on ADC scope: ADC group injected. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "INJ").
The setting of these parameters by function LL_ADC_INJ_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all STM32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.

Definition at line 458 of file stm32f4xx_ll_adc.h.

Data Fields
uint32_t SequencerDiscont

Set ADC group injected sequencer discontinuous mode: sequence subdivided and scan conversions interrupted every selected number of ranks. This parameter can be a value of ADC group injected - Sequencer discontinuous mode

Note
This parameter has an effect only if group injected sequencer is enabled (scan length of 2 ranks or more).

This feature can be modified afterwards using unitary function LL_ADC_INJ_SetSequencerDiscont().

uint32_t SequencerLength

Set ADC group injected sequencer length. This parameter can be a value of ADC group injected - Sequencer scan length

Note
This parameter is discarded if scan mode is disabled (refer to parameter 'ADC_SequencersScanMode').

This feature can be modified afterwards using unitary function LL_ADC_INJ_SetSequencerLength().

uint32_t TrigAuto

Set ADC group injected conversion trigger: independent or from ADC group regular. This parameter can be a value of ADC group injected - Automatic trigger mode Note: This parameter must be set to set to independent trigger if injected trigger source is set to an external trigger.

This feature can be modified afterwards using unitary function LL_ADC_INJ_SetTrigAuto().

uint32_t TriggerSource

Set ADC group injected conversion trigger source: internal (SW start) or from external IP (timer event, external interrupt line). This parameter can be a value of ADC group injected - Trigger source

Note
On this STM32 series, setting of external trigger edge is performed using function LL_ADC_INJ_StartConversionExtTrig().

This feature can be modified afterwards using unitary function LL_ADC_INJ_SetTriggerSource().