Macros
PWR Private Macros
Peripheral Driver » HAL Driver » PWR | Peripheral Driver » LL Driver » SLP_TIM » Defines

## Macros
#define | IS_PWR_WAKEUP_CONDITION(__COND__)
| Check if PWR wakeup condition is valid. More...
#define | IS_PWR_MEM_BLOCK(__BLOCK__)
| Check if PWR memory block is valid. More...
#define | IS_PWR_MEM_POWER_STAT(__STATE__)
| Check if PWR memory power state is valid. More...
#define | IS_PWR_PWR_TIMER_TYPE(__TYPE__)
| Check if PWR sleep timer type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_PWR_MEM_BLOCK

#define IS_PWR_MEM_BLOCK | ( |  | __BLOCK__ | ) |

Value:
((((__BLOCK__) & PWR_MEM_ALL) != 0x00U) &&\
(((__BLOCK__) & ~PWR_MEM_ALL) == 0x00U))

Check if PWR memory block is valid.

Parameters

  __BLOCK__ | PWR memory block.

Return values

  SET | (__BLOCK__ is valid) or RESET (__BLOCK__ is invalid)

Definition at line 140 of file hal_pwr.h.

## ◆ IS_PWR_MEM_POWER_STAT

#define IS_PWR_MEM_POWER_STAT | ( |  | __STATE__ | ) |

Value:
(((__STATE__) == PWR_MEM_POWER_OFF) || \
((__STATE__) == PWR_MEM_POWER_FULL) || \
((__STATE__) == PWR_MEM_POWER_RETENTION))

Check if PWR memory power state is valid.

Parameters

  __STATE__ | PWR memory power state.

Return values

  SET | (__STATE__ is valid) or RESET (__STATE__ is invalid)

Definition at line 148 of file hal_pwr.h.

## ◆ IS_PWR_PWR_TIMER_TYPE

#define IS_PWR_PWR_TIMER_TYPE | ( |  | __TYPE__ | ) |

Value:
(((__TYPE__) == PWR_TIMER_TYPE_CAL_TIMER) || \
((__TYPE__) == PWR_TIMER_TYPE_AON_WDT) || \
((__TYPE__) == PWR_TIMER_TYPE_SLP_TIMER) || \
((__TYPE__) == PWR_TIMER_TYPE_CAL_ALARM))

Check if PWR sleep timer type is valid.

Parameters

  __TYPE__ | PWR sleep timer type.

Return values

  SET | (__TYPE__ is valid) or RESET (__TYPE__ is invalid)

Definition at line 157 of file hal_pwr.h.

## ◆ IS_PWR_WAKEUP_CONDITION

#define IS_PWR_WAKEUP_CONDITION | ( |  | __COND__ | ) |

Value:
((((__COND__) & PWR_WKUP_COND_ALL) != 0x00U) &&\
(((__COND__) & ~PWR_WKUP_COND_ALL) == 0x00U))

Check if PWR wakeup condition is valid.

Parameters

  __COND__ | PWR wakeup condition.

Return values

  SET | (__COND__ is valid) or RESET (__COND__ is invalid)

Definition at line 132 of file hal_pwr.h.

PWR_WKUP_COND_ALL
#define PWR_WKUP_COND_ALL
Definition: hal_pwr.h:87
PWR_TIMER_TYPE_CAL_TIMER
#define PWR_TIMER_TYPE_CAL_TIMER
Definition: hal_pwr.h:96
PWR_MEM_POWER_FULL
#define PWR_MEM_POWER_FULL
Definition: hal_pwr.h:109
PWR_TIMER_TYPE_SLP_TIMER
#define PWR_TIMER_TYPE_SLP_TIMER
Definition: hal_pwr.h:98
PWR_TIMER_TYPE_AON_WDT
#define PWR_TIMER_TYPE_AON_WDT
Definition: hal_pwr.h:97
PWR_MEM_POWER_RETENTION
#define PWR_MEM_POWER_RETENTION
Definition: hal_pwr.h:110
PWR_TIMER_TYPE_CAL_ALARM
#define PWR_TIMER_TYPE_CAL_ALARM
Definition: hal_pwr.h:99
PWR_MEM_POWER_OFF
#define PWR_MEM_POWER_OFF
Definition: hal_pwr.h:108