STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
stm32h7xx_hal_pwr.h File Reference

Header file of PWR HAL module. More...

Include dependency graph for stm32h7xx_hal_pwr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PWR_PVDTypeDef
 PWR PVD configuration structure definition. More...

Macros

#define PWR_PVDLEVEL_0   PWR_CR1_PLS_LEV0
 Programmable voltage detector level 0 selection : 1V95.
#define PWR_PVDLEVEL_1   PWR_CR1_PLS_LEV1
 Programmable voltage detector level 1 selection : 2V1.
#define PWR_PVDLEVEL_2   PWR_CR1_PLS_LEV2
 Programmable voltage detector level 2 selection : 2V25.
#define PWR_PVDLEVEL_3   PWR_CR1_PLS_LEV3
 Programmable voltage detector level 3 selection : 2V4.
#define PWR_PVDLEVEL_4   PWR_CR1_PLS_LEV4
 Programmable voltage detector level 4 selection : 2V55.
#define PWR_PVDLEVEL_5   PWR_CR1_PLS_LEV5
 Programmable voltage detector level 5 selection : 2V7.
#define PWR_PVDLEVEL_6   PWR_CR1_PLS_LEV6
 Programmable voltage detector level 6 selection : 2V85.
#define PWR_PVDLEVEL_7   PWR_CR1_PLS_LEV7
 External input analog voltage (Compare internally to VREF).
#define PWR_PVD_MODE_NORMAL   (0x00000000U)
 Basic mode is used.
#define PWR_PVD_MODE_IT_RISING   (0x00010001U)
 Interrupt Mode with Rising edge trigger detection.
#define PWR_PVD_MODE_IT_FALLING   (0x00010002U)
 Interrupt Mode with Falling edge trigger detection.
#define PWR_PVD_MODE_IT_RISING_FALLING   (0x00010003U)
 Interrupt Mode with Rising/Falling edge trigger detection.
#define PWR_PVD_MODE_EVENT_RISING   (0x00020001U)
 Event Mode with Rising edge trigger detection.
#define PWR_PVD_MODE_EVENT_FALLING   (0x00020002U)
 Event Mode with Falling edge trigger detection.
#define PWR_PVD_MODE_EVENT_RISING_FALLING   (0x00020003U)
 Event Mode with Rising/Falling edge trigger detection.
#define PWR_MAINREGULATOR_ON   (0U)
#define PWR_LOWPOWERREGULATOR_ON   PWR_CR1_LPDS
#define PWR_SLEEPENTRY_WFI   (0x01U)
#define PWR_SLEEPENTRY_WFE   (0x02U)
#define PWR_STOPENTRY_WFI   (0x01U)
#define PWR_STOPENTRY_WFE   (0x02U)
#define PWR_REGULATOR_VOLTAGE_SCALE0   (0U)
#define PWR_REGULATOR_VOLTAGE_SCALE1   (PWR_D3CR_VOS_1 | PWR_D3CR_VOS_0)
#define PWR_REGULATOR_VOLTAGE_SCALE2   (PWR_D3CR_VOS_1)
#define PWR_REGULATOR_VOLTAGE_SCALE3   (PWR_D3CR_VOS_0)
#define PWR_FLAG_STOP   (0x01U)
#define PWR_FLAG_SB   (0x04U)
#define PWR_FLAG_PVDO   (0x0BU)
#define PWR_FLAG_AVDO   (0x0CU)
#define PWR_FLAG_ACTVOSRDY   (0x0DU)
#define PWR_FLAG_ACTVOS   (0x0EU)
#define PWR_FLAG_BRR   (0x0FU)
#define PWR_FLAG_VOSRDY   (0x10U)
#define PWR_FLAG_SCUEN   (0x11U)
#define PWR_FLAG_USB33RDY   (0x13U)
#define PWR_FLAG_TEMPH   (0x14U)
#define PWR_FLAG_TEMPL   (0x15U)
#define PWR_FLAG_VBATH   (0x16U)
#define PWR_FLAG_VBATL   (0x17U)
#define PWR_FLAG_WKUP1   PWR_WKUPCR_WKUPC1
#define PWR_FLAG_WKUP2   PWR_WKUPCR_WKUPC2
#define PWR_FLAG_WKUP3   PWR_WKUPCR_WKUPC3
#define PWR_FLAG_WKUP4   PWR_WKUPCR_WKUPC4
#define PWR_FLAG_WKUP5   PWR_WKUPCR_WKUPC5
#define PWR_FLAG_WKUP6   PWR_WKUPCR_WKUPC6
#define PWR_EWUP_MASK   (0x0FFF3F3FU)
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
 Configure the main internal regulator output voltage.
#define __HAL_PWR_GET_FLAG(__FLAG__)
 Check PWR flags are set or not.
#define __HAL_PWR_GET_WAKEUPFLAG(__FLAG__)
 Check PWR wake up flags are set or not.
#define __HAL_PWR_CLEAR_FLAG(__FLAG__)
 Clear CPU PWR flags.
#define __HAL_PWR_CLEAR_WAKEUPFLAG(__FLAG__)
 Clear PWR wake up flags.
#define __HAL_PWR_PVD_EXTI_ENABLE_IT()
 Enable the PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_DISABLE_IT()
 Disable the PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_ENABLE_EVENT()
 Enable event on PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_DISABLE_EVENT()
 Disable event on PVD EXTI Line 16.
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_EDGE()
 Enable the PVD Rising Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_EDGE()
 Disable the PVD Rising Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_ENABLE_FALLING_EDGE()
 Enable the PVD Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_FALLING_EDGE()
 Disable the PVD Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_ENABLE_RISING_FALLING_EDGE()
 Enable the PVD Rising & Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVD Rising & Falling Interrupt Trigger.
#define __HAL_PWR_PVD_EXTI_GET_FLAG()
 Check whether the specified PVD EXTI interrupt flag is set or not.
#define __HAL_PWR_PVD_EXTI_CLEAR_FLAG()
 Clear the PVD EXTI flag.
#define __HAL_PWR_PVD_EXTI_GENERATE_SWIT()
 Generates a Software interrupt on PVD EXTI line.
#define PWR_EXTI_LINE_PVD   EXTI_IMR1_IM16
 External interrupt line 16 Connected to the PVD EXTI Line.
#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)

Functions

void HAL_PWR_DeInit (void)
void HAL_PWR_EnableBkUpAccess (void)
void HAL_PWR_DisableBkUpAccess (void)
void HAL_PWR_ConfigPVD (const PWR_PVDTypeDef *sConfigPVD)
void HAL_PWR_EnablePVD (void)
void HAL_PWR_DisablePVD (void)
void HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity)
void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx)
void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry)
void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry)
void HAL_PWR_EnterSTANDBYMode (void)
void HAL_PWR_PVD_IRQHandler (void)
void HAL_PWR_PVDCallback (void)
void HAL_PWR_EnableSleepOnExit (void)
void HAL_PWR_DisableSleepOnExit (void)
void HAL_PWR_EnableSEVOnPend (void)
void HAL_PWR_DisableSEVOnPend (void)

Detailed Description

Header file of PWR HAL module.

Author
MCD Application Team
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32h7xx_hal_pwr.h.