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 TIM5_ClearFlag (TIM5_FLAG_TypeDef TIM5_FLAG)
 Clears the TIM�s pending flags.
void TIM5_ClearITPendingBit (TIM5_IT_TypeDef TIM5_IT)
 Clears the TIM's interrupt pending bits.
void TIM5_DMACmd (TIM5_DMASource_TypeDef TIM5_DMASource, FunctionalState NewState)
 Enables or disables the TIM5 DMA Requests.
void TIM5_GenerateEvent (TIM5_EventSource_TypeDef TIM5_EventSource)
 Configures the TIM5 event to be generated by software.
FlagStatus TIM5_GetFlagStatus (TIM5_FLAG_TypeDef TIM5_FLAG)
 Checks whether the specified TIM5 flag is set or not.
ITStatus TIM5_GetITStatus (TIM5_IT_TypeDef TIM5_IT)
 Checks whether the TIM5 interrupt has occurred or not.
void TIM5_ITConfig (TIM5_IT_TypeDef TIM5_IT, FunctionalState NewState)
 Enables or disables the specified TIM5 interrupts.
void TIM5_SelectCCDMA (FunctionalState NewState)
 Selects the TIM5 peripheral Capture Compare DMA source.

Detailed Description

Interrupts, DMA and flags management functions.

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


Function Documentation

void TIM5_ClearFlag ( TIM5_FLAG_TypeDef  TIM5_FLAG)

Clears the TIM�s pending flags.

Parameters:
TIM5_FLAG,:Specifies the flag to clear. This parameter can be any combination of the following values:
  • TIM5_FLAG_Update: Update
  • TIM5_FLAG_CC1: Capture Compare Channel1
  • TIM5_FLAG_CC2: Capture Compare Channel2
  • TIM5_FLAG_Trigger: Trigger
  • TIM5_FLAG_Break: Break
Return values:
None

Definition at line 1500 of file stm8l15x_tim5.c.

References IS_TIM5_CLEAR_FLAG, and TIM5.

void TIM5_ClearITPendingBit ( TIM5_IT_TypeDef  TIM5_IT)

Clears the TIM's interrupt pending bits.

Parameters:
TIM5_IT,:Specifies the pending bit to clear. This parameter can be any combination of the following values:
  • TIM5_IT_Update: Update
  • TIM5_IT_CC1: Capture Compare Channel1
  • TIM5_IT_CC2: Capture Compare Channel2
  • TIM5_IT_Trigger: Trigger
  • TIM5_IT_Break: Break
Return values:
None

Definition at line 1555 of file stm8l15x_tim5.c.

References IS_TIM5_IT, and TIM5.

void TIM5_DMACmd ( TIM5_DMASource_TypeDef  TIM5_DMASource,
FunctionalState  NewState 
)

Enables or disables the TIM5 DMA Requests.

Parameters:
TIM5_DMASource,:specifies the DMA Request sources. This parameter can be any combination of the following values:
  • TIM5_DMASource_Update: TIM5 DMA Update Request
  • TIM5_DMASource_CC1: TIM5 DMA CC1 Request
  • TIM5_DMASource_CC2: TIM5 DMA CC2 Request
NewState,:new state of the DMA Request sources. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 1575 of file stm8l15x_tim5.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM5_DMA_SOURCE, and TIM5.

void TIM5_GenerateEvent ( TIM5_EventSource_TypeDef  TIM5_EventSource)

Configures the TIM5 event to be generated by software.

Parameters:
TIM5_EventSource,:Specifies the event source. This parameter can be any combination of the following values:
  • TIM5_EventSource_Update: Update
  • TIM5_EventSource_CC1: Capture Compare Channel1
  • TIM5_EventSource_CC2: Capture Compare Channel2
  • TIM5_EventSource_Trigger: Trigger
  • TIM5_EventSource_Break: Break
Return values:
None

Definition at line 1445 of file stm8l15x_tim5.c.

References IS_TIM5_EVENT_SOURCE, and TIM5.

FlagStatus TIM5_GetFlagStatus ( TIM5_FLAG_TypeDef  TIM5_FLAG)

Checks whether the specified TIM5 flag is set or not.

Parameters:
TIM5_FLAG,:Specifies the flag to check. This parameter can be any combination of the following values:
  • TIM5_FLAG_Update: Update
  • TIM5_FLAG_CC1: Capture Compare Channel1
  • TIM5_FLAG_CC2: Capture Compare Channel2
  • TIM5_FLAG_Trigger: Trigger
  • TIM5_FLAG_Break: Break
  • TIM5_FLAG_CC1OF: Capture compare 1 over capture
  • TIM5_FLAG_CC2OF: Capture compare 2 over capture
Return values:
FlagStatus,:The new state of TIM5_FLAG (SET or RESET)

Definition at line 1467 of file stm8l15x_tim5.c.

References IS_TIM5_GET_FLAG, RESET, SET, and TIM5.

ITStatus TIM5_GetITStatus ( TIM5_IT_TypeDef  TIM5_IT)

Checks whether the TIM5 interrupt has occurred or not.

Parameters:
TIM5_IT,:Specifies the TIM5 interrupt source to check. This parameter can be any combination of the following values:
  • TIM5_IT_Update: Update
  • TIM5_IT_CC1: Capture Compare Channel1
  • TIM5_IT_CC2: Capture Compare Channel2
  • TIM5_IT_Trigger: Trigger
  • TIM5_IT_Break: Break
Return values:
ITStatus,:The new state of the TIM5_IT (SET or RESET)

Definition at line 1520 of file stm8l15x_tim5.c.

References IS_TIM5_GET_IT, RESET, SET, and TIM5.

void TIM5_ITConfig ( TIM5_IT_TypeDef  TIM5_IT,
FunctionalState  NewState 
)

Enables or disables the specified TIM5 interrupts.

Parameters:
TIM5_IT,:Specifies the TIM5 interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • TIM5_IT_Update: Update
  • TIM5_IT_CC1: Capture Compare Channel1
  • TIM5_IT_CC2: Capture Compare Channel2
  • TIM5_IT_Trigger: Trigger
  • TIM5_IT_Break: Break
NewState,:The new state of the TIM5 peripheral. This parameter can be ENABLE or DISABLE
Return values:
None

Definition at line 1416 of file stm8l15x_tim5.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM5_IT, and TIM5.

void TIM5_SelectCCDMA ( FunctionalState  NewState)

Selects the TIM5 peripheral Capture Compare DMA source.

Parameters:
NewState,:new state of the Capture Compare DMA source. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 1599 of file stm8l15x_tim5.c.

References DISABLE, IS_FUNCTIONAL_STATE, TIM5, and TIM_CR2_CCDS.

STM8S Firmware Library: Overview

 

 

 

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