STM8L15x Standard Peripherals Drivers: Interrupts DMA and flags management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Interrupts DMA and flags management functions

Interrupts, DMA and flags management functions. More...

Functions

void TIM4_ClearFlag (TIM4_FLAG_TypeDef TIM4_FLAG)
 Clears the TIM�s pending flags.
void TIM4_ClearITPendingBit (TIM4_IT_TypeDef TIM4_IT)
 Clears the TIM4's interrupt pending bits.
void TIM4_DMACmd (TIM4_DMASource_TypeDef TIM4_DMASource, FunctionalState NewState)
 Enables or disables the TIMx�s DMA Requests.
void TIM4_GenerateEvent (TIM4_EventSource_TypeDef TIM4_EventSource)
 Configures the TIM4 event to be generated by software.
FlagStatus TIM4_GetFlagStatus (TIM4_FLAG_TypeDef TIM4_FLAG)
 Checks whether the specified TIM4 flag is set or not.
ITStatus TIM4_GetITStatus (TIM4_IT_TypeDef TIM4_IT)
 Checks whether the TIM4 interrupt has occurred or not.
void TIM4_ITConfig (TIM4_IT_TypeDef TIM4_IT, FunctionalState NewState)
 Enables or disables the specified TIM4 interrupts.

Detailed Description

Interrupts, DMA and flags management functions.

 ===============================================================================
                 Interrupts, DMA and flags management functions
 ===============================================================================  


Function Documentation

void TIM4_ClearFlag ( TIM4_FLAG_TypeDef  TIM4_FLAG)

Clears the TIM�s pending flags.

Parameters:
TIM4_FLAG,:Specifies the flag to clear. This parameter can be one of the following values:
  • TIM4_FLAG_Update: Update
  • TIM4_FLAG_Trigger: Trigger
Return values:
None

Definition at line 494 of file stm8l15x_tim4.c.

References IS_TIM4_CLEAR_FLAG, and TIM4.

void TIM4_ClearITPendingBit ( TIM4_IT_TypeDef  TIM4_IT)

Clears the TIM4's interrupt pending bits.

Parameters:
TIM4_IT,:Specifies the pending bit to clear. This parameter can be one of the following values:
  • TIM4_IT_Update: Update
  • TIM4_IT_Trigger: Trigger
Return values:
None

Definition at line 544 of file stm8l15x_tim4.c.

References IS_TIM4_IT, and TIM4.

void TIM4_DMACmd ( TIM4_DMASource_TypeDef  TIM4_DMASource,
FunctionalState  NewState 
)

Enables or disables the TIMx�s DMA Requests.

Parameters:
TIM4_DMASources,:specifies the DMA Request sources. This parameter can be one of the following values:
  • TIM4_DMASource_Update: Update
NewState,:new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 562 of file stm8l15x_tim4.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM4_DMA_SOURCE, and TIM4.

void TIM4_GenerateEvent ( TIM4_EventSource_TypeDef  TIM4_EventSource)

Configures the TIM4 event to be generated by software.

Parameters:
TIM4_EventSource,:Specifies the event source. This parameter can be one of the following values:
  • TIM4_EventSource_Update: Update
  • TIM4_EventSource_Trigger: Trigger
Return values:
None

Definition at line 450 of file stm8l15x_tim4.c.

References IS_TIM4_EVENT_SOURCE, and TIM4.

FlagStatus TIM4_GetFlagStatus ( TIM4_FLAG_TypeDef  TIM4_FLAG)

Checks whether the specified TIM4 flag is set or not.

Parameters:
TIM4_FLAG,:Specifies the flag to check. This parameter can be one of the following values:
  • TIM4_FLAG_Update: Update
  • TIM4_FLAG_Trigger: Trigger
Return values:
FlagStatus,:The new state of TIM4_FLAG. This parameter can be SET or RESET.

Definition at line 468 of file stm8l15x_tim4.c.

References IS_TIM4_GET_FLAG, RESET, SET, and TIM4.

ITStatus TIM4_GetITStatus ( TIM4_IT_TypeDef  TIM4_IT)

Checks whether the TIM4 interrupt has occurred or not.

Parameters:
TIM4_IT,:Specifies the TIM4 interrupt source to check. This parameter can be one of the following values:
  • TIM4_IT_Update: Update
  • TIM4_IT_Trigger: Trigger
Return values:
ITStatus,:The new state of the TIM4_IT. This parameter can be SET or RESET

Definition at line 512 of file stm8l15x_tim4.c.

References IS_TIM4_GET_IT, RESET, SET, and TIM4.

void TIM4_ITConfig ( TIM4_IT_TypeDef  TIM4_IT,
FunctionalState  NewState 
)

Enables or disables the specified TIM4 interrupts.

Parameters:
TIM4_IT,:Specifies the TIM4 interrupts sources to be enabled or disabled. This parameter can be one of the following values:
  • TIM4_IT_Update: Update
  • TIM4_IT_Trigger: Trigger
NewState,:The new state of the TIM4 peripheral. This parameter can be ENABLE or DISABLE
Return values:
None

Definition at line 424 of file stm8l15x_tim4.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM4_IT, and TIM4.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com