STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Macros | Functions
stm32f7xx_hal_pwr.h File Reference

Header file of PWR HAL module. More...

#include "stm32f7xx_hal_def.h"
#include "stm32f7xx_hal_pwr_ex.h"

Go to the source code of this file.

Data Structures

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

Macros

#define PWR_PVDLEVEL_0   PWR_CR1_PLS_LEV0
 
#define PWR_PVDLEVEL_1   PWR_CR1_PLS_LEV1
 
#define PWR_PVDLEVEL_2   PWR_CR1_PLS_LEV2
 
#define PWR_PVDLEVEL_3   PWR_CR1_PLS_LEV3
 
#define PWR_PVDLEVEL_4   PWR_CR1_PLS_LEV4
 
#define PWR_PVDLEVEL_5   PWR_CR1_PLS_LEV5
 
#define PWR_PVDLEVEL_6   PWR_CR1_PLS_LEV6
 
#define PWR_PVDLEVEL_7
 
#define PWR_PVD_MODE_NORMAL   ((uint32_t)0x00000000U)
 
#define PWR_PVD_MODE_IT_RISING   ((uint32_t)0x00010001U)
 
#define PWR_PVD_MODE_IT_FALLING   ((uint32_t)0x00010002U)
 
#define PWR_PVD_MODE_IT_RISING_FALLING   ((uint32_t)0x00010003U)
 
#define PWR_PVD_MODE_EVENT_RISING   ((uint32_t)0x00020001U)
 
#define PWR_PVD_MODE_EVENT_FALLING   ((uint32_t)0x00020002U)
 
#define PWR_PVD_MODE_EVENT_RISING_FALLING   ((uint32_t)0x00020003U)
 
#define PWR_MAINREGULATOR_ON   ((uint32_t)0x00000000U)
 
#define PWR_LOWPOWERREGULATOR_ON   PWR_CR1_LPDS
 
#define PWR_SLEEPENTRY_WFI   ((uint8_t)0x01U)
 
#define PWR_SLEEPENTRY_WFE   ((uint8_t)0x02U)
 
#define PWR_STOPENTRY_WFI   ((uint8_t)0x01U)
 
#define PWR_STOPENTRY_WFE   ((uint8_t)0x02U)
 
#define PWR_REGULATOR_VOLTAGE_SCALE1   PWR_CR1_VOS
 
#define PWR_REGULATOR_VOLTAGE_SCALE2   PWR_CR1_VOS_1
 
#define PWR_REGULATOR_VOLTAGE_SCALE3   PWR_CR1_VOS_0
 
#define PWR_FLAG_WU   PWR_CSR1_WUIF
 
#define PWR_FLAG_SB   PWR_CSR1_SBF
 
#define PWR_FLAG_PVDO   PWR_CSR1_PVDO
 
#define PWR_FLAG_BRR   PWR_CSR1_BRR
 
#define PWR_FLAG_VOSRDY   PWR_CSR1_VOSRDY
 
#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...
 
#define PWR_EXTI_LINE_PVD   ((uint32_t)EXTI_IMR_IM16)
 
#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))
 
#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 (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
Version
V1.1.0
Date
22-April-2016
Attention

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f7xx_hal_pwr.h.