Ll_Adc_Reg_Structinit; Ll_Adc_Inj_Init - ST STM32F2 User Manual

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

Advertisement

LL ADC Generic Driver

LL_ADC_REG_StructInit

Function name
Function description
Parameters
Return values

LL_ADC_INJ_Init

Function name
Function description
Parameters
Return values
Notes
756/1371
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();
void LL_ADC_REG_StructInit (LL_ADC_REG_InitTypeDef *
ADC_REG_InitStruct)
Set each LL_ADC_REG_InitTypeDef field to default value.
ADC_REG_InitStruct: Pointer to a
LL_ADC_REG_InitTypeDef structure whose fields will be set
to default values.
None:
ErrorStatus LL_ADC_INJ_Init (ADC_TypeDef * ADCx,
LL_ADC_INJ_InitTypeDef * ADC_INJ_InitStruct)
Initialize some features of ADC group injected.
ADCx: ADC instance
ADC_INJ_InitStruct: Pointer to a LL_ADC_INJ_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
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
DocID028236 Rev 2
UM1940

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