UM1581
9.2.7
Interrupts and flags management functions
9.2.7.1
DMA_ITConfig
Function Name
Function Description
Parameters
Return values
Notes
9.2.7.2
DMA_GetFlagStatus
Function Name
Function Description
Parameters
void DMA_ITConfig (
DMAy_Channelx, uint32_t DMA_IT,
NewState)
Enables or disables the specified DMAy Channelx interrupts.
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 :
DMA_IT_HT :
DMA_IT_TE :
NewState : new state of the specified DMA interrupts. This
parameter can be: ENABLE or DISABLE.
None.
None.
FlagStatus DMA_GetFlagStatus ( uint32_t DMAy_FLAG)
Checks whether the specified DMAy Channelx flag is set or not.
DMAy_FLAG : specifies the flag to check. This parameter
can be one of the following values:
DMA1_FLAG_GL1 :
DMA1_FLAG_TC1 :
flag.
DMA1_FLAG_HT1 :
DMA1_FLAG_TE1 :
DMA1_FLAG_GL2 :
DMA1_FLAG_TC2 :
flag.
DMA1_FLAG_HT2 :
DMA1_FLAG_TE2 :
DMA1_FLAG_GL3 :
DMA1_FLAG_TC3 :
flag.
DocID023800 Rev 1
DMA_Channel_TypeDef *
FunctionalState
Transfer complete interrupt mask
Half transfer interrupt mask
Transfer error interrupt mask
DMA1 Channel1 global flag.
DMA1 Channel1 transfer complete
DMA1 Channel1 half transfer flag.
DMA1 Channel1 transfer error flag.
DMA1 Channel2 global flag.
DMA1 Channel2 transfer complete
DMA1 Channel2 half transfer flag.
DMA1 Channel2 transfer error flag.
DMA1 Channel3 global flag.
DMA1 Channel3 transfer complete
DMA controller (DMA)
189/584
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?