Regular Channels DMA Configuration functions.
More...
|
void | ADC_DMACmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC DMA request. More...
|
|
void | ADC_DMARequestModeConfig (ADC_TypeDef *ADCx, uint32_t ADC_DMARequestMode) |
| Enables or disables the ADC DMA request after last transfer (Single-ADC mode) More...
|
|
Regular Channels DMA Configuration functions.
===============================================================================
##### DMA Configuration functions #####
===============================================================================
[..] This section provides functions allowing to configure the DMA for ADC hannels.
Since converted channel values are stored into a unique data register,
it is useful to use DMA for conversion of more than one channel. This
avoids the loss of the data already stored in the ADC Data register.
When the DMA mode is enabled (using the ADC_DMACmd() function), after each
conversion of a channel, a DMA request is generated.
[..] Depending on the "DMA disable selection" configuration (using the
ADC_DMARequestModeConfig() function), at the end of the last DMA
transfer, two possibilities are allowed:
(+) No new DMA request is issued to the DMA controller (One Shot Mode)
(+) Requests can continue to be generated (Circular Mode).
void ADC_DMACmd |
( |
ADC_TypeDef * |
ADCx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables the specified ADC DMA request.
- Parameters
-
ADCx,: | where x can be 1 to select the ADC1 peripheral. |
NewState,: | new state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE. |
- Return values
-
void ADC_DMARequestModeConfig |
( |
ADC_TypeDef * |
ADCx, |
|
|
uint32_t |
ADC_DMARequestMode |
|
) |
| |
Enables or disables the ADC DMA request after last transfer (Single-ADC mode)
- Parameters
-
ADCx,: | where x can be 1 to select the ADC1 peripheral. |
ADC_DMARequestMode,: | the ADC channel to configure. This parameter can be one of the following values:
- ADC_DMAMode_OneShot: DMA One Shot Mode
- ADC_DMAMode_Circular: DMA Circular Mode
|
- Return values
-