EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #186 background imageLoading...
Page #186 background image
DMA controller (DMA)
UM1581
186/584
DocID023800 Rev 1
ï‚· void DMA_ClearFlag(uint32_t DMA_FLAG);
Interrupt Mode
Each DMA channel can be managed through 4 Interrupts:
ï‚· Interrupt Source
a. DMA_IT_TC: specifies the interrupt source for the Transfer Complete event.
b. DMA_IT_HT: specifies the interrupt source for the Half-transfer Complete event.
c. DMA_IT_TE: specifies the interrupt source for the transfer errors event.
d. DMA_IT_GL: to indicate that at least one of the interrupts described above
occurred. Clearing DMA_IT_GL interrupt results in clearing all other interrupts of
the same channel (DMA_IT_TCx, DMA_IT_HT and DMA_IT_TE).
In this Mode it is advised to use the following functions:
ï‚· void DMA_ITConfig(DMA_Channel_TypeDef* DMAy_Channelx, uint32_t DMA_IT,
FunctionalState NewState);
ï‚· ITStatus DMA_GetITStatus(uint32_t DMA_IT);
ï‚· void DMA_ClearITPendingBit(uint32_t DMA_IT);
ï‚· DMA_ITConfig()
ï‚· DMA_GetFlagStatus()
ï‚· DMA_ClearFlag()
ï‚· DMA_GetITStatus()
ï‚· DMA_ClearITPendingBit()
9.2.5 Initialization and Configuration functions
9.2.5.1 DMA_DeInit
Function Name
void DMA_DeInit ( DMA_Channel_TypeDef * DMAy_Channelx)
Function Description
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.
Notes
ï‚· None.
9.2.5.2 DMA_Init
Function Name
void DMA_Init ( DMA_Channel_TypeDef * DMAy_Channelx,
DMA_InitTypeDef * DMA_InitStruct)
Function Description
Initializes the DMAy Channelx according to the specified

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals