EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #715 background imageLoading...
Page #715 background image
UM1940
LL ADC Generic Driver
DocID028236 Rev 2
715/1371
Parameters
ADCx: ADC instance
Return values
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
Notes
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
Function name
__STATIC_INLINE void
LL_ADC_REG_SetFlagEndOfConversion (ADC_TypeDef *
ADCx, uint32_t EocSelection)
Function description
Specify which ADC flag between EOC (end of unitary conversion)
or EOS (end of sequence conversions) is used to indicate the end
of conversion.
Parameters
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
Return values
None:
Notes
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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals