Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
Regular Channels DMA Configuration functions
[ADC_Private_Functions]
Regular Channels DMA Configuration functions. More...
Functions | |
void | ADC_DMACmd (ADC_TypeDef *ADCx, FunctionalState NewState) |
Enables or disables the specified ADC DMA request. | |
void | ADC_DMAConfig (ADC_TypeDef *ADCx, uint32_t ADC_DMAMode) |
Configure ADC DMA mode. |
Detailed Description
Regular Channels DMA Configuration functions.
=============================================================================== ##### Regular Channels DMA Configuration functions ##### =============================================================================== [..] This section provides functions allowing to configure the DMA for ADC regular channels. Since converted regular channel values are stored into a unique data register, it is useful to use DMA for conversion of more than one regular channel. This avoids the loss of the data already stored in the ADC Data register. (#) ADC_DMACmd() function is used to enable the ADC DMA mode, after each conversion of a regular channel, a DMA request is generated. (#) ADC_DMAConfig() function is used to select between the one shot DMA mode or the circular DMA mode
Function Documentation
void ADC_DMACmd | ( | ADC_TypeDef * | ADCx, |
FunctionalState | NewState | ||
) |
Enables or disables the specified ADC DMA request.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. NewState,: new state of the selected ADC DMA transfer. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1741 of file stm32f30x_adc.c.
void ADC_DMAConfig | ( | ADC_TypeDef * | ADCx, |
uint32_t | ADC_DMAMode | ||
) |
Configure ADC DMA mode.
- Parameters:
-
ADCx,: where x can be 1, 2, 3 or 4 to select the ADC peripheral. ADC_DMAMode,: select the ADC DMA mode. This parameter can be one of the following values: - ADC_DMAMode_OneShot: ADC DMA Oneshot mode
- ADC_DMAMode_Circular: ADC DMA circular mode
- Return values:
-
None
Definition at line 1767 of file stm32f30x_adc.c.
Generated on Tue Jul 12 2022 17:34:45 by
