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 #756 background imageLoading...
Page #756 background image
LL ADC Generic Driver
UM1940
756/1371
DocID028236 Rev 2
The setting of these parameters by function LL_ADC_Init() is
conditioned to ADC state: ADC instance must be disabled.
This condition is applied to all ADC features, for efficiency and
compatibility over all STM32 families. However, the different
features can be set under different ADC state conditions
(setting possible with ADC enabled without conversion on
going, ADC enabled with conversion on going, ...) Each
feature can be updated afterwards with a unitary function and
potentially with ADC in a different state than disabled, refer to
description of each function for setting conditioned to ADC
state.
After using this function, other features must be configured
using LL unitary functions. The minimum configuration
remaining to be done is: Set ADC group regular or group
injected sequencer: map channel on the selected sequencer
rank. Refer to function
LL_ADC_REG_SetSequencerRanks().Set ADC channel
sampling time Refer to function
LL_ADC_SetChannelSamplingTime();
LL_ADC_REG_StructInit
Function name
void LL_ADC_REG_StructInit (LL_ADC_REG_InitTypeDef *
ADC_REG_InitStruct)
Function description
Set each LL_ADC_REG_InitTypeDef field to default value.
Parameters
ADC_REG_InitStruct: Pointer to a
LL_ADC_REG_InitTypeDef structure whose fields will be set
to default values.
Return values
None:
LL_ADC_INJ_Init
Function name
ErrorStatus LL_ADC_INJ_Init (ADC_TypeDef * ADCx,
LL_ADC_INJ_InitTypeDef * ADC_INJ_InitStruct)
Function description
Initialize some features of ADC group injected.
Parameters
ADCx: ADC instance
ADC_INJ_InitStruct: Pointer to a LL_ADC_INJ_InitTypeDef
structure
Return values
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are initialized
ERROR: ADC registers are not initialized
Notes
These parameters have an impact on ADC scope: ADC group
injected. Refer to corresponding unitary functions into
Configuration of ADC hierarchical scope: group regular
(functions with prefix "INJ").
The setting of these parameters by function LL_ADC_Init() is
conditioned to ADC state: ADC instance must be disabled.
This condition is applied to all ADC features, for efficiency and
compatibility over all STM32 families. However, the different
features can be set under different ADC state conditions
(setting possible with ADC enabled without conversion on

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