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 TIM3_ClearFlag (TIM3_FLAG_TypeDef TIM3_FLAG)
 Clears the TIM�s pending flags.
void TIM3_ClearITPendingBit (TIM3_IT_TypeDef TIM3_IT)
 Clears the TIM's interrupt pending bits.
void TIM3_DMACmd (TIM3_DMASource_TypeDef TIM3_DMASource, FunctionalState NewState)
 Enables or disables the TIM3 DMA Requests.
void TIM3_GenerateEvent (TIM3_EventSource_TypeDef TIM3_EventSource)
 Configures the TIM3 event to be generated by software.
FlagStatus TIM3_GetFlagStatus (TIM3_FLAG_TypeDef TIM3_FLAG)
 Checks whether the specified TIM3 flag is set or not.
ITStatus TIM3_GetITStatus (TIM3_IT_TypeDef TIM3_IT)
 Checks whether the TIM3 interrupt has occurred or not.
void TIM3_ITConfig (TIM3_IT_TypeDef TIM3_IT, FunctionalState NewState)
 Enables or disables the specified TIM3 interrupts.
void TIM3_SelectCCDMA (FunctionalState NewState)
 Selects the TIM3 peripheral Capture Compare DMA source.

Detailed Description

Interrupts, DMA and flags management functions.

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


Function Documentation

void TIM3_ClearFlag ( TIM3_FLAG_TypeDef  TIM3_FLAG)

Clears the TIM�s pending flags.

Parameters:
TIM3_FLAG,:Specifies the flag to clear. This parameter can be any combination of the following values:
  • TIM3_FLAG_Update: Update
  • TIM3_FLAG_CC1: Capture Compare Channel1
  • TIM3_FLAG_CC2: Capture Compare Channel2
  • TIM3_FLAG_Trigger: Trigger
  • TIM3_FLAG_Break: Break
Return values:
None

Definition at line 1500 of file stm8l15x_tim3.c.

References IS_TIM3_CLEAR_FLAG, and TIM3.

void TIM3_ClearITPendingBit ( TIM3_IT_TypeDef  TIM3_IT)

Clears the TIM's interrupt pending bits.

Parameters:
TIM3_IT,:Specifies the pending bit to clear. This parameter can be any combination of the following values:
  • TIM3_IT_Update: Update
  • TIM3_IT_CC1: Capture Compare Channel1
  • TIM3_IT_CC2: Capture Compare Channel2
  • TIM3_IT_Trigger: Trigger
  • TIM3_IT_Break: Break
Return values:
None

Definition at line 1555 of file stm8l15x_tim3.c.

References IS_TIM3_IT, and TIM3.

void TIM3_DMACmd ( TIM3_DMASource_TypeDef  TIM3_DMASource,
FunctionalState  NewState 
)

Enables or disables the TIM3 DMA Requests.

Parameters:
TIM3_DMASource,:specifies the DMA Request sources. This parameter can be any combination of the following values:
  • TIM3_DMASource_Update: TIM3 DMA Update Request
  • TIM3_DMASource_CC1: TIM3 DMA CC1 Request
  • TIM3_DMASource_CC2: TIM3 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_tim3.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM3_DMA_SOURCE, and TIM3.

void TIM3_GenerateEvent ( TIM3_EventSource_TypeDef  TIM3_EventSource)

Configures the TIM3 event to be generated by software.

Parameters:
TIM3_EventSource,:Specifies the event source. This parameter can be any combination of the following values:
  • TIM3_EventSource_Update: Update
  • TIM3_EventSource_CC1: Capture Compare Channel1
  • TIM3_EventSource_CC2: Capture Compare Channel2
  • TIM3_EventSource_Trigger: Trigger
  • TIM3_EventSource_Break: Break
Return values:
None

Definition at line 1445 of file stm8l15x_tim3.c.

References IS_TIM3_EVENT_SOURCE, and TIM3.

FlagStatus TIM3_GetFlagStatus ( TIM3_FLAG_TypeDef  TIM3_FLAG)

Checks whether the specified TIM3 flag is set or not.

Parameters:
TIM3_FLAG,:Specifies the flag to check. This parameter can be any combination of the following values:
  • TIM3_FLAG_Update: Update
  • TIM3_FLAG_CC1: Capture Compare Channel1
  • TIM3_FLAG_CC2: Capture Compare Channel2
  • TIM3_FLAG_Trigger: Trigger
  • TIM3_FLAG_Break: Break
  • TIM3_FLAG_CC1OF: Capture compare 1 over capture
  • TIM3_FLAG_CC2OF: Capture compare 2 over capture
Return values:
FlagStatus,:The new state of TIM3_FLAG (SET or RESET)

Definition at line 1467 of file stm8l15x_tim3.c.

References IS_TIM3_GET_FLAG, RESET, SET, and TIM3.

ITStatus TIM3_GetITStatus ( TIM3_IT_TypeDef  TIM3_IT)

Checks whether the TIM3 interrupt has occurred or not.

Parameters:
TIM3_IT,:Specifies the TIM3 interrupt source to check. This parameter can be any combination of the following values:
  • TIM3_IT_Update: Update
  • TIM3_IT_CC1: Capture Compare Channel1
  • TIM3_IT_CC2: Capture Compare Channel2
  • TIM3_IT_Trigger: Trigger
  • TIM3_IT_Break: Break
Return values:
ITStatus,:The new state of the TIM3_IT (SET or RESET)

Definition at line 1520 of file stm8l15x_tim3.c.

References IS_TIM3_GET_IT, RESET, SET, and TIM3.

void TIM3_ITConfig ( TIM3_IT_TypeDef  TIM3_IT,
FunctionalState  NewState 
)

Enables or disables the specified TIM3 interrupts.

Parameters:
TIM3_IT,:Specifies the TIM3 interrupts sources to be enabled or disabled. This parameter can be any combination of the following values:
  • TIM3_IT_Update: Update
  • TIM3_IT_CC1: Capture Compare Channel1
  • TIM3_IT_CC2: Capture Compare Channel2
  • TIM3_IT_Trigger: Trigger
  • TIM3_IT_Break: Break
NewState,:The new state of the TIM3 peripheral. This parameter can be ENABLE or DISABLE
Return values:
None

Definition at line 1416 of file stm8l15x_tim3.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_TIM3_IT, and TIM3.

void TIM3_SelectCCDMA ( FunctionalState  NewState)

Selects the TIM3 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_tim3.c.

References DISABLE, IS_FUNCTIONAL_STATE, TIM3, and TIM_CR2_CCDS.

STM8S Firmware Library: Overview

 

 

 

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