RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros
PWR Private macros to check input parameters

Macros

#define IS_PWR_PVD_LEVEL(LEVEL)
 
#define IS_PWR_PVD_MODE(MODE)
 
#define IS_PWR_REGULATOR(REGULATOR)
 
#define IS_PWR_SLEEP_ENTRY(ENTRY)
 
#define IS_PWR_STOP_ENTRY(ENTRY)
 
#define IS_PWR_REGULATOR_VOLTAGE(VOLTAGE)
 

Detailed Description

Macro Definition Documentation

◆ IS_PWR_PVD_LEVEL

#define IS_PWR_PVD_LEVEL (   LEVEL)
Value:
(((LEVEL) == PWR_PVDLEVEL_0) ||\
((LEVEL) == PWR_PVDLEVEL_1) ||\
((LEVEL) == PWR_PVDLEVEL_2) ||\
((LEVEL) == PWR_PVDLEVEL_3) ||\
((LEVEL) == PWR_PVDLEVEL_4) ||\
((LEVEL) == PWR_PVDLEVEL_5) ||\
((LEVEL) == PWR_PVDLEVEL_6) ||\
((LEVEL) == PWR_PVDLEVEL_7))
#define PWR_PVDLEVEL_4
Definition: stm32h7xx_hal_pwr.h:83
#define PWR_PVDLEVEL_1
Definition: stm32h7xx_hal_pwr.h:77
#define PWR_PVDLEVEL_7
Definition: stm32h7xx_hal_pwr.h:89
#define PWR_PVDLEVEL_5
Definition: stm32h7xx_hal_pwr.h:85
#define PWR_PVDLEVEL_6
Definition: stm32h7xx_hal_pwr.h:87
#define PWR_PVDLEVEL_3
Definition: stm32h7xx_hal_pwr.h:81
#define PWR_PVDLEVEL_2
Definition: stm32h7xx_hal_pwr.h:79
#define PWR_PVDLEVEL_0
Definition: stm32h7xx_hal_pwr.h:75

◆ IS_PWR_PVD_MODE

#define IS_PWR_PVD_MODE (   MODE)
Value:
(((MODE) == PWR_PVD_MODE_IT_RISING) ||\
((MODE) == PWR_PVD_MODE_IT_FALLING) ||\
((MODE) == PWR_PVD_MODE_EVENT_RISING) ||\
((MODE) == PWR_PVD_MODE_NORMAL))
#define PWR_PVD_MODE_IT_RISING
Definition: stm32h7xx_hal_pwr.h:100
#define PWR_PVD_MODE_EVENT_RISING
Definition: stm32h7xx_hal_pwr.h:103
#define PWR_PVD_MODE_NORMAL
Definition: stm32h7xx_hal_pwr.h:99
#define PWR_PVD_MODE_EVENT_RISING_FALLING
Definition: stm32h7xx_hal_pwr.h:105
#define PWR_PVD_MODE_EVENT_FALLING
Definition: stm32h7xx_hal_pwr.h:104
#define PWR_PVD_MODE_IT_FALLING
Definition: stm32h7xx_hal_pwr.h:101
#define PWR_PVD_MODE_IT_RISING_FALLING
Definition: stm32h7xx_hal_pwr.h:102

◆ IS_PWR_REGULATOR

#define IS_PWR_REGULATOR (   REGULATOR)
Value:
(((REGULATOR) == PWR_MAINREGULATOR_ON) ||\
((REGULATOR) == PWR_LOWPOWERREGULATOR_ON))

◆ IS_PWR_REGULATOR_VOLTAGE

#define IS_PWR_REGULATOR_VOLTAGE (   VOLTAGE)
Value:
(((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE0) || \
((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE1) || \
((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE2) || \
((VOLTAGE) == PWR_REGULATOR_VOLTAGE_SCALE3))

◆ IS_PWR_SLEEP_ENTRY

#define IS_PWR_SLEEP_ENTRY (   ENTRY)
Value:
(((ENTRY) == PWR_SLEEPENTRY_WFI) ||\
((ENTRY) == PWR_SLEEPENTRY_WFE))

◆ IS_PWR_STOP_ENTRY

#define IS_PWR_STOP_ENTRY (   ENTRY)
Value:
(((ENTRY) == PWR_STOPENTRY_WFI) ||\
((ENTRY) == PWR_STOPENTRY_WFE))