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
Initialization and Configuration functions
[DMA_Private_Functions]
Initialization and Configuration functions. More...
Functions | |
| void | DMA_DeInit (DMA_Channel_TypeDef *DMAy_Channelx) |
| Deinitializes the DMAy Channelx registers to their default reset values. | |
| void | DMA_Init (DMA_Channel_TypeDef *DMAy_Channelx, DMA_InitTypeDef *DMA_InitStruct) |
| Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct. | |
| void | DMA_StructInit (DMA_InitTypeDef *DMA_InitStruct) |
| Fills each DMA_InitStruct member with its default value. | |
| void | DMA_Cmd (DMA_Channel_TypeDef *DMAy_Channelx, FunctionalState NewState) |
| Enables or disables the specified DMAy Channelx. | |
Detailed Description
Initialization and Configuration functions.
===============================================================================
##### Initialization and Configuration functions #####
===============================================================================
[..] This subsection provides functions allowing to initialize the DMA channel
source and destination addresses, incrementation and data sizes, transfer
direction, buffer size, circular/normal mode selection, memory-to-memory
mode selection and channel priority value.
[..] The DMA_Init() function follows the DMA configuration procedures as described
in reference manual (RM00316).
Function Documentation
| void DMA_Cmd | ( | DMA_Channel_TypeDef * | DMAy_Channelx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables the specified DMAy Channelx.
- Parameters:
-
DMAy_Channelx,: where y can be 1 or 2 to select the DMA and x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel. NewState,: new state of the DMAy Channelx. This parameter can be: ENABLE or DISABLE.
- Return values:
-
None
Definition at line 328 of file stm32f30x_dma.c.
| void DMA_DeInit | ( | DMA_Channel_TypeDef * | DMAy_Channelx ) |
Deinitializes the DMAy Channelx registers to their default reset values.
- Parameters:
-
DMAy_Channelx,: where y can be 1 or 2 to select the DMA and x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel.
- Return values:
-
None
Definition at line 141 of file stm32f30x_dma.c.
| void DMA_Init | ( | DMA_Channel_TypeDef * | DMAy_Channelx, |
| DMA_InitTypeDef * | DMA_InitStruct | ||
| ) |
Initializes the DMAy Channelx according to the specified parameters in the DMA_InitStruct.
- Parameters:
-
DMAy_Channelx,: where y can be 1 or 2 to select the DMA and x can be 1 to 7 for DMA1 and 1 to 5 for DMA2 to select the DMA Channel. DMA_InitStruct,: pointer to a DMA_InitTypeDef structure that contains the configuration information for the specified DMA Channel.
- Return values:
-
None
Definition at line 235 of file stm32f30x_dma.c.
| void DMA_StructInit | ( | DMA_InitTypeDef * | DMA_InitStruct ) |
Fills each DMA_InitStruct member with its default value.
- Parameters:
-
DMA_InitStruct,: pointer to a DMA_InitTypeDef structure which will be initialized.
- Return values:
-
None
Definition at line 293 of file stm32f30x_dma.c.
Generated on Tue Jul 12 2022 17:34:45 by
1.7.2