STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions
+ Collaboration diagram for Initialization and de-initialization functions:

Functions

ErrorStatus LL_ADC_CommonDeInit (ADC_Common_TypeDef *ADCxy_COMMON)
 De-initialize registers of all ADC instances belonging to the same ADC common instance to their default reset values. More...
 
ErrorStatus LL_ADC_CommonInit (ADC_Common_TypeDef *ADCxy_COMMON, LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct)
 Initialize some features of ADC common parameters (all ADC instances belonging to the same ADC common instance) and multimode (for devices with several ADC instances available). More...
 
void LL_ADC_CommonStructInit (LL_ADC_CommonInitTypeDef *ADC_CommonInitStruct)
 Set each LL_ADC_CommonInitTypeDef field to default value. More...
 
ErrorStatus LL_ADC_DeInit (ADC_TypeDef *ADCx)
 De-initialize registers of the selected ADC instance to their default reset values. More...
 
ErrorStatus LL_ADC_Init (ADC_TypeDef *ADCx, LL_ADC_InitTypeDef *ADC_InitStruct)
 Initialize some features of ADC instance. More...
 
void LL_ADC_StructInit (LL_ADC_InitTypeDef *ADC_InitStruct)
 Set each LL_ADC_InitTypeDef field to default value. More...
 
ErrorStatus LL_ADC_REG_Init (ADC_TypeDef *ADCx, LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct)
 Initialize some features of ADC group regular. More...
 
void LL_ADC_REG_StructInit (LL_ADC_REG_InitTypeDef *ADC_REG_InitStruct)
 Set each LL_ADC_REG_InitTypeDef field to default value. More...
 
ErrorStatus LL_ADC_INJ_Init (ADC_TypeDef *ADCx, LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct)
 Initialize some features of ADC group injected. More...
 
void LL_ADC_INJ_StructInit (LL_ADC_INJ_InitTypeDef *ADC_INJ_InitStruct)
 Set each LL_ADC_INJ_InitTypeDef field to default value. More...
 

Detailed Description

Function Documentation

◆ LL_ADC_CommonDeInit()

ErrorStatus LL_ADC_CommonDeInit ( ADC_Common_TypeDef *  ADCxy_COMMON)

De-initialize registers of all ADC instances belonging to the same ADC common instance to their default reset values.

Parameters
ADCxy_COMMONADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE() )
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC common registers are de-initialized
  • ERROR: not applicable

Definition at line 289 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_CommonInit()

ErrorStatus LL_ADC_CommonInit ( ADC_Common_TypeDef *  ADCxy_COMMON,
LL_ADC_CommonInitTypeDef ADC_CommonInitStruct 
)

Initialize some features of ADC common parameters (all ADC instances belonging to the same ADC common instance) and multimode (for devices with several ADC instances available).

Note
The setting of ADC common parameters is conditioned to ADC instances state: All ADC instances belonging to the same ADC common instance must be disabled.
Parameters
ADCxy_COMMONADC common instance (can be set directly from CMSIS definition or by using helper macro __LL_ADC_COMMON_INSTANCE() )
ADC_CommonInitStructPointer to a LL_ADC_CommonInitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC common registers are initialized
  • ERROR: ADC common registers are not initialized

Definition at line 319 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_CommonStructInit()

void LL_ADC_CommonStructInit ( LL_ADC_CommonInitTypeDef ADC_CommonInitStruct)

Set each LL_ADC_CommonInitTypeDef field to default value.

Parameters
ADC_CommonInitStructPointer to a LL_ADC_CommonInitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 401 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_DeInit()

ErrorStatus LL_ADC_DeInit ( ADC_TypeDef *  ADCx)

De-initialize registers of the selected ADC instance to their default reset values.

Note
To reset all ADC instances quickly (perform a hard reset), use function LL_ADC_CommonDeInit().
Parameters
ADCxADC instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are de-initialized
  • ERROR: ADC registers are not de-initialized

Definition at line 426 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_Init()

ErrorStatus LL_ADC_Init ( ADC_TypeDef *  ADCx,
LL_ADC_InitTypeDef ADC_InitStruct 
)

Initialize 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.
After using this function, some other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_InitStructPointer to a LL_ADC_REG_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 585 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_INJ_Init()

ErrorStatus LL_ADC_INJ_Init ( ADC_TypeDef *  ADCx,
LL_ADC_INJ_InitTypeDef ADC_INJ_InitStruct 
)

Initialize 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_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.
After using this function, other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_INJ_InitStructPointer to a LL_ADC_INJ_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 815 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_INJ_StructInit()

void LL_ADC_INJ_StructInit ( LL_ADC_INJ_InitTypeDef ADC_INJ_InitStruct)

Set each LL_ADC_INJ_InitTypeDef field to default value.

Parameters
ADC_INJ_InitStructPointer to a LL_ADC_INJ_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 893 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_REG_Init()

ErrorStatus LL_ADC_REG_Init ( ADC_TypeDef *  ADCx,
LL_ADC_REG_InitTypeDef ADC_REG_InitStruct 
)

Initialize 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_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.
After using this function, other features must be configured using LL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_REG_InitStructPointer to a LL_ADC_REG_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 680 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_REG_StructInit()

void LL_ADC_REG_StructInit ( LL_ADC_REG_InitTypeDef ADC_REG_InitStruct)

Set each LL_ADC_REG_InitTypeDef field to default value.

Parameters
ADC_REG_InitStructPointer to a LL_ADC_REG_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 769 of file stm32f4xx_ll_adc.c.

◆ LL_ADC_StructInit()

void LL_ADC_StructInit ( LL_ADC_InitTypeDef ADC_InitStruct)

Set each LL_ADC_InitTypeDef field to default value.

Parameters
ADC_InitStructPointer to a LL_ADC_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 633 of file stm32f4xx_ll_adc.c.