STM32F4xx_HAL_Driver  1.8.3
Initialization and de-initialization functions

Initialization and Configuration functions. More...

+ Collaboration diagram for Initialization and de-initialization functions:

Functions

HAL_StatusTypeDef HAL_ADC_Init (ADC_HandleTypeDef *hadc)
 Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct and initializes the ADC MSP. More...
 
HAL_StatusTypeDef HAL_ADC_DeInit (ADC_HandleTypeDef *hadc)
 Deinitializes the ADCx peripheral registers to their default reset values. More...
 
void HAL_ADC_MspInit (ADC_HandleTypeDef *hadc)
 Initializes the ADC MSP. More...
 
void HAL_ADC_MspDeInit (ADC_HandleTypeDef *hadc)
 DeInitializes the ADC MSP. More...
 
HAL_StatusTypeDef HAL_ADC_RegisterCallback (ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID, pADC_CallbackTypeDef pCallback)
 Register a User ADC Callback To be used instead of the weak predefined callback. More...
 
HAL_StatusTypeDef HAL_ADC_UnRegisterCallback (ADC_HandleTypeDef *hadc, HAL_ADC_CallbackIDTypeDef CallbackID)
 Unregister a ADC Callback ADC callback is redirected to the weak predefined callback. More...
 

Detailed Description

Initialization and Configuration functions.

 ===============================================================================
              ##### Initialization and de-initialization functions #####
 ===============================================================================
    [..]  This section provides functions allowing to:
      (+) Initialize and configure the ADC.
      (+) De-initialize the ADC.

Function Documentation

◆ HAL_ADC_DeInit()

HAL_StatusTypeDef HAL_ADC_DeInit ( ADC_HandleTypeDef hadc)

Deinitializes the ADCx peripheral registers to their default reset values.

Parameters
hadcpointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
Return values
HALstatus

Definition at line 405 of file stm32f4xx_hal_adc.c.

◆ HAL_ADC_Init()

HAL_StatusTypeDef HAL_ADC_Init ( ADC_HandleTypeDef hadc)

Initializes the ADCx peripheral according to the specified parameters in the ADC_InitStruct and initializes the ADC MSP.

Note
This function is used to configure the global features of the ADC ( ClockPrescaler, Resolution, Data Alignment and number of conversion), however, the rest of the configuration parameters are specific to the regular channels group (scan mode activation, continuous mode activation, External trigger source and edge, DMA continuous request after the last transfer and End of conversion selection).
Parameters
hadcpointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
Return values
HALstatus

Definition at line 311 of file stm32f4xx_hal_adc.c.

◆ HAL_ADC_MspDeInit()

__weak void HAL_ADC_MspDeInit ( ADC_HandleTypeDef hadc)

DeInitializes the ADC MSP.

Parameters
hadcpointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
Return values
None

Definition at line 677 of file stm32f4xx_hal_adc.c.

◆ HAL_ADC_MspInit()

__weak void HAL_ADC_MspInit ( ADC_HandleTypeDef hadc)

Initializes the ADC MSP.

Parameters
hadcpointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
Return values
None

Definition at line 662 of file stm32f4xx_hal_adc.c.

◆ HAL_ADC_RegisterCallback()

HAL_StatusTypeDef HAL_ADC_RegisterCallback ( ADC_HandleTypeDef hadc,
HAL_ADC_CallbackIDTypeDef  CallbackID,
pADC_CallbackTypeDef  pCallback 
)

Register a User ADC Callback To be used instead of the weak predefined callback.

Parameters
hadcPointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
CallbackIDID of the callback to be registered This parameter can be one of the following values:
pCallbackpointer to the Callback function
Return values
HALstatus

Definition at line 474 of file stm32f4xx_hal_adc.c.

◆ HAL_ADC_UnRegisterCallback()

HAL_StatusTypeDef HAL_ADC_UnRegisterCallback ( ADC_HandleTypeDef hadc,
HAL_ADC_CallbackIDTypeDef  CallbackID 
)

Unregister a ADC Callback ADC callback is redirected to the weak predefined callback.

Parameters
hadcPointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC.
CallbackIDID of the callback to be unregistered This parameter can be one of the following values:
Return values
HALstatus

Definition at line 576 of file stm32f4xx_hal_adc.c.