9.2.7 Interrupts and flags management functions
9.2.7.1 DMA_ITConfig
void DMA_ITConfig ( DMA_Channel_TypeDef *
DMAy_Channelx, uint32_t DMA_IT, FunctionalState
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 : 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.
9.2.7.2 DMA_GetFlagStatus
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 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.