STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
PWR Exported Macro

Macros

#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
 macros configure the main internal regulator output voltage. More...
 
#define __HAL_PWR_GET_FLAG(__FLAG__)   ((PWR->CSR1 & (__FLAG__)) == (__FLAG__))
 Check PWR flag is set or not. More...
 
#define __HAL_PWR_CLEAR_FLAG(__FLAG__)   (PWR->CR1 |= (__FLAG__) << 2)
 Clear the PWR's pending flags. More...
 
#define __HAL_PWR_PVD_EXTI_ENABLE_IT()    (EXTI->IMR |= (PWR_EXTI_LINE_PVD))
 Enable the PVD Exti Line 16. More...
 
#define __HAL_PWR_PVD_EXTI_DISABLE_IT()   (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))
 Disable the PVD EXTI Line 16. More...
 
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT()    (EXTI->EMR |= (PWR_EXTI_LINE_PVD))
 Enable event on PVD Exti Line 16. More...
 
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT()   (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))
 Disable event on PVD Exti Line 16. More...
 
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()    SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
 Enable the PVD Extended Interrupt Rising Trigger. More...
 
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()   CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)
 Disable the PVD Extended Interrupt Rising Trigger. More...
 
#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE()    SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
 Enable the PVD Extended Interrupt Falling Trigger. More...
 
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()   CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)
 Disable the PVD Extended Interrupt Falling Trigger. More...
 
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE()    __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();
 PVD EXTI line configuration: set rising & falling edge trigger. More...
 
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE()   __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();
 Disable the PVD Extended Interrupt Rising & Falling Trigger. More...
 
#define __HAL_PWR_PVD_EXTI_GET_FLAG()   (EXTI->PR & (PWR_EXTI_LINE_PVD))
 checks whether the specified PVD Exti interrupt flag is set or not. More...
 
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG()   (EXTI->PR = (PWR_EXTI_LINE_PVD))
 Clear the PVD Exti flag. More...
 
#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT()   (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))
 Generates a Software interrupt on PVD EXTI line. More...
 

Detailed Description

Macro Definition Documentation

#define __HAL_PWR_CLEAR_FLAG (   __FLAG__)    (PWR->CR1 |= (__FLAG__) << 2)

Clear the PWR's pending flags.

Parameters
<strong>FLAG</strong>specifies the flag to clear. This parameter can be one of the following values:
  • PWR_FLAG_SB: StandBy flag

Definition at line 217 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_GET_FLAG (   __FLAG__)    ((PWR->CSR1 & (__FLAG__)) == (__FLAG__))

Check PWR flag is set or not.

Parameters
<strong>FLAG</strong>specifies the flag to check. This parameter can be one of the following values:
  • PWR_FLAG_WU: Wake Up flag. This flag indicates that a wakeup event was received on the internal wakeup line in standby mode (RTC alarm (Alarm A or Alarm B), RTC Tamper event, RTC TimeStamp event or RTC Wakeup)).
  • PWR_FLAG_SB: StandBy flag. This flag indicates that the system was resumed from StandBy mode.
  • PWR_FLAG_PVDO: PVD Output. This flag is valid only if PVD is enabled by the HAL_PWR_EnablePVD() function. The PVD is stopped by Standby mode For this reason, this bit is equal to 0 after Standby or reset until the PVDE bit is set.
  • PWR_FLAG_BRR: Backup regulator ready flag. This bit is not reset when the device wakes up from Standby mode or by a system reset or power reset.
  • PWR_FLAG_VOSRDY: This flag indicates that the Regulator voltage scaling output selection is ready.
Return values
Thenew state of FLAG (TRUE or FALSE).

Definition at line 210 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG ( )    (EXTI->PR = (PWR_EXTI_LINE_PVD))

Clear the PVD Exti flag.

Return values
None.

Definition at line 291 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT ( )    (EXTI->EMR &= ~(PWR_EXTI_LINE_PVD))

Disable event on PVD Exti Line 16.

Return values
None.

Definition at line 241 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE ( )    CLEAR_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)

Disable the PVD Extended Interrupt Falling Trigger.

Return values
None.

Definition at line 266 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_DISABLE_IT ( )    (EXTI->IMR &= ~(PWR_EXTI_LINE_PVD))

Disable the PVD EXTI Line 16.

Return values
None.

Definition at line 229 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE ( )    CLEAR_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)

Disable the PVD Extended Interrupt Rising Trigger.

Return values
None.

Definition at line 253 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE ( )    __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE();

Disable the PVD Extended Interrupt Rising & Falling Trigger.

Return values
None.

Definition at line 279 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT ( )    (EXTI->EMR |= (PWR_EXTI_LINE_PVD))

Enable event on PVD Exti Line 16.

Return values
None.

Definition at line 235 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE ( )    SET_BIT(EXTI->FTSR, PWR_EXTI_LINE_PVD)

Enable the PVD Extended Interrupt Falling Trigger.

Return values
None.

Definition at line 259 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_ENABLE_IT ( )    (EXTI->IMR |= (PWR_EXTI_LINE_PVD))

Enable the PVD Exti Line 16.

Return values
None.

Definition at line 223 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE ( )    SET_BIT(EXTI->RTSR, PWR_EXTI_LINE_PVD)

Enable the PVD Extended Interrupt Rising Trigger.

Return values
None.

Definition at line 247 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE ( )    __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE();__HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE();

PVD EXTI line configuration: set rising & falling edge trigger.

Return values
None.

Definition at line 273 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT ( )    (EXTI->SWIER |= (PWR_EXTI_LINE_PVD))

Generates a Software interrupt on PVD EXTI line.

Return values
None

Definition at line 297 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_PVD_EXTI_GET_FLAG ( )    (EXTI->PR & (PWR_EXTI_LINE_PVD))

checks whether the specified PVD Exti interrupt flag is set or not.

Return values
EXTIPVD Line Status.

Definition at line 285 of file stm32f7xx_hal_pwr.h.

#define __HAL_PWR_VOLTAGESCALING_CONFIG (   __REGULATOR__)
Value:
do { \
__IO uint32_t tmpreg; \
MODIFY_REG(PWR->CR1, PWR_CR1_VOS, (__REGULATOR__)); \
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(PWR->CR1, PWR_CR1_VOS); \
UNUSED(tmpreg); \
} while(0)
#define PWR_CR1_VOS
Definition: stm32f745xx.h:4984
#define READ_BIT(REG, BIT)
Definition: stm32f7xx.h:182
#define PWR
Definition: stm32f745xx.h:1285

macros configure the main internal regulator output voltage.

Parameters
<strong>REGULATOR</strong>specifies the regulator output voltage to achieve a tradeoff between performance and power consumption when the device does not operate at the maximum frequency (refer to the datasheets for more details). This parameter can be one of the following values:
  • PWR_REGULATOR_VOLTAGE_SCALE1: Regulator voltage output Scale 1 mode
  • PWR_REGULATOR_VOLTAGE_SCALE2: Regulator voltage output Scale 2 mode
  • PWR_REGULATOR_VOLTAGE_SCALE3: Regulator voltage output Scale 3 mode
Return values
None

Definition at line 183 of file stm32f7xx_hal_pwr.h.