EasyManua.ls Logo

ST STM32F31xx

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
Loading...
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

Related product manuals