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 #189 background imageLoading...
Page #189 background image
UM1581
DMA controller (DMA)
DocID023800 Rev 1
189/584
9.2.7 Interrupts and flags management functions
9.2.7.1 DMA_ITConfig
Function Name
void DMA_ITConfig ( DMA_Channel_TypeDef *
DMAy_Channelx, uint32_t DMA_IT, FunctionalState
NewState)
Function Description
Enables or disables the specified DMAy Channelx interrupts.
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_IT : specifies the DMA interrupts sources to be
enabled or disabled. This parameter can be any combination
of the following values:
 DMA_IT_TC : Transfer complete interrupt mask
 DMA_IT_HT : Half transfer interrupt mask
 DMA_IT_TE : Transfer error interrupt mask
ï‚· NewState : new state of the specified DMA interrupts. This
parameter can be: ENABLE or DISABLE.
Return values
ï‚· None.
Notes
ï‚· None.
9.2.7.2 DMA_GetFlagStatus
Function Name
FlagStatus DMA_GetFlagStatus ( uint32_t DMAy_FLAG)
Function Description
Checks whether the specified DMAy Channelx flag is set or not.
Parameters
ï‚· DMAy_FLAG : specifies the flag to check. This parameter
can be one of the following values:
 DMA1_FLAG_GL1 : DMA1 Channel1 global flag.
 DMA1_FLAG_TC1 : DMA1 Channel1 transfer complete
flag.
 DMA1_FLAG_HT1 : DMA1 Channel1 half transfer flag.
 DMA1_FLAG_TE1 : DMA1 Channel1 transfer error flag.
 DMA1_FLAG_GL2 : DMA1 Channel2 global flag.
 DMA1_FLAG_TC2 : DMA1 Channel2 transfer complete
flag.
 DMA1_FLAG_HT2 : DMA1 Channel2 half transfer flag.
 DMA1_FLAG_TE2 : DMA1 Channel2 transfer error flag.
 DMA1_FLAG_GL3 : DMA1 Channel3 global flag.
 DMA1_FLAG_TC3 : DMA1 Channel3 transfer complete
flag.

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