LL_ADC_INJ_GetSequencerLength
__STATIC_INLINE uint32_t
LL_ADC_INJ_GetSequencerLength (ADC_TypeDef * ADCx)
Get ADC group injected sequencer length and scan direction.
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.
Reference Manual to
LL API cross
reference:
JSQR JL LL_ADC_INJ_GetSequencerLength
LL_ADC_INJ_SetSequencerDiscont
__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
It is not possible to enable both ADC group injected auto-
injected mode and sequencer discontinuous mode.
Reference Manual to
LL API cross
reference:
CR1 DISCEN LL_ADC_INJ_SetSequencerDiscont