Initialization and Configuration functions.
More...
Initialization and Configuration functions.
===============================================================================
##### Initialization and de-initialization functions #####
===============================================================================
[..] This section provides functions allowing to:
(+) Initialize and configure the ADC.
(+) De-initialize the ADC.
◆ HAL_ADC_DeInit()
Deinitializes the ADCx peripheral registers to their default reset values.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 405 of file stm32f4xx_hal_adc.c.
◆ HAL_ADC_Init()
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
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 311 of file stm32f4xx_hal_adc.c.
◆ HAL_ADC_MspDeInit()
DeInitializes the ADC MSP.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 677 of file stm32f4xx_hal_adc.c.
◆ HAL_ADC_MspInit()
Initializes the ADC MSP.
- Parameters
-
hadc | pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
- Return values
-
Definition at line 662 of file stm32f4xx_hal_adc.c.
◆ HAL_ADC_RegisterCallback()
Register a User ADC Callback To be used instead of the weak predefined callback.
- Parameters
-
hadc | Pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
CallbackID | ID of the callback to be registered This parameter can be one of the following values:
|
pCallback | pointer to the Callback function |
- Return values
-
Definition at line 474 of file stm32f4xx_hal_adc.c.
◆ HAL_ADC_UnRegisterCallback()
Unregister a ADC Callback ADC callback is redirected to the weak predefined callback.
- Parameters
-
hadc | Pointer to a ADC_HandleTypeDef structure that contains the configuration information for the specified ADC. |
CallbackID | ID of the callback to be unregistered This parameter can be one of the following values:
|
- Return values
-
Definition at line 576 of file stm32f4xx_hal_adc.c.