思澈科技软件开发工具包  2.20

Functions

HAL_StatusTypeDef HAL_ADC_Init (ADC_HandleTypeDef *hadc)
 Initializes the ADC peripheral and regular group according to parameters specified in structure "ADC_InitTypeDef". More...
 
HAL_StatusTypeDef HAL_ADC_DeInit (ADC_HandleTypeDef *hadc)
 Deinitial ADC hardware. More...
 

Detailed Description

Function Documentation

◆ HAL_ADC_DeInit()

HAL_StatusTypeDef HAL_ADC_DeInit ( ADC_HandleTypeDef hadc)

Deinitial ADC hardware.

Parameters
hadcADC handle.
Return values
HAL_StatusTypeDef

◆ HAL_ADC_Init()

HAL_StatusTypeDef HAL_ADC_Init ( ADC_HandleTypeDef hadc)

Initializes the ADC peripheral and regular group according to parameters specified in structure "ADC_InitTypeDef".

Note
As prerequisite, ADC clock must be configured at RCC top level depending on both possible clock sources: APB clock of HSI clock.
Possibility to update parameters on the fly: The setting of these parameters is conditioned to ADC state. For parameters constraints, see comments of structure "ADC_InitTypeDef".
This function configures the ADC within 2 scopes: scope of entire ADC and scope of regular group. For parameters details, see comments of structure "ADC_InitTypeDef".
Parameters
hadcADC handle
Return values
HALstatus