STM32L443xx HAL User Manual
Defines | Functions
stm32l4xx_hal_pwr.c File Reference

PWR HAL module driver. This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral: + Initialization/de-initialization functions + Peripheral Control functions. More...

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Defines

#define PVD_MODE_IT   ((uint32_t)0x00010000)
#define PVD_MODE_EVT   ((uint32_t)0x00020000)
#define PVD_RISING_EDGE   ((uint32_t)0x00000001)
#define PVD_FALLING_EDGE   ((uint32_t)0x00000002)

Functions

void HAL_PWR_DeInit (void)
 Deinitialize the HAL PWR peripheral registers to their default reset values.
void HAL_PWR_EnableBkUpAccess (void)
 Enable access to the backup domain (RTC registers, RTC backup data registers).
void HAL_PWR_DisableBkUpAccess (void)
 Disable access to the backup domain (RTC registers, RTC backup data registers).
HAL_StatusTypeDef HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
 Configure the voltage threshold detected by the Power Voltage Detector (PVD).
void HAL_PWR_EnablePVD (void)
 Enable the Power Voltage Detector (PVD).
void HAL_PWR_DisablePVD (void)
 Disable the Power Voltage Detector (PVD).
void HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinPolarity)
 Enable the WakeUp PINx functionality.
void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx)
 Disable the WakeUp PINx functionality.
void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry)
 Enter Sleep or Low-power Sleep mode.
void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry)
 Enter Stop mode.
void HAL_PWR_EnterSTANDBYMode (void)
 Enter Standby mode.
void HAL_PWR_EnableSleepOnExit (void)
 Indicate Sleep-On-Exit when returning from Handler mode to Thread mode.
void HAL_PWR_DisableSleepOnExit (void)
 Disable Sleep-On-Exit feature when returning from Handler mode to Thread mode.
void HAL_PWR_EnableSEVOnPend (void)
 Enable CORTEX M4 SEVONPEND bit.
void HAL_PWR_DisableSEVOnPend (void)
 Disable CORTEX M4 SEVONPEND bit.
__weak void HAL_PWR_PVDCallback (void)
 PWR PVD interrupt callback.

Detailed Description

PWR HAL module driver. This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral: + Initialization/de-initialization functions + Peripheral Control functions.

Author:
MCD Application Team
Attention:

Copyright (c) 2019 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 stm32l4xx_hal_pwr.c.