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

FlagStatus PWR_GetFlagStatus (PWR_FLAG_TypeDef PWR_FLAG)
 Checks whether the specified PWR flag is set or not.
void PWR_PVDClearFlag (void)
 Clears the PWR PVDIF Flag.
void PWR_PVDClearITPendingBit (void)
 Clears the PWR interrupt pending bit.
ITStatus PWR_PVDGetITStatus (void)
 Checks whether the PVD interrupt has occurred or not.
void PWR_PVDITConfig (FunctionalState NewState)
 Configures the Programmable Voltage Detector (PVD) Interrupt .

Detailed Description

Interrupts and Flags management functions.

 ===============================================================================
                 Interrupts and Flags management functions
 ===============================================================================  


Function Documentation

FlagStatus PWR_GetFlagStatus ( PWR_FLAG_TypeDef  PWR_FLAG)

Checks whether the specified PWR flag is set or not.

Parameters:
PWR_FLAG,:specifies the flag to check. This parameter can be one of the following values:
  • PWR_FLAG_PVDOF: PVD Output. This flag is valid only if PVD is enabled by the PWR_PVDCmd() function.
  • PWR_FLAG_VREFINTF: Internal Voltage Reference Ready flag. This flag indicates the state of the internal voltage reference, VREFINT.
  • PWR_FLAG_PVDIF: PVD Interrupt Flag, it's set by hardware when a PVD event occurs
Return values:
Thenew state of PWR_FLAG (SET or RESET).

Definition at line 255 of file stm8l15x_pwr.c.

References IS_PWR_FLAG, PWR, PWR_CR2_VREFINTF, PWR_FLAG_VREFINTF, RESET, and SET.

void PWR_PVDClearFlag ( void  )

Clears the PWR PVDIF Flag.

Parameters:
None
Return values:
None

Definition at line 294 of file stm8l15x_pwr.c.

References PWR, and PWR_CSR1_PVDIF.

void PWR_PVDClearITPendingBit ( void  )

Clears the PWR interrupt pending bit.

Parameters:
None
Return values:
None

Definition at line 330 of file stm8l15x_pwr.c.

References PWR, and PWR_CSR1_PVDIF.

ITStatus PWR_PVDGetITStatus ( void  )

Checks whether the PVD interrupt has occurred or not.

Parameters:
None
Return values:
Thenew state of the PVD Interrupt (SET or RESET).

Definition at line 305 of file stm8l15x_pwr.c.

References PWR, PWR_CSR1_PVDIEN, PWR_CSR1_PVDIF, RESET, and SET.

void PWR_PVDITConfig ( FunctionalState  NewState)

Configures the Programmable Voltage Detector (PVD) Interrupt .

Parameters:
NewState: Indicates the new state of the PVD interrupt.
Return values:
None

Definition at line 226 of file stm8l15x_pwr.c.

References DISABLE, IS_FUNCTIONAL_STATE, PWR, and PWR_CSR1_PVDIEN.

STM8S Firmware Library: Overview

 

 

 

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