Ll_Adc_Structinit; Ll_Adc_Reg_Init - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
Notes

LL_ADC_StructInit

Function name
Function description
Parameters
Return values

LL_ADC_REG_Init

Function name
Function description
Parameters
Return values
Notes
ERROR: ADC registers are not initialized
These parameters have an impact on ADC scope: ADC
instance. Affects both group regular and group injected
(availability of ADC group injected depends on STM32
families). Refer to corresponding unitary functions into
Configuration of ADC hierarchical scope: ADC instance .
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, some 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();
void LL_ADC_StructInit (LL_ADC_InitTypeDef *
ADC_InitStruct)
Set each LL_ADC_InitTypeDef field to default value.
ADC_InitStruct: Pointer to a LL_ADC_InitTypeDef structure
whose fields will be set to default values.
None:
ErrorStatus LL_ADC_REG_Init (ADC_TypeDef * ADCx,
LL_ADC_REG_InitTypeDef * ADC_REG_InitStruct)
Initialize some features of ADC group regular.
ADCx: ADC instance
ADC_REG_InitStruct: Pointer to a
LL_ADC_REG_InitTypeDef structure
An: ErrorStatus enumeration value:
SUCCESS: ADC registers are initialized
ERROR: ADC registers are not initialized
These parameters have an impact on ADC scope: ADC group
regular. Refer to corresponding unitary functions into
Configuration of ADC hierarchical scope: group regular
(functions with prefix "REG").
DocID028236 Rev 2
LL ADC Generic Driver
755/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF