STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
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)
#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
Programmable voltage detector level 4 selection : 2V55.
#define PWR_PVDLEVEL_1
Programmable voltage detector level 1 selection : 2V1.
#define PWR_PVDLEVEL_7
External input analog voltage (Compare internally to VREF).
#define PWR_PVDLEVEL_5
Programmable voltage detector level 5 selection : 2V7.
#define PWR_PVDLEVEL_6
Programmable voltage detector level 6 selection : 2V85.
#define PWR_PVDLEVEL_3
Programmable voltage detector level 3 selection : 2V4.
#define PWR_PVDLEVEL_2
Programmable voltage detector level 2 selection : 2V25.
#define PWR_PVDLEVEL_0
Programmable voltage detector level 0 selection : 1V95.

Definition at line 753 of file stm32h7xx_hal_pwr.h.

◆ 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
Interrupt Mode with Rising edge trigger detection.
#define PWR_PVD_MODE_EVENT_RISING
Event Mode with Rising edge trigger detection.
#define PWR_PVD_MODE_NORMAL
Basic mode is used.
#define PWR_PVD_MODE_EVENT_RISING_FALLING
Event Mode with Rising/Falling edge trigger detection.
#define PWR_PVD_MODE_EVENT_FALLING
Event Mode with Falling edge trigger detection.
#define PWR_PVD_MODE_IT_FALLING
Interrupt Mode with Falling edge trigger detection.
#define PWR_PVD_MODE_IT_RISING_FALLING
Interrupt Mode with Rising/Falling edge trigger detection.

Definition at line 763 of file stm32h7xx_hal_pwr.h.

◆ IS_PWR_REGULATOR

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

Definition at line 772 of file stm32h7xx_hal_pwr.h.

◆ 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) || \
#define PWR_REGULATOR_VOLTAGE_SCALE1
#define PWR_REGULATOR_VOLTAGE_SCALE0
#define PWR_REGULATOR_VOLTAGE_SCALE2
#define PWR_REGULATOR_VOLTAGE_SCALE3

Definition at line 784 of file stm32h7xx_hal_pwr.h.

◆ IS_PWR_SLEEP_ENTRY

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

Definition at line 776 of file stm32h7xx_hal_pwr.h.

◆ IS_PWR_STOP_ENTRY

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

Definition at line 780 of file stm32h7xx_hal_pwr.h.