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

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

#include "stm32l4xx_hal.h"

Go to the source code of this file.

Defines

#define PWR_PORTH_AVAILABLE_PINS   ((uint32_t)0x0000000B) /* PH0/PH1/PH3 */
#define PVM_MODE_IT   ((uint32_t)0x00010000)
#define PVM_MODE_EVT   ((uint32_t)0x00020000)
#define PVM_RISING_EDGE   ((uint32_t)0x00000001)
#define PVM_FALLING_EDGE   ((uint32_t)0x00000002)
#define PWR_FLAG_SETTING_DELAY_US   50UL

Functions

uint32_t HAL_PWREx_GetVoltageRange (void)
 Return Voltage Scaling Range.
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling)
 Configure the main internal regulator output voltage.
void HAL_PWREx_EnableBatteryCharging (uint32_t ResistorSelection)
 Enable battery charging.
void HAL_PWREx_DisableBatteryCharging (void)
 Disable battery charging.
void HAL_PWREx_EnableVddUSB (void)
 Enable VDDUSB supply.
void HAL_PWREx_DisableVddUSB (void)
 Disable VDDUSB supply.
void HAL_PWREx_EnableInternalWakeUpLine (void)
 Enable Internal Wake-up Line.
void HAL_PWREx_DisableInternalWakeUpLine (void)
 Disable Internal Wake-up Line.
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-up state in Standby and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-up state in Standby mode and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-down state in Standby and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-down state in Standby and Shutdown modes.
void HAL_PWREx_EnablePullUpPullDownConfig (void)
 Enable pull-up and pull-down configuration.
void HAL_PWREx_DisablePullUpPullDownConfig (void)
 Disable pull-up and pull-down configuration.
void HAL_PWREx_EnableSRAM2ContentRetention (void)
 Enable Full SRAM2 content retention in Standby mode.
void HAL_PWREx_DisableSRAM2ContentRetention (void)
 Disable SRAM2 content retention in Standby mode.
HAL_StatusTypeDef HAL_PWREx_SetSRAM2ContentRetention (uint32_t SRAM2Size)
 Enable SRAM2 content retention in Standby mode.
void HAL_PWREx_EnablePVM1 (void)
 Enable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
void HAL_PWREx_DisablePVM1 (void)
 Disable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
void HAL_PWREx_EnablePVM3 (void)
 Enable the Power Voltage Monitoring 3: VDDA versus 1.62V.
void HAL_PWREx_DisablePVM3 (void)
 Disable the Power Voltage Monitoring 3: VDDA versus 1.62V.
void HAL_PWREx_EnablePVM4 (void)
 Enable the Power Voltage Monitoring 4: VDDA versus 2.2V.
void HAL_PWREx_DisablePVM4 (void)
 Disable the Power Voltage Monitoring 4: VDDA versus 2.2V.
HAL_StatusTypeDef HAL_PWREx_ConfigPVM (PWR_PVMTypeDef *sConfigPVM)
 Configure the Peripheral Voltage Monitoring (PVM).
void HAL_PWREx_EnableLowPowerRunMode (void)
 Enter Low-power Run mode.
HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode (void)
 Exit Low-power Run mode.
void HAL_PWREx_EnterSTOP0Mode (uint8_t STOPEntry)
 Enter Stop 0 mode.
void HAL_PWREx_EnterSTOP1Mode (uint8_t STOPEntry)
 Enter Stop 1 mode.
void HAL_PWREx_EnterSTOP2Mode (uint8_t STOPEntry)
 Enter Stop 2 mode.
void HAL_PWREx_EnterSHUTDOWNMode (void)
 Enter Shutdown mode.
void HAL_PWREx_PVD_PVM_IRQHandler (void)
 This function handles the PWR PVD/PVMx interrupt request.
__weak void HAL_PWREx_PVM1Callback (void)
 PWR PVM1 interrupt callback.
__weak void HAL_PWREx_PVM3Callback (void)
 PWR PVM3 interrupt callback.
__weak void HAL_PWREx_PVM4Callback (void)
 PWR PVM4 interrupt callback.

Detailed Description

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

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 stm32l4xx_hal_pwr_ex.c.