STM32H735xx HAL User Manual
Defines
PWREx Private macros to check input parameters
PWREx Private Macros

Defines

#define IS_PWR_SUPPLY(PWR_SOURCE)
#define IS_PWR_STOP_MODE_REGULATOR_VOLTAGE(VOLTAGE)
#define IS_PWR_DOMAIN(DOMAIN)
#define IS_D3_STATE(STATE)
#define IS_PWR_WAKEUP_PIN(PIN)
#define IS_PWR_WAKEUP_PIN_POLARITY(POLARITY)
#define IS_PWR_WAKEUP_PIN_PULL(PULL)
#define IS_PWR_WAKEUP_FLAG(FLAG)
#define IS_PWR_AVD_LEVEL(LEVEL)
#define IS_PWR_AVD_MODE(MODE)
#define IS_PWR_BATTERY_RESISTOR_SELECT(RESISTOR)
#define IS_PWR_D1_CPU(CPU)   ((CPU) == CM7_CPUID)

Define Documentation

#define IS_D3_STATE (   STATE)
Value:
(((STATE) == PWR_D3_DOMAIN_STOP) ||\
                            ((STATE) == PWR_D3_DOMAIN_RUN))

Definition at line 659 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ConfigD3Domain().

#define IS_PWR_AVD_LEVEL (   LEVEL)
Value:
(((LEVEL) == PWR_AVDLEVEL_0) ||\
                                 ((LEVEL) == PWR_AVDLEVEL_1) ||\
                                 ((LEVEL) == PWR_AVDLEVEL_2) ||\
                                 ((LEVEL) == PWR_AVDLEVEL_3))

Definition at line 724 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ConfigAVD().

#define IS_PWR_AVD_MODE (   MODE)
Value:

Definition at line 730 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ConfigAVD().

#define IS_PWR_BATTERY_RESISTOR_SELECT (   RESISTOR)
Value:

Definition at line 739 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_EnableBatteryCharging().

#define IS_PWR_D1_CPU (   CPU)    ((CPU) == CM7_CPUID)

Definition at line 742 of file stm32h7xx_hal_pwr_ex.h.

#define IS_PWR_DOMAIN (   DOMAIN)
Value:
(((DOMAIN) == PWR_D1_DOMAIN) ||\
                               ((DOMAIN) == PWR_D2_DOMAIN) ||\
                               ((DOMAIN) == PWR_D3_DOMAIN))

Definition at line 650 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_EnterSTANDBYMode(), and HAL_PWREx_EnterSTOPMode().

#define IS_PWR_STOP_MODE_REGULATOR_VOLTAGE (   VOLTAGE)
Value:
(((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE3)  ||\
                                                     ((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE4)  ||\
                                                     ((VOLTAGE) == PWR_REGULATOR_SVOS_SCALE5))

Definition at line 644 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ControlStopModeVoltageScaling().

#define IS_PWR_SUPPLY (   PWR_SOURCE)
Value:
(((PWR_SOURCE) == PWR_LDO_SUPPLY)                    ||\
                                   ((PWR_SOURCE) == PWR_DIRECT_SMPS_SUPPLY)            ||\
                                   ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_LDO)         ||\
                                   ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_LDO)         ||\
                                   ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_EXT_AND_LDO) ||\
                                   ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_EXT_AND_LDO) ||\
                                   ((PWR_SOURCE) == PWR_SMPS_1V8_SUPPLIES_EXT)         ||\
                                   ((PWR_SOURCE) == PWR_SMPS_2V5_SUPPLIES_EXT)         ||\
                                   ((PWR_SOURCE) == PWR_EXTERNAL_SOURCE_SUPPLY))

Definition at line 628 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ConfigSupply().

#define IS_PWR_WAKEUP_FLAG (   FLAG)
Value:
(((FLAG) == PWR_WAKEUP_FLAG1) ||\
                                  ((FLAG) == PWR_WAKEUP_FLAG2) ||\
                                  ((FLAG) == PWR_WAKEUP_FLAG4) ||\
                                  ((FLAG) == PWR_WAKEUP_FLAG6) ||\
                                  ((FLAG) == PWR_WAKEUP_FLAG_ALL))

Definition at line 716 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_ClearWakeupFlag(), and HAL_PWREx_GetWakeupFlag().

#define IS_PWR_WAKEUP_PIN (   PIN)
Value:
(((PIN) == PWR_WAKEUP_PIN1)      ||\
                                ((PIN) == PWR_WAKEUP_PIN2)      ||\
                                ((PIN) == PWR_WAKEUP_PIN4)      ||\
                                ((PIN) == PWR_WAKEUP_PIN6)      ||\
                                ((PIN) == PWR_WAKEUP_PIN1_HIGH) ||\
                                ((PIN) == PWR_WAKEUP_PIN2_HIGH) ||\
                                ((PIN) == PWR_WAKEUP_PIN4_HIGH) ||\
                                ((PIN) == PWR_WAKEUP_PIN6_HIGH) ||\
                                ((PIN) == PWR_WAKEUP_PIN1_LOW)  ||\
                                ((PIN) == PWR_WAKEUP_PIN2_LOW)  ||\
                                ((PIN) == PWR_WAKEUP_PIN4_LOW)  ||\
                                ((PIN) == PWR_WAKEUP_PIN6_LOW))

Definition at line 683 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWR_DisableWakeUpPin(), HAL_PWR_EnableWakeUpPin(), HAL_PWREx_DisableWakeUpPin(), and HAL_PWREx_EnableWakeUpPin().

#define IS_PWR_WAKEUP_PIN_POLARITY (   POLARITY)
Value:
(((POLARITY) == PWR_PIN_POLARITY_HIGH) ||\
                                              ((POLARITY) == PWR_PIN_POLARITY_LOW))

Definition at line 698 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_EnableWakeUpPin().

#define IS_PWR_WAKEUP_PIN_PULL (   PULL)
Value:
(((PULL) == PWR_PIN_NO_PULL) ||\
                                      ((PULL) == PWR_PIN_PULL_UP) ||\
                                      ((PULL) == PWR_PIN_PULL_DOWN))

Definition at line 702 of file stm32h7xx_hal_pwr_ex.h.

Referenced by HAL_PWREx_EnableWakeUpPin().