LL ADC Generic Driver
Notes
Reference Manual to
LL API cross
reference:
LL_ADC_REG_SetDMATransfer
Function name
Function description
Parameters
Return values
Notes
Reference Manual to
LL API cross
reference:
LL_ADC_REG_GetDMATransfer
Function name
Function description
714/1371
LL_ADC_REG_CONV_CONTINUOUS
Description of ADC continuous conversion mode: single
mode: one conversion per triggercontinuous mode: after the
first trigger, following conversions launched successively
automatically.
CR2 CONT LL_ADC_REG_GetContinuousMode
__STATIC_INLINE void LL_ADC_REG_SetDMATransfer
(ADC_TypeDef * ADCx, uint32_t DMATransfer)
Set ADC group regular conversion data transfer: no transfer or
transfer by DMA, and DMA requests mode.
ADCx: ADC instance
DMATransfer: This parameter 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
None:
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_SetMultiDMATransfer().
To configure DMA source address (peripheral address), use
function LL_ADC_DMA_GetRegAddr().
CR2 DMA LL_ADC_REG_SetDMATransfer
CR2 DDS LL_ADC_REG_SetDMATransfer
__STATIC_INLINE uint32_t LL_ADC_REG_GetDMATransfer
(ADC_TypeDef * ADCx)
Get ADC group regular conversion data transfer: no transfer or
transfer by DMA, and DMA requests mode.
DocID028236 Rev 2
UM1940
Need help?
Do you have a question about the STM32F2 and is the answer not in the manual?
Questions and answers