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 #754 background imageLoading...
Page #754 background image
LL ADC Generic Driver
UM1940
754/1371
DocID028236 Rev 2
Function description
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).
Parameters
ADCxy_COMMON: ADC common instance (can be set
directly from CMSIS definition or by using helper macro
__LL_ADC_COMMON_INSTANCE() )
ADC_CommonInitStruct: Pointer to a
LL_ADC_CommonInitTypeDef structure
Return values
An: ErrorStatus enumeration value:
SUCCESS: ADC common registers are initialized
ERROR: ADC common registers are not initialized
Notes
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.
LL_ADC_CommonStructInit
Function name
void LL_ADC_CommonStructInit
(LL_ADC_CommonInitTypeDef * ADC_CommonInitStruct)
Function description
Set each LL_ADC_CommonInitTypeDef field to default value.
Parameters
ADC_CommonInitStruct: Pointer to a
LL_ADC_CommonInitTypeDef structure whose fields will be
set to default values.
Return values
None:
LL_ADC_DeInit
Function name
ErrorStatus LL_ADC_DeInit (ADC_TypeDef * ADCx)
Function description
De-initialize registers of the selected ADC instance to their default
reset values.
Parameters
ADCx: ADC instance
Return values
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are de-initialized
ERROR: ADC registers are not de-initialized
Notes
To reset all ADC instances quickly (perform a hard reset), use
function LL_ADC_CommonDeInit().
LL_ADC_Init
Function name
ErrorStatus LL_ADC_Init (ADC_TypeDef * ADCx,
LL_ADC_InitTypeDef * ADC_InitStruct)
Function description
Initialize some features of ADC instance.
Parameters
ADCx: ADC instance
ADC_InitStruct: Pointer to a LL_ADC_REG_InitTypeDef
structure
Return values
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are initialized

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