Ll_Adc_Inj_Getsequencerlength; Ll_Adc_Inj_Setsequencerdiscont - ST STM32F2 User Manual

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

Advertisement

UM1940
reference:

LL_ADC_INJ_GetSequencerLength

Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:

LL_ADC_INJ_SetSequencerDiscont

Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
__STATIC_INLINE uint32_t
LL_ADC_INJ_GetSequencerLength (ADC_TypeDef * ADCx)
Get ADC group injected sequencer length and scan direction.
ADCx: ADC instance
Returned: value can be one of the following values:
LL_ADC_INJ_SEQ_SCAN_DISABLE
LL_ADC_INJ_SEQ_SCAN_ENABLE_2RANKS
LL_ADC_INJ_SEQ_SCAN_ENABLE_3RANKS
LL_ADC_INJ_SEQ_SCAN_ENABLE_4RANKS
This function retrieves: Sequence length: Number of ranks in
the scan sequence.Sequence direction: Unless specified in
parameters, sequencer scan direction is forward (from rank 1
to rank n).
On this STM32 serie, group injected sequencer configuration
is conditioned to ADC instance sequencer mode. If ADC
instance sequencer mode is disabled, sequencers of all
groups (group regular, group injected) can be configured but
their execution is disabled (limited to rank 1). Refer to function
LL_ADC_SetSequencersScanMode().
Sequencer disabled is equivalent to sequencer of 1 rank:
ADC conversion on only 1 channel.
JSQR JL LL_ADC_INJ_GetSequencerLength
__STATIC_INLINE void LL_ADC_INJ_SetSequencerDiscont
(ADC_TypeDef * ADCx, uint32_t SeqDiscont)
Set ADC group injected sequencer discontinuous mode: sequence
subdivided and scan conversions interrupted every selected
number of ranks.
ADCx: ADC instance
SeqDiscont: This parameter can be one of the following
values:
LL_ADC_INJ_SEQ_DISCONT_DISABLE
LL_ADC_INJ_SEQ_DISCONT_1RANK
None:
It is not possible to enable both ADC group injected auto-
injected mode and sequencer discontinuous mode.
CR1 DISCEN LL_ADC_INJ_SetSequencerDiscont
DocID028236 Rev 2
LL ADC Generic Driver
719/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?

Questions and answers

Table of Contents

Save PDF