STM8L15x Standard Peripherals Drivers
|
Interrupts, DMA and flags management functions. More...
Functions | |
void | TIM2_ClearFlag (TIM2_FLAG_TypeDef TIM2_FLAG) |
Clears the TIM�s pending flags. | |
void | TIM2_ClearITPendingBit (TIM2_IT_TypeDef TIM2_IT) |
Clears the TIM's interrupt pending bits. | |
void | TIM2_DMACmd (TIM2_DMASource_TypeDef TIM2_DMASource, FunctionalState NewState) |
Enables or disables the TIM2 DMA Requests. | |
void | TIM2_GenerateEvent (TIM2_EventSource_TypeDef TIM2_EventSource) |
Configures the TIM2 event to be generated by software. | |
FlagStatus | TIM2_GetFlagStatus (TIM2_FLAG_TypeDef TIM2_FLAG) |
Checks whether the specified TIM2 flag is set or not. | |
ITStatus | TIM2_GetITStatus (TIM2_IT_TypeDef TIM2_IT) |
Checks whether the TIM2 interrupt has occurred or not. | |
void | TIM2_ITConfig (TIM2_IT_TypeDef TIM2_IT, FunctionalState NewState) |
Enables or disables the specified TIM2 interrupts. | |
void | TIM2_SelectCCDMA (FunctionalState NewState) |
Selects the TIM2 peripheral Capture Compare DMA source. |
Detailed Description
Interrupts, DMA and flags management functions.
=============================================================================== Interrupts, DMA and flags management functions ===============================================================================
Function Documentation
void TIM2_ClearFlag | ( | TIM2_FLAG_TypeDef | TIM2_FLAG | ) |
Clears the TIM�s pending flags.
Definition at line 1500 of file stm8l15x_tim2.c.
References IS_TIM2_CLEAR_FLAG, and TIM2.
void TIM2_ClearITPendingBit | ( | TIM2_IT_TypeDef | TIM2_IT | ) |
Clears the TIM's interrupt pending bits.
Definition at line 1555 of file stm8l15x_tim2.c.
References IS_TIM2_IT, and TIM2.
void TIM2_DMACmd | ( | TIM2_DMASource_TypeDef | TIM2_DMASource, |
FunctionalState | NewState | ||
) |
Enables or disables the TIM2 DMA Requests.
Definition at line 1575 of file stm8l15x_tim2.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM2_DMA_SOURCE, and TIM2.
void TIM2_GenerateEvent | ( | TIM2_EventSource_TypeDef | TIM2_EventSource | ) |
Configures the TIM2 event to be generated by software.
Definition at line 1445 of file stm8l15x_tim2.c.
References IS_TIM2_EVENT_SOURCE, and TIM2.
FlagStatus TIM2_GetFlagStatus | ( | TIM2_FLAG_TypeDef | TIM2_FLAG | ) |
Checks whether the specified TIM2 flag is set or not.
Definition at line 1467 of file stm8l15x_tim2.c.
References IS_TIM2_GET_FLAG, RESET, SET, and TIM2.
ITStatus TIM2_GetITStatus | ( | TIM2_IT_TypeDef | TIM2_IT | ) |
Checks whether the TIM2 interrupt has occurred or not.
Definition at line 1520 of file stm8l15x_tim2.c.
References IS_TIM2_GET_IT, RESET, SET, and TIM2.
void TIM2_ITConfig | ( | TIM2_IT_TypeDef | TIM2_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified TIM2 interrupts.
Definition at line 1416 of file stm8l15x_tim2.c.
References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM2_IT, and TIM2.
void TIM2_SelectCCDMA | ( | FunctionalState | NewState | ) |
Selects the TIM2 peripheral Capture Compare DMA source.
Definition at line 1599 of file stm8l15x_tim2.c.
References DISABLE, IS_FUNCTIONAL_STATE, TIM2, and TIM_CR2_CCDS.