Prusa MINI Firmware overview
PWR Private macros to check input parameters
Collaboration diagram for 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)   (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))
 
#define IS_PWR_STOP_ENTRY(ENTRY)   (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE))
 

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))

◆ IS_PWR_PVD_MODE

#define IS_PWR_PVD_MODE (   MODE)
Value:

◆ IS_PWR_REGULATOR

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

◆ IS_PWR_SLEEP_ENTRY

#define IS_PWR_SLEEP_ENTRY (   ENTRY)    (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))

◆ IS_PWR_STOP_ENTRY

#define IS_PWR_STOP_ENTRY (   ENTRY)    (((ENTRY) == PWR_STOPENTRY_WFI) || ((ENTRY) == PWR_STOPENTRY_WFE))
PWR_PVDLEVEL_4
#define PWR_PVDLEVEL_4
Definition: stm32f4xx_hal_pwr.h:97
PWR_PVD_MODE_IT_RISING_FALLING
#define PWR_PVD_MODE_IT_RISING_FALLING
Definition: stm32f4xx_hal_pwr.h:112
PWR_PVD_MODE_IT_RISING
#define PWR_PVD_MODE_IT_RISING
Definition: stm32f4xx_hal_pwr.h:110
PWR_PVD_MODE_IT_FALLING
#define PWR_PVD_MODE_IT_FALLING
Definition: stm32f4xx_hal_pwr.h:111
PWR_PVDLEVEL_6
#define PWR_PVDLEVEL_6
Definition: stm32f4xx_hal_pwr.h:99
PWR_PVDLEVEL_2
#define PWR_PVDLEVEL_2
Definition: stm32f4xx_hal_pwr.h:95
PWR_LOWPOWERREGULATOR_ON
#define PWR_LOWPOWERREGULATOR_ON
Definition: stm32f4xx_hal_pwr.h:125
PWR_PVDLEVEL_0
#define PWR_PVDLEVEL_0
Definition: stm32f4xx_hal_pwr.h:93
PWR_PVD_MODE_EVENT_RISING
#define PWR_PVD_MODE_EVENT_RISING
Definition: stm32f4xx_hal_pwr.h:113
PWR_MAINREGULATOR_ON
#define PWR_MAINREGULATOR_ON
Definition: stm32f4xx_hal_pwr.h:124
PWR_PVDLEVEL_7
#define PWR_PVDLEVEL_7
Definition: stm32f4xx_hal_pwr.h:100
PWR_PVDLEVEL_3
#define PWR_PVDLEVEL_3
Definition: stm32f4xx_hal_pwr.h:96
PWR_PVD_MODE_NORMAL
#define PWR_PVD_MODE_NORMAL
Definition: stm32f4xx_hal_pwr.h:109
PWR_PVD_MODE_EVENT_RISING_FALLING
#define PWR_PVD_MODE_EVENT_RISING_FALLING
Definition: stm32f4xx_hal_pwr.h:115
PWR_PVDLEVEL_5
#define PWR_PVDLEVEL_5
Definition: stm32f4xx_hal_pwr.h:98
PWR_PVDLEVEL_1
#define PWR_PVDLEVEL_1
Definition: stm32f4xx_hal_pwr.h:94
PWR_PVD_MODE_EVENT_FALLING
#define PWR_PVD_MODE_EVENT_FALLING
Definition: stm32f4xx_hal_pwr.h:114