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.
Regular Channels DMA Configuration functions
[ADC_Private_Functions]
Regular Channels DMA Configuration functions. More...
Functions | |
| void | ADC_DMACmd_mort (ADC_TypeDef_mort *ADCx, FunctionalState NewState) |
| Enables or disables the specified ADC DMA request. | |
| void | ADC_DMARequestAfterLastTransferCmd_mort (ADC_TypeDef_mort *ADCx, FunctionalState NewState) |
| Enables or disables the ADC DMA request after last transfer (Single-ADC mode) | |
| void | ADC_MultiModeDMARequestAfterLastTransferCmd_mort (FunctionalState NewState) |
| Enables or disables the ADC DMA request after last transfer in multi ADC 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.
When the DMA mode is enabled (using the ADC_DMACmd() function), after each
conversion of a regular channel, a DMA request is generated.
[..] Depending on the "DMA disable selection for Independent ADC mode"
configuration (using the ADC_DMARequestAfterLastTransferCmd() function),
at the end of the last DMA transfer, two possibilities are allowed:
(+) No new DMA request is issued to the DMA controller (feature DISABLED)
(+) Requests can continue to be generated (feature ENABLED).
[..] Depending on the "DMA disable selection for multi ADC mode" configuration
(using the void ADC_MultiModeDMARequestAfterLastTransferCmd() function),
at the end of the last DMA transfer, two possibilities are allowed:
(+) No new DMA request is issued to the DMA controller (feature DISABLED)
(+) Requests can continue to be generated (feature ENABLED).
Function Documentation
| void ADC_DMACmd_mort | ( | ADC_TypeDef_mort * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified ADC DMA request.
- Parameters:
-
ADCx,: where x can be 1, 2 or 3 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 1052 of file stm32f4xx_adc_mort.c.
| void ADC_DMARequestAfterLastTransferCmd_mort | ( | ADC_TypeDef_mort * | ADCx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the ADC DMA request after last transfer (Single-ADC mode)
- Parameters:
-
ADCx,: where x can be 1, 2 or 3 to select the ADC peripheral. NewState,: new state of the selected ADC DMA request after last transfer. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 1076 of file stm32f4xx_adc_mort.c.
| void ADC_MultiModeDMARequestAfterLastTransferCmd_mort | ( | FunctionalState | NewState ) |
Enables or disables the ADC DMA request after last transfer in multi ADC mode.
- Parameters:
-
NewState,: new state of the selected ADC DMA request after last transfer. This parameter can be: ENABLE or DISABLE.
- Note:
- if Enabled, DMA requests are issued as long as data are converted and DMA mode for multi ADC mode (selected using ADC_CommonInit() function by ADC_CommonInitStruct.ADC_DMAAccessMode structure member) is ADC_DMAAccessMode_1, ADC_DMAAccessMode_2 or ADC_DMAAccessMode_3.
- Return values:
-
None
Definition at line 1103 of file stm32f4xx_adc_mort.c.
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2