STM32L4xx_HAL_Driver  1.14.0
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: More...

Go to the source code of this file.

Functions

uint32_t HAL_PWREx_GetVoltageRange (void)
 Return Voltage Scaling Range. More...
 
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling)
 Configure the main internal regulator output voltage. More...
 
void HAL_PWREx_EnableBatteryCharging (uint32_t ResistorSelection)
 Enable battery charging. When VDD is present, charge the external battery on VBAT thru an internal resistor. More...
 
void HAL_PWREx_DisableBatteryCharging (void)
 Disable battery charging. More...
 
void HAL_PWREx_EnableVddUSB (void)
 Enable VDDUSB supply. More...
 
void HAL_PWREx_DisableVddUSB (void)
 Disable VDDUSB supply. More...
 
void HAL_PWREx_EnableVddIO2 (void)
 Enable VDDIO2 supply. More...
 
void HAL_PWREx_DisableVddIO2 (void)
 Disable VDDIO2 supply. More...
 
void HAL_PWREx_EnableInternalWakeUpLine (void)
 Enable Internal Wake-up Line. More...
 
void HAL_PWREx_DisableInternalWakeUpLine (void)
 Disable Internal Wake-up Line. More...
 
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-up state in Standby and Shutdown modes. More...
 
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-up state in Standby mode and Shutdown modes. More...
 
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-down state in Standby and Shutdown modes. More...
 
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-down state in Standby and Shutdown modes. More...
 
void HAL_PWREx_EnablePullUpPullDownConfig (void)
 Enable pull-up and pull-down configuration. More...
 
void HAL_PWREx_DisablePullUpPullDownConfig (void)
 Disable pull-up and pull-down configuration. More...
 
void HAL_PWREx_EnableSRAM2ContentRetention (void)
 Enable SRAM2 content retention in Standby mode. More...
 
void HAL_PWREx_DisableSRAM2ContentRetention (void)
 Disable SRAM2 content retention in Standby mode. More...
 
void HAL_PWREx_EnableBORPVD_ULP (void)
 Enable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes. More...
 
void HAL_PWREx_DisableBORPVD_ULP (void)
 Disable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes. More...
 
void HAL_PWREx_EnableExtSMPS_0V95 (void)
 Enable the CFLDO working @ 0.95V. More...
 
void HAL_PWREx_DisableExtSMPS_0V95 (void)
 Disable the CFLDO working @ 0.95V. More...
 
void HAL_PWREx_EnableSRAM3ContentRetention (void)
 Enable SRAM3 content retention in Stop 2 mode. More...
 
void HAL_PWREx_DisableSRAM3ContentRetention (void)
 Disable SRAM3 content retention in Stop 2 mode. More...
 
void HAL_PWREx_EnableDSIPinsPDActivation (void)
 Enable pull-down activation on DSI pins. More...
 
void HAL_PWREx_DisableDSIPinsPDActivation (void)
 Disable pull-down activation on DSI pins. More...
 
void HAL_PWREx_EnablePVM1 (void)
 Enable the Power Voltage Monitoring 1: VDDUSB versus 1.2V. More...
 
void HAL_PWREx_DisablePVM1 (void)
 Disable the Power Voltage Monitoring 1: VDDUSB versus 1.2V. More...
 
void HAL_PWREx_EnablePVM2 (void)
 Enable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V. More...
 
void HAL_PWREx_DisablePVM2 (void)
 Disable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V. More...
 
void HAL_PWREx_EnablePVM3 (void)
 Enable the Power Voltage Monitoring 3: VDDA versus 1.62V. More...
 
void HAL_PWREx_DisablePVM3 (void)
 Disable the Power Voltage Monitoring 3: VDDA versus 1.62V. More...
 
void HAL_PWREx_EnablePVM4 (void)
 Enable the Power Voltage Monitoring 4: VDDA versus 2.2V. More...
 
void HAL_PWREx_DisablePVM4 (void)
 Disable the Power Voltage Monitoring 4: VDDA versus 2.2V. More...
 
HAL_StatusTypeDef HAL_PWREx_ConfigPVM (PWR_PVMTypeDef *sConfigPVM)
 Configure the Peripheral Voltage Monitoring (PVM). More...
 
void HAL_PWREx_EnableLowPowerRunMode (void)
 Enter Low-power Run mode. More...
 
HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode (void)
 Exit Low-power Run mode. More...
 
void HAL_PWREx_EnterSTOP0Mode (uint8_t STOPEntry)
 Enter Stop 0 mode. More...
 
void HAL_PWREx_EnterSTOP1Mode (uint8_t STOPEntry)
 Enter Stop 1 mode. More...
 
void HAL_PWREx_EnterSTOP2Mode (uint8_t STOPEntry)
 Enter Stop 2 mode. More...
 
void HAL_PWREx_EnterSHUTDOWNMode (void)
 Enter Shutdown mode. More...
 
void HAL_PWREx_PVD_PVM_IRQHandler (void)
 This function handles the PWR PVD/PVMx interrupt request. More...
 
void HAL_PWREx_PVM1Callback (void)
 PWR PVM1 interrupt callback. More...
 
void HAL_PWREx_PVM2Callback (void)
 PWR PVM2 interrupt callback. More...
 
void HAL_PWREx_PVM3Callback (void)
 PWR PVM3 interrupt callback. More...
 
void HAL_PWREx_PVM4Callback (void)
 PWR PVM4 interrupt callback. More...
 

Detailed Description

Extended PWR HAL module driver. This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral:

Author
MCD Application Team
  • Extended Initialization and de-initialization functions
  • Extended Peripheral Control functions
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_hal_pwr_ex.c.