STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
Flags management functions

Flags management functions. More...

Functions

FlagStatus PWR_GetFlagStatus (uint32_t PWR_FLAG)
 Checks whether the specified PWR flag is set or not. More...
 
void PWR_ClearFlag (uint32_t PWR_FLAG)
 Clears the PWR's pending flags. More...
 

Detailed Description

Flags management functions.

  ==============================================================================
                       ##### Flags management functions #####
  ==============================================================================

Function Documentation

void PWR_ClearFlag ( uint32_t  PWR_FLAG)

Clears the PWR's pending flags.

Parameters
PWR_FLAG,:specifies the flag to clear. This parameter can be one of the following values:
  • PWR_FLAG_WU: Wake Up flag
  • PWR_FLAG_SB: StandBy flag
Return values
None
FlagStatus PWR_GetFlagStatus ( uint32_t  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_WU: Wake Up flag. This flag indicates that a wakeup event was received from the WKUP pin or from the RTC alarm (Alarm A or Alarm B), RTC Tamper event or RTC TimeStamp event.
  • PWR_FLAG_SB: StandBy flag. This flag indicates that the system was resumed from StandBy mode.
  • PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled by the PWR_PVDCmd() function.
  • PWR_FLAG_VREFINTRDY: Internal Voltage Reference Ready flag. This flag indicates the state of the internal voltage reference, VREFINT.
Return values
Thenew state of PWR_FLAG (SET or RESET).