STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
PWR Exported Macro
Collaboration diagram for PWR Exported Macro:

Macros

#define __HAL_PWR_GET_FLAG(__FLAG__)
 Check PWR flag is set or not.
 
#define __HAL_PWR_CLEAR_FLAG(__FLAG__)
 Clear the PWR's pending flags.
 
#define __HAL_PWR_PVD_EXTI_ENABLE_IT()
 Enable the PVD Exti Line 16.
 
#define __HAL_PWR_PVD_EXTI_DISABLE_IT()
 Disable the PVD EXTI Line 16.
 
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT()
 Enable event on PVD Exti Line 16.
 
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT()
 Disable event on PVD Exti Line 16.
 
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
 Enable the PVD Extended Interrupt Rising Trigger.
 
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()
 Disable the PVD Extended Interrupt Rising Trigger.
 
#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE()
 Enable the PVD Extended Interrupt Falling Trigger.
 
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()
 Disable the PVD Extended Interrupt Falling Trigger.
 
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE()
 PVD EXTI line configuration: set rising & falling edge trigger.
 
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVD Extended Interrupt Rising & Falling Trigger. This parameter can be:
 
#define __HAL_PWR_PVD_EXTI_GET_FLAG()
 checks whether the specified PVD Exti interrupt flag is set or not.
 
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG()
 Clear the PVD Exti flag.
 
#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT()
 Generates a Software interrupt on PVD EXTI line.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_PWR_GET_FLAG

#define __HAL_PWR_GET_FLAG ( __FLAG__)

#include <stm32f4xx_hal_pwr.h>

Value:
((PWR->CSR & (__FLAG__)) == (__FLAG__))

Check PWR flag is set or not.

Parameters
__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 HAL_PWR_EnablePVD() 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.
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 174 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWREx_ControlVoltageScaling(), HAL_PWREx_DisableBkUpReg(), HAL_PWREx_DisableOverDrive(), HAL_PWREx_EnableBkUpReg(), and HAL_PWREx_EnableOverDrive().

◆ __HAL_PWR_CLEAR_FLAG

#define __HAL_PWR_CLEAR_FLAG ( __FLAG__)

#include <stm32f4xx_hal_pwr.h>

Value:
(PWR->CR |= (__FLAG__) << 2U)

Clear the PWR's pending flags.

Parameters
__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

Definition at line 182 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_InitTick().

◆ __HAL_PWR_PVD_EXTI_ENABLE_IT

#define __HAL_PWR_PVD_EXTI_ENABLE_IT ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->IMR |= (PWR_EXTI_LINE_PVD))
#define PWR_EXTI_LINE_PVD

Enable the PVD Exti Line 16.

Return values
None.

Definition at line 188 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_DISABLE_IT

#define __HAL_PWR_PVD_EXTI_DISABLE_IT ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))

Disable the PVD EXTI Line 16.

Return values
None.

Definition at line 194 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_ENABLE_EVENT

#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->EMR |= (PWR_EXTI_LINE_PVD))

Enable event on PVD Exti Line 16.

Return values
None.

Definition at line 200 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_DISABLE_EVENT

#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))

Disable event on PVD Exti Line 16.

Return values
None.

Definition at line 206 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE

#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)

Enable the PVD Extended Interrupt Rising Trigger.

Return values
None.

Definition at line 212 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE

#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)

Disable the PVD Extended Interrupt Rising Trigger.

Return values
None.

Definition at line 218 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE

#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)

Enable the PVD Extended Interrupt Falling Trigger.

Return values
None.

Definition at line 224 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE

#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)

Disable the PVD Extended Interrupt Falling Trigger.

Return values
None.

Definition at line 231 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_ConfigPVD().

◆ __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE

#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();\
}while(0U)
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
Enable the PVD Extended Interrupt Rising Trigger.

PVD EXTI line configuration: set rising & falling edge trigger.

Return values
None.

Definition at line 238 of file stm32f4xx_hal_pwr.h.

◆ __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE

#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE ( )

#include <stm32f4xx_hal_pwr.h>

Value:
__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();\
}while(0U)
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()
Disable the PVD Extended Interrupt Rising Trigger.

Disable the PVD Extended Interrupt Rising & Falling Trigger. This parameter can be:

Return values
None.

Definition at line 247 of file stm32f4xx_hal_pwr.h.

◆ __HAL_PWR_PVD_EXTI_GET_FLAG

#define __HAL_PWR_PVD_EXTI_GET_FLAG ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->PR & (PWR_EXTI_LINE_PVD))

checks whether the specified PVD Exti interrupt flag is set or not.

Return values
EXTIPVD Line Status.

Definition at line 255 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_PVD_IRQHandler().

◆ __HAL_PWR_PVD_EXTI_CLEAR_FLAG

#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->PR = (PWR_EXTI_LINE_PVD))

Clear the PVD Exti flag.

Return values
None.

Definition at line 261 of file stm32f4xx_hal_pwr.h.

Referenced by HAL_PWR_PVD_IRQHandler().

◆ __HAL_PWR_PVD_EXTI_GENERATE_SWIT

#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT ( )

#include <stm32f4xx_hal_pwr.h>

Value:
(EXTI->SWIER |= (PWR_EXTI_LINE_PVD))

Generates a Software interrupt on PVD EXTI line.

Return values
None

Definition at line 267 of file stm32f4xx_hal_pwr.h.