STM8L15x Standard Peripherals Drivers: Interrupts and flags management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Interrupts and flags management functions

Interrupts and flags management functions. More...

Functions

void DAC_ClearFlag (DAC_Channel_TypeDef DAC_Channel, DAC_FLAG_TypeDef DAC_FLAG)
 Clears the DAC channel's pending flags.
void DAC_ClearITPendingBit (DAC_Channel_TypeDef DAC_Channel, DAC_IT_TypeDef DAC_IT)
 Clears the DAC channel's interrupt pending bits.
FlagStatus DAC_GetFlagStatus (DAC_Channel_TypeDef DAC_Channel, DAC_FLAG_TypeDef DAC_FLAG)
 Checks whether the specified DAC flag is set or not.
ITStatus DAC_GetITStatus (DAC_Channel_TypeDef DAC_Channel, DAC_IT_TypeDef DAC_IT)
 Checks whether the specified DAC interrupt has occurred or not.
void DAC_ITConfig (DAC_Channel_TypeDef DAC_Channel, DAC_IT_TypeDef DAC_IT, FunctionalState NewState)
 Enables or disables the specified DAC interrupts.

Detailed Description

Interrupts and flags management functions.

 ===============================================================================
                   Interrupts and flags management functions
 ===============================================================================  


Function Documentation

void DAC_ClearFlag ( DAC_Channel_TypeDef  DAC_Channel,
DAC_FLAG_TypeDef  DAC_FLAG 
)

Clears the DAC channel's pending flags.

Parameters:
DAC_Channel,:the selected DAC channel. This parameter can be one of the following values:
  • DAC_Channel_1: DAC Channel1 selected
  • DAC_Channel_2: DAC Channel2 selected
DAC_FLAG,:specifies the flag to clear. This parameter can be of the following value:
  • DAC_FLAG_DMAUDR: DMA underrun flag
Return values:
None

Definition at line 736 of file stm8l15x_dac.c.

References DAC, IS_DAC_CHANNEL, and IS_DAC_FLAG.

void DAC_ClearITPendingBit ( DAC_Channel_TypeDef  DAC_Channel,
DAC_IT_TypeDef  DAC_IT 
)

Clears the DAC channel's interrupt pending bits.

Parameters:
DAC_Channel,:the selected DAC channel. This parameter can be one of the following values:
  • DAC_Channel_1: DAC Channel1 selected
  • DAC_Channel_2: DAC Channel2 selected
DAC_IT,:specifies the DAC interrupt pending bit to clear. This parameter can be the following values:
  • DAC_IT_DMAUDR: DMA underrun interrupt mask
Return values:
None

Definition at line 807 of file stm8l15x_dac.c.

References DAC, IS_DAC_CHANNEL, and IS_DAC_IT.

FlagStatus DAC_GetFlagStatus ( DAC_Channel_TypeDef  DAC_Channel,
DAC_FLAG_TypeDef  DAC_FLAG 
)

Checks whether the specified DAC flag is set or not.

Parameters:
DAC_Channel,:thee selected DAC channel. This parameter can be one of the following values:
  • DAC_Channel_1: DAC Channel1 selected
  • DAC_Channel_2: DAC Channel2 selected
DAC_FLAG,:specifies the flag to check. This parameter can be only of the following value:
  • DAC_FLAG_DMAUDR: DMA underrun flag
Note:
The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
Return values:
Thenew state of DAC_FLAG (SET or RESET).

Definition at line 698 of file stm8l15x_dac.c.

References DAC, IS_DAC_CHANNEL, IS_DAC_FLAG, RESET, and SET.

ITStatus DAC_GetITStatus ( DAC_Channel_TypeDef  DAC_Channel,
DAC_IT_TypeDef  DAC_IT 
)

Checks whether the specified DAC interrupt has occurred or not.

Parameters:
DAC_Channel,:the selected DAC channel. This parameter can be one of the following values:
  • DAC_Channel_1: DAC Channel1 selected
  • DAC_Channel_2: DAC Channel2 selected
DAC_IT,:specifies the DAC interrupt source to check. This parameter can be the following values:
  • DAC_IT_DMAUDR: DMA underrun interrupt mask
Note:
The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
Return values:
Thenew state of DAC_IT (SET or RESET).

Definition at line 764 of file stm8l15x_dac.c.

References CR2_Offset, DAC, DAC_BASE, IS_DAC_CHANNEL, IS_DAC_IT, RESET, and SET.

void DAC_ITConfig ( DAC_Channel_TypeDef  DAC_Channel,
DAC_IT_TypeDef  DAC_IT,
FunctionalState  NewState 
)

Enables or disables the specified DAC interrupts.

Parameters:
DAC_Channel,:the selected DAC channel. This parameter can be one of the following values:
  • DAC_Channel_1: DAC Channel1 selected
  • DAC_Channel_2: DAC Channel2 selected
DAC_IT,:specifies the DAC interrupt sources to be enabled or disabled. This parameter can be the following values:
  • DAC_IT_DMAUDR: DMA underrun interrupt mask
Note:
The DMA underrun occurs when a second external trigger arrives before the acknowledgement for the first external trigger is received (first request).
Parameters:
NewState,:new state of the specified DAC interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 661 of file stm8l15x_dac.c.

References CR2_Offset, DAC_BASE, DISABLE, IS_DAC_CHANNEL, IS_DAC_IT, and IS_FUNCTIONAL_STATE.

STM8S Firmware Library: Overview

 

 

 

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