Flags management functions.
More...
Flags management functions.
===============================================================================
##### Flags management functions #####
===============================================================================
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
- PWR_FLAG_UDRDY: Under-drive ready flag (STM32F42xxx/43xxx devices)
|
- Return values
-
Definition at line 848 of file stm32f4xx_pwr.c.
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, RTC TimeStamp event or RTC Wakeup. An additional wakeup event is detected if the WKUP pin is enabled (by setting the EWUP bit) when the WKUP pin level is already high.
- 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. The PVD is stopped by Standby mode For this reason, this bit is equal to 0 after Standby or reset until the PVDE bit is set.
- PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset when the device wakes up from Standby mode or by a system reset or power reset.
- PWR_FLAG_VOSRDY: This flag indicates that the Regulator voltage scaling output selection is ready.
- PWR_FLAG_ODRDY: This flag indicates that the Over-drive mode is ready (STM32F42xxx/43xxx devices)
- PWR_FLAG_ODSWRDY: This flag indicates that the Over-drive mode switcching is ready (STM32F42xxx/43xxx devices)
- PWR_FLAG_UDRDY: This flag indicates that the Under-drive mode is enabled in Stop mode (STM32F42xxx/43xxx devices)
|
- Return values
-
The | new state of PWR_FLAG (SET or RESET). |
Definition at line 820 of file stm32f4xx_pwr.c.