Returned: value can be one of the following values:
LL_ADC_REG_DMA_TRANSFER_NONE
LL_ADC_REG_DMA_TRANSFER_LIMITED
LL_ADC_REG_DMA_TRANSFER_UNLIMITED
If transfer by DMA selected, specifies the DMA requests
mode: Limited mode (One shot mode): DMA transfer requests
are stopped when number of DMA data transfers (number of
ADC conversions) is reached. This ADC mode is intended to
be used with DMA mode non-circular.Unlimited mode: DMA
transfer requests are unlimited, whatever number of DMA
data transfers (number of ADC conversions). This ADC mode
is intended to be used with DMA mode circular.
If ADC DMA requests mode is set to unlimited and DMA is set
to mode non-circular: when DMA transfers size will be
reached, DMA will stop transfers of ADC conversions data
ADC will raise an overrun error (overrun flag and interruption
if enabled).
For devices with several ADC instances: ADC multimode
DMA settings are available using function
LL_ADC_GetMultiDMATransfer().
To configure DMA source address (peripheral address), use
function LL_ADC_DMA_GetRegAddr().
Reference Manual to
LL API cross
reference:
CR2 DMA LL_ADC_REG_GetDMATransfer
CR2 DDS LL_ADC_REG_GetDMATransfer
LL_ADC_REG_SetFlagEndOfConversion
__STATIC_INLINE void
LL_ADC_REG_SetFlagEndOfConversion (ADC_TypeDef *
ADCx, uint32_t EocSelection)
Specify which ADC flag between EOC (end of unitary conversion)
or EOS (end of sequence conversions) is used to indicate the end
of conversion.
ADCx: ADC instance
EocSelection: This parameter can be one of the following
values:
LL_ADC_REG_FLAG_EOC_SEQUENCE_CONV
LL_ADC_REG_FLAG_EOC_UNITARY_CONV
This feature is aimed to be set when using ADC with
programming model by polling or interruption (programming
model by DMA usually uses DMA interruptions to indicate end
of conversion and data transfer).
For ADC group injected, end of conversion (flag&IT) is raised
only at the end of the sequence.
Reference Manual to
LL API cross
reference:
CR2 EOCS LL_ADC_REG_SetFlagEndOfConversion