Hal Drivers for L4

Dependents:   BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo

Fork of STM32L4xx_HAL_Driver by Senior Design: Sound Monitor

Embed: (wiki syntax)

« Back to documentation index

stm32l4xx_ll_pwr.h File Reference

stm32l4xx_ll_pwr.h File Reference

Header file of PWR LL module. More...

Go to the source code of this file.

Functions

__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode (void)
 Switch the regulator from main mode to low-power mode CR1 LPR LL_PWR_EnableLowPowerRunMode.
__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode (void)
 Switch the regulator from low-power mode to main mode CR1 LPR LL_PWR_DisableLowPowerRunMode.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode (void)
 Check if the regulator is in low-power mode CR1 LPR LL_PWR_IsEnabledLowPowerRunMode.
__STATIC_INLINE void LL_PWR_SetRegulVoltageScaling (uint32_t VoltageScaling)
 Set the main internal regulator output voltage CR1 VOS LL_PWR_SetRegulVoltageScaling.
__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling (void)
 Get the main internal regulator output voltage CR1 VOS LL_PWR_GetRegulVoltageScaling.
__STATIC_INLINE void LL_PWR_EnableBkUpAccess (void)
 Enable access to the backup domain CR1 DBP LL_PWR_EnableBkUpAccess.
__STATIC_INLINE void LL_PWR_DisableBkUpAccess (void)
 Disable access to the backup domain CR1 DBP LL_PWR_DisableBkUpAccess.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess (void)
 Check if the backup domain is enabled CR1 DBP LL_PWR_IsEnabledBkUpAccess.
__STATIC_INLINE void LL_PWR_SetPowerMode (uint32_t LowPowerMode)
 Set Low-Power mode CR1 LPMS LL_PWR_SetPowerMode.
__STATIC_INLINE uint32_t LL_PWR_GetPowerMode (void)
 Get Low-Power mode CR1 LPMS LL_PWR_GetPowerMode.
__STATIC_INLINE void LL_PWR_EnableVddUSB (void)
 Enable VDDUSB supply CR2 USV LL_PWR_EnableVddUSB.
__STATIC_INLINE void LL_PWR_DisableVddUSB (void)
 Disable VDDUSB supply CR2 USV LL_PWR_DisableVddUSB.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB (void)
 Check if VDDUSB supply is enabled CR2 USV LL_PWR_IsEnabledVddUSB.
__STATIC_INLINE void LL_PWR_EnableVddIO2 (void)
 Enable VDDIO2 supply CR2 IOSV LL_PWR_EnableVddIO2.
__STATIC_INLINE void LL_PWR_DisableVddIO2 (void)
 Disable VDDIO2 supply CR2 IOSV LL_PWR_DisableVddIO2.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 (void)
 Check if VDDIO2 supply is enabled CR2 IOSV LL_PWR_IsEnabledVddIO2.
__STATIC_INLINE void LL_PWR_EnablePVM (uint32_t PeriphVoltage)
 Enable the Power Voltage Monitoring on a peripheral CR2 PVME1 LL_PWR_EnablePVM
CR2 PVME2 LL_PWR_EnablePVM
CR2 PVME3 LL_PWR_EnablePVM
CR2 PVME4 LL_PWR_EnablePVM.
__STATIC_INLINE void LL_PWR_DisablePVM (uint32_t PeriphVoltage)
 Disable the Power Voltage Monitoring on a peripheral CR2 PVME1 LL_PWR_DisablePVM
CR2 PVME2 LL_PWR_DisablePVM
CR2 PVME3 LL_PWR_DisablePVM
CR2 PVME4 LL_PWR_DisablePVM.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVM (uint32_t PeriphVoltage)
 Check if Power Voltage Monitoring is enabled on a peripheral CR2 PVME1 LL_PWR_IsEnabledPVM
CR2 PVME2 LL_PWR_IsEnabledPVM
CR2 PVME3 LL_PWR_IsEnabledPVM
CR2 PVME4 LL_PWR_IsEnabledPVM.
__STATIC_INLINE void LL_PWR_SetPVDLevel (uint32_t PVDLevel)
 Configure the voltage threshold detected by the Power Voltage Detector CR2 PLS LL_PWR_SetPVDLevel.
__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel (void)
 Get the voltage threshold detection CR2 PLS LL_PWR_GetPVDLevel.
__STATIC_INLINE void LL_PWR_EnablePVD (void)
 Enable Power Voltage Detector CR2 PVDE LL_PWR_EnablePVD.
__STATIC_INLINE void LL_PWR_DisablePVD (void)
 Disable Power Voltage Detector CR2 PVDE LL_PWR_DisablePVD.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD (void)
 Check if Power Voltage Detector is enabled CR2 PVDE LL_PWR_IsEnabledPVD.
__STATIC_INLINE void LL_PWR_EnableInternWU (void)
 Enable Internal Wake-up line CR3 EIWF LL_PWR_EnableInternWU.
__STATIC_INLINE void LL_PWR_DisableInternWU (void)
 Disable Internal Wake-up line CR3 EIWF LL_PWR_DisableInternWU.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU (void)
 Check if Internal Wake-up line is enabled CR3 EIWF LL_PWR_IsEnabledInternWU.
__STATIC_INLINE void LL_PWR_EnablePUPDCfg (void)
 Enable pull-up and pull-down configuration CR3 APC LL_PWR_EnablePUPDCfg.
__STATIC_INLINE void LL_PWR_DisablePUPDCfg (void)
 Disable pull-up and pull-down configuration CR3 APC LL_PWR_DisablePUPDCfg.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg (void)
 Check if pull-up and pull-down configuration is enabled CR3 APC LL_PWR_IsEnabledPUPDCfg.
__STATIC_INLINE void LL_PWR_EnableSRAM2Retention (void)
 Enable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_EnableSRAM2Retention.
__STATIC_INLINE void LL_PWR_DisableSRAM2Retention (void)
 Disable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_DisableSRAM2Retention.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention (void)
 Check if SRAM2 content retention in Standby mode is enabled CR3 RRS LL_PWR_IsEnabledSRAM2Retention.
__STATIC_INLINE void LL_PWR_EnableWakeUpPin (uint32_t WakeUpPin)
 Enable the WakeUp PINx functionality CR3 EWUP1 LL_PWR_EnableWakeUpPin
CR3 EWUP2 LL_PWR_EnableWakeUpPin
CR3 EWUP3 LL_PWR_EnableWakeUpPin
CR3 EWUP4 LL_PWR_EnableWakeUpPin
CR3 EWUP5 LL_PWR_EnableWakeUpPin.
__STATIC_INLINE void LL_PWR_DisableWakeUpPin (uint32_t WakeUpPin)
 Disable the WakeUp PINx functionality CR3 EWUP1 LL_PWR_DisableWakeUpPin
CR3 EWUP2 LL_PWR_DisableWakeUpPin
CR3 EWUP3 LL_PWR_DisableWakeUpPin
CR3 EWUP4 LL_PWR_DisableWakeUpPin
CR3 EWUP5 LL_PWR_DisableWakeUpPin.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledWakeUpPin (uint32_t WakeUpPin)
 Check if the WakeUp PINx functionality is enabled CR3 EWUP1 LL_PWR_IsEnabledWakeUpPin
CR3 EWUP2 LL_PWR_IsEnabledWakeUpPin
CR3 EWUP3 LL_PWR_IsEnabledWakeUpPin
CR3 EWUP4 LL_PWR_IsEnabledWakeUpPin
CR3 EWUP5 LL_PWR_IsEnabledWakeUpPin.
__STATIC_INLINE void LL_PWR_SetBattChargResistor (uint32_t Resistor)
 Set the resistor impedance CR4 VBRS LL_PWR_SetBattChargResistor.
__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor (void)
 Get the resistor impedance CR4 VBRS LL_PWR_GetBattChargResistor.
__STATIC_INLINE void LL_PWR_EnableBatteryCharging (void)
 Enable battery charging CR4 VBE LL_PWR_EnableBatteryCharging.
__STATIC_INLINE void LL_PWR_DisableBatteryCharging (void)
 Disable battery charging CR4 VBE LL_PWR_DisableBatteryCharging.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging (void)
 Check if battery charging is enabled CR4 VBE LL_PWR_IsEnabledBatteryCharging.
__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityLow (uint32_t WakeUpPin)
 Set the Wake-Up pin polarity low for the event detection CR4 WP1 LL_PWR_SetWakeUpPinPolarityLow
CR4 WP2 LL_PWR_SetWakeUpPinPolarityLow
CR4 WP3 LL_PWR_SetWakeUpPinPolarityLow
CR4 WP4 LL_PWR_SetWakeUpPinPolarityLow
CR4 WP5 LL_PWR_SetWakeUpPinPolarityLow.
__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityHigh (uint32_t WakeUpPin)
 Set the Wake-Up pin polarity high for the event detection CR4 WP1 LL_PWR_SetWakeUpPinPolarityHigh
CR4 WP2 LL_PWR_SetWakeUpPinPolarityHigh
CR4 WP3 LL_PWR_SetWakeUpPinPolarityHigh
CR4 WP4 LL_PWR_SetWakeUpPinPolarityHigh
CR4 WP5 LL_PWR_SetWakeUpPinPolarityHigh.
__STATIC_INLINE uint32_t LL_PWR_IsWakeUpPinPolarityLow (uint32_t WakeUpPin)
 Get the Wake-Up pin polarity for the event detection CR4 WP1 LL_PWR_IsWakeUpPinPolarityLow
CR4 WP2 LL_PWR_IsWakeUpPinPolarityLow
CR4 WP3 LL_PWR_IsWakeUpPinPolarityLow
CR4 WP4 LL_PWR_IsWakeUpPinPolarityLow
CR4 WP5 LL_PWR_IsWakeUpPinPolarityLow.
__STATIC_INLINE void LL_PWR_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-up state in Standby and Shutdown modes PUCRA PU0-15 LL_PWR_EnableGPIOPullUp
PUCRB PU0-15 LL_PWR_EnableGPIOPullUp
PUCRC PU0-15 LL_PWR_EnableGPIOPullUp
PUCRD PU0-15 LL_PWR_EnableGPIOPullUp
PUCRE PU0-15 LL_PWR_EnableGPIOPullUp
PUCRF PU0-15 LL_PWR_EnableGPIOPullUp
PUCRG PU0-15 LL_PWR_EnableGPIOPullUp
PUCRH PU0-1 LL_PWR_EnableGPIOPullUp.
__STATIC_INLINE void LL_PWR_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-up state in Standby and Shutdown modes PUCRA PU0-15 LL_PWR_DisableGPIOPullUp
PUCRB PU0-15 LL_PWR_DisableGPIOPullUp
PUCRC PU0-15 LL_PWR_DisableGPIOPullUp
PUCRD PU0-15 LL_PWR_DisableGPIOPullUp
PUCRE PU0-15 LL_PWR_DisableGPIOPullUp
PUCRF PU0-15 LL_PWR_DisableGPIOPullUp
PUCRG PU0-15 LL_PWR_DisableGPIOPullUp
PUCRH PU0-1 LL_PWR_DisableGPIOPullUp.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Check if GPIO pull-up state is enabled PUCRA PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRB PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRC PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRD PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRE PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRF PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRG PU0-15 LL_PWR_IsEnabledGPIOPullUp
PUCRH PU0-1 LL_PWR_IsEnabledGPIOPullUp.
__STATIC_INLINE void LL_PWR_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-down state in Standby and Shutdown modes PDCRA PD0-15 LL_PWR_EnableGPIOPullDown
PDCRB PD0-15 LL_PWR_EnableGPIOPullDown
PDCRC PD0-15 LL_PWR_EnableGPIOPullDown
PDCRD PD0-15 LL_PWR_EnableGPIOPullDown
PDCRE PD0-15 LL_PWR_EnableGPIOPullDown
PDCRF PD0-15 LL_PWR_EnableGPIOPullDown
PDCRG PD0-15 LL_PWR_EnableGPIOPullDown
PDCRH PD0-1 LL_PWR_EnableGPIOPullDown.
__STATIC_INLINE void LL_PWR_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-down state in Standby and Shutdown modes PDCRA PD0-15 LL_PWR_DisableGPIOPullDown
PDCRB PD0-15 LL_PWR_DisableGPIOPullDown
PDCRC PD0-15 LL_PWR_DisableGPIOPullDown
PDCRD PD0-15 LL_PWR_DisableGPIOPullDown
PDCRE PD0-15 LL_PWR_DisableGPIOPullDown
PDCRF PD0-15 LL_PWR_DisableGPIOPullDown
PDCRG PD0-15 LL_PWR_DisableGPIOPullDown
PDCRH PD0-1 LL_PWR_DisableGPIOPullDown.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Check if GPIO pull-down state is enabled PDCRA PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRB PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRC PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRD PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRE PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRF PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRG PD0-15 LL_PWR_IsEnabledGPIOPullDown
PDCRH PD0-1 LL_PWR_IsEnabledGPIOPullDown.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_InternWU (void)
 Get Internal Wake-up line Flag SR1 WUFI LL_PWR_IsActiveFlag_InternWU.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SB (void)
 Get Stand-By Flag SR1 SBF LL_PWR_IsActiveFlag_SB.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5 (void)
 Get Wake-up Flag 5 SR1 WUF5 LL_PWR_IsActiveFlag_WU5.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4 (void)
 Get Wake-up Flag 4 SR1 WUF4 LL_PWR_IsActiveFlag_WU4.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3 (void)
 Get Wake-up Flag 3 SR1 WUF3 LL_PWR_IsActiveFlag_WU3.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2 (void)
 Get Wake-up Flag 2 SR1 WUF2 LL_PWR_IsActiveFlag_WU2.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1 (void)
 Get Wake-up Flag 1 SR1 WUF1 LL_PWR_IsActiveFlag_WU1.
__STATIC_INLINE void LL_PWR_ClearFlag_SB (void)
 Clear Stand-By Flag SCR CSBF LL_PWR_ClearFlag_SB.
__STATIC_INLINE void LL_PWR_ClearFlag_WU (void)
 Clear Wake-up Flags SCR CWUF LL_PWR_ClearFlag_WU.
__STATIC_INLINE void LL_PWR_ClearFlag_WU5 (void)
 Clear Wake-up Flag 5 SCR CWUF5 LL_PWR_ClearFlag_WU5.
__STATIC_INLINE void LL_PWR_ClearFlag_WU4 (void)
 Clear Wake-up Flag 4 SCR CWUF4 LL_PWR_ClearFlag_WU4.
__STATIC_INLINE void LL_PWR_ClearFlag_WU3 (void)
 Clear Wake-up Flag 3 SCR CWUF3 LL_PWR_ClearFlag_WU3.
__STATIC_INLINE void LL_PWR_ClearFlag_WU2 (void)
 Clear Wake-up Flag 2 SCR CWUF2 LL_PWR_ClearFlag_WU2.
__STATIC_INLINE void LL_PWR_ClearFlag_WU1 (void)
 Clear Wake-up Flag 1 SCR CWUF1 LL_PWR_ClearFlag_WU1.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO4 (void)
 Indicate whether VDDA voltage is below or above PVM4 threshold SR2 PVMO4 LL_PWR_IsActiveFlag_PVMO4.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO3 (void)
 Indicate whether VDDA voltage is below or above PVM3 threshold SR2 PVMO3 LL_PWR_IsActiveFlag_PVMO3.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO2 (void)
 Indicate whether VDDIO2 voltage is below or above PVM2 threshold SR2 PVMO2 LL_PWR_IsActiveFlag_PVMO2.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO1 (void)
 Indicate whether VDDUSB voltage is below or above PVM1 threshold SR2 PVMO1 LL_PWR_IsActiveFlag_PVMO1.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVDO (void)
 Indicate whether VDD voltage is below or above the selected PVD threshold SR2 PVDO LL_PWR_IsActiveFlag_PVDO.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VOSF (void)
 Indicate whether the regulator is ready in the selected voltage range or if its output voltage is still changing to the required voltage level SR2 VOSF LL_PWR_IsActiveFlag_VOSF.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPF (void)
 Indicate whether the regulator is ready in main mode or is in low-power mode.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPS (void)
 Indicate whether or not the low-power regulator is ready SR2 REGLPS LL_PWR_IsActiveFlag_REGLPS.

Detailed Description

Header file of PWR LL module.

Author:
MCD Application Team
Version:
V1.1.0
Date:
16-September-2015
Attention:

© COPYRIGHT(c) 2015 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 stm32l4xx_ll_pwr.h.