EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #84 background imageLoading...
Page #84 background image
HAL ADC Generic Driver
UM1940
84/1371
DocID028236 Rev 2
This section contains the following APIs:
HAL_ADC_ConfigChannel()
HAL_ADC_AnalogWDGConfig()
6.2.6 Peripheral State and errors functions
This subsection provides functions allowing to
Check the ADC state
Check the ADC Error
This section contains the following APIs:
HAL_ADC_GetState()
HAL_ADC_GetError()
6.2.7 Detailed description of functions
HAL_ADC_Init
Function name
HAL_StatusTypeDef HAL_ADC_Init (ADC_HandleTypeDef *
hadc)
Function description
Initializes the ADCx peripheral according to the specified
parameters in the ADC_InitStruct and initializes the ADC MSP.
Parameters
hadc: pointer to a ADC_HandleTypeDef structure that
contains the configuration information for the specified ADC.
Return values
HAL: status
Notes
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).
HAL_ADC_DeInit
Function name
HAL_StatusTypeDef HAL_ADC_DeInit (ADC_HandleTypeDef *
hadc)
Function description
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
HAL: status
HAL_ADC_MspInit
Function name
void HAL_ADC_MspInit (ADC_HandleTypeDef * hadc)
Function description
Initializes the ADC MSP.
Parameters
hadc: pointer to a ADC_HandleTypeDef structure that
contains the configuration information for the specified ADC.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F2 and is the answer not in the manual?

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals