STM8L15x Standard Peripherals Drivers
|
Interrupts and flags management functions. More...
Functions | |
void | DMA_ClearFlag (DMA_FLAG_TypeDef DMA_FLAG) |
Clears the DMA Channels selected flags. | |
void | DMA_ClearITPendingBit (DMA_IT_TypeDef DMA_IT) |
Clears the DMA Channelx�s interrupt pending bits. | |
FlagStatus | DMA_GetFlagStatus (DMA_FLAG_TypeDef DMA_FLAG) |
Checks whether the specified DMA Channelx flag is set or not. | |
ITStatus | DMA_GetITStatus (DMA_IT_TypeDef DMA_IT) |
Checks whether the specified DMA Channelx interrupt has occurred or not. | |
void | DMA_ITConfig (DMA_Channel_TypeDef *DMA_Channelx, DMA_ITx_TypeDef DMA_ITx, FunctionalState NewState) |
Enables or disables the specified DMA Channelx interrupts. |
Detailed Description
Interrupts and flags management functions.
=============================================================================== Interrupts and flags management functions =============================================================================== This subsection provides functions allowing to configure the DMA Interrupts sources and check or clear the flags or pending bits status. The user should identify which mode will be used in his application to manage the DMA controller events: Polling mode or Interrupt mode. Polling Mode ============= Each DMA channel can be managed through 2 event Flags: (x: DMA channel number ) 1. DMA1_FLAG_TCx: to indicate that a Transfer Complete event occurred 2. DMA1_FLAG_HTx: to indicate that a Half-Transfer Complete event occurred In this Mode it is advised to use DMA_GetFlagStatus() and DMA_ClearFlag() functions. Interrupt Mode =============== Each DMA channel can be managed through 2 Interrupts: Interrupt Source ---------------- 1. DMA_IT_TC: specifies the interrupt source for the Transfer Complete event. 2. DMA_IT_HT: specifies the interrupt source for the Half-transfer Complete event. In this Mode it is advised to use DMA_ITConfig(), DMA_GetITStatus() and DMA_ClearITPendingBit() functions.
Function Documentation
void DMA_ClearFlag | ( | DMA_FLAG_TypeDef | DMA_FLAG | ) |
Clears the DMA Channels selected flags.
Definition at line 591 of file stm8l15x_dma.c.
References DMA_Channel_struct::CSPR, DMA1_Channel0, DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, IS_DMA_CLEAR_FLAG, and RESET.
void DMA_ClearITPendingBit | ( | DMA_IT_TypeDef | DMA_IT | ) |
Clears the DMA Channelx�s interrupt pending bits.
Definition at line 698 of file stm8l15x_dma.c.
References DMA_Channel_struct::CSPR, DMA1_Channel0, DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, IS_DMA_CLEAR_IT, and RESET.
FlagStatus DMA_GetFlagStatus | ( | DMA_FLAG_TypeDef | DMA_FLAG | ) |
Checks whether the specified DMA Channelx flag is set or not.
Definition at line 524 of file stm8l15x_dma.c.
References DMA_Channel_struct::CSPR, DMA1, DMA1_Channel0, DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, DMA_GCSR_GB, IS_DMA_GET_FLAG, and RESET.
ITStatus DMA_GetITStatus | ( | DMA_IT_TypeDef | DMA_IT | ) |
Checks whether the specified DMA Channelx interrupt has occurred or not.
Definition at line 640 of file stm8l15x_dma.c.
References DMA_Channel_struct::CCR, DMA_Channel_struct::CSPR, DMA1_Channel0, DMA1_Channel1, DMA1_Channel2, DMA1_Channel3, DMA_CCR_HTIE, DMA_CCR_TCIE, IS_DMA_GET_IT, and RESET.
void DMA_ITConfig | ( | DMA_Channel_TypeDef * | DMA_Channelx, |
DMA_ITx_TypeDef | DMA_ITx, | ||
FunctionalState | NewState | ||
) |
Enables or disables the specified DMA Channelx interrupts.
Definition at line 476 of file stm8l15x_dma.c.
References DMA_Channel_struct::CCR, DISABLE, IS_DMA_CHANNEL, IS_DMA_CONFIG_ITX, and IS_FUNCTIONAL_STATE.