STM32F479xx HAL User Manual
|
Header file of PWR LL module. More...
#include "stm32f4xx.h"
Go to the source code of this file.
Defines | |
#define | LL_PWR_CR_CSBF PWR_CR_CSBF |
#define | LL_PWR_CR_CWUF PWR_CR_CWUF |
#define | LL_PWR_CSR_WUF PWR_CSR_WUF |
#define | LL_PWR_CSR_SBF PWR_CSR_SBF |
#define | LL_PWR_CSR_PVDO PWR_CSR_PVDO |
#define | LL_PWR_CSR_VOS PWR_CSR_VOSRDY |
#define | LL_PWR_CSR_EWUP1 PWR_CSR_EWUP |
#define | LL_PWR_REGU_VOLTAGE_SCALE3 (PWR_CR_VOS_0) |
#define | LL_PWR_REGU_VOLTAGE_SCALE2 (PWR_CR_VOS_1) |
#define | LL_PWR_REGU_VOLTAGE_SCALE1 (PWR_CR_VOS_0 | PWR_CR_VOS_1) /* The SCALE1 is not available for STM32F401xx devices */ |
#define | LL_PWR_MODE_STOP_MAINREGU 0x00000000U |
#define | LL_PWR_MODE_STOP_LPREGU (PWR_CR_LPDS) |
#define | LL_PWR_MODE_STOP_MAINREGU_UNDERDRIVE (PWR_CR_MRUDS | PWR_CR_FPDS) |
#define | LL_PWR_MODE_STOP_LPREGU_UNDERDRIVE (PWR_CR_LPDS | PWR_CR_LPUDS | PWR_CR_FPDS) |
#define | LL_PWR_MODE_STOP_MAINREGU_DEEPSLEEP (PWR_CR_MRLVDS | PWR_CR_FPDS) |
#define | LL_PWR_MODE_STOP_LPREGU_DEEPSLEEP (PWR_CR_LPDS | PWR_CR_LPLVDS | PWR_CR_FPDS) |
#define | LL_PWR_MODE_STANDBY (PWR_CR_PDDS) |
#define | LL_PWR_REGU_DSMODE_MAIN 0x00000000U |
#define | LL_PWR_REGU_DSMODE_LOW_POWER (PWR_CR_LPDS) |
#define | LL_PWR_PVDLEVEL_0 (PWR_CR_PLS_LEV0) |
#define | LL_PWR_PVDLEVEL_1 (PWR_CR_PLS_LEV1) |
#define | LL_PWR_PVDLEVEL_2 (PWR_CR_PLS_LEV2) |
#define | LL_PWR_PVDLEVEL_3 (PWR_CR_PLS_LEV3) |
#define | LL_PWR_PVDLEVEL_4 (PWR_CR_PLS_LEV4) |
#define | LL_PWR_PVDLEVEL_5 (PWR_CR_PLS_LEV5) |
#define | LL_PWR_PVDLEVEL_6 (PWR_CR_PLS_LEV6) |
#define | LL_PWR_PVDLEVEL_7 (PWR_CR_PLS_LEV7) |
#define | LL_PWR_WAKEUP_PIN1 (PWR_CSR_EWUP) |
#define | LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__)) |
Write a value in PWR register. | |
#define | LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__) |
Read a value in PWR register. | |
Functions | |
__STATIC_INLINE void | LL_PWR_EnableUnderDriveMode (void) |
Enable Under Drive Mode. | |
__STATIC_INLINE void | LL_PWR_DisableUnderDriveMode (void) |
Disable Under Drive Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledUnderDriveMode (void) |
Check if Under Drive Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableOverDriveSwitching (void) |
Enable Over drive switching. | |
__STATIC_INLINE void | LL_PWR_DisableOverDriveSwitching (void) |
Disable Over drive switching. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledOverDriveSwitching (void) |
Check if Over drive switching is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableOverDriveMode (void) |
Enable Over drive Mode. | |
__STATIC_INLINE void | LL_PWR_DisableOverDriveMode (void) |
Disable Over drive Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledOverDriveMode (void) |
Check if Over drive switching is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableMainRegulatorDeepSleepUDMode (void) |
Enable Main Regulator in deepsleep under-drive Mode. | |
__STATIC_INLINE void | LL_PWR_DisableMainRegulatorDeepSleepUDMode (void) |
Disable Main Regulator in deepsleep under-drive Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledMainRegulatorDeepSleepUDMode (void) |
Check if Main Regulator in deepsleep under-drive Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableLowPowerRegulatorDeepSleepUDMode (void) |
Enable Low Power Regulator in deepsleep under-drive Mode. | |
__STATIC_INLINE void | LL_PWR_DisableLowPowerRegulatorDeepSleepUDMode (void) |
Disable Low Power Regulator in deepsleep under-drive Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledLowPowerRegulatorDeepSleepUDMode (void) |
Check if Low Power Regulator in deepsleep under-drive Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableMainRegulatorLowVoltageMode (void) |
Enable Main Regulator low voltage Mode. | |
__STATIC_INLINE void | LL_PWR_DisableMainRegulatorLowVoltageMode (void) |
Disable Main Regulator low voltage Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledMainRegulatorLowVoltageMode (void) |
Check if Main Regulator low voltage Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableLowPowerRegulatorLowVoltageMode (void) |
Enable Low Power Regulator low voltage Mode. | |
__STATIC_INLINE void | LL_PWR_DisableLowPowerRegulatorLowVoltageMode (void) |
Disable Low Power Regulator low voltage Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledLowPowerRegulatorLowVoltageMode (void) |
Check if Low Power Regulator low voltage Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_SetRegulVoltageScaling (uint32_t VoltageScaling) |
Set the main internal Regulator output voltage. | |
__STATIC_INLINE uint32_t | LL_PWR_GetRegulVoltageScaling (void) |
Get the main internal Regulator output voltage. | |
__STATIC_INLINE void | LL_PWR_EnableFlashPowerDown (void) |
Enable the Flash Power Down in Stop Mode. | |
__STATIC_INLINE void | LL_PWR_DisableFlashPowerDown (void) |
Disable the Flash Power Down in Stop Mode. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledFlashPowerDown (void) |
Check if the Flash Power Down in Stop Mode is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableBkUpAccess (void) |
Enable access to the backup domain. | |
__STATIC_INLINE void | LL_PWR_DisableBkUpAccess (void) |
Disable access to the backup domain. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledBkUpAccess (void) |
Check if the backup domain is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableBkUpRegulator (void) |
Enable the backup Regulator. | |
__STATIC_INLINE void | LL_PWR_DisableBkUpRegulator (void) |
Disable the backup Regulator. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledBkUpRegulator (void) |
Check if the backup Regulator is enabled. | |
__STATIC_INLINE void | LL_PWR_SetRegulModeDS (uint32_t RegulMode) |
Set voltage Regulator mode during deep sleep mode. | |
__STATIC_INLINE uint32_t | LL_PWR_GetRegulModeDS (void) |
Get voltage Regulator mode during deep sleep mode. | |
__STATIC_INLINE void | LL_PWR_SetPowerMode (uint32_t PDMode) |
Set Power Down mode when CPU enters deepsleep. | |
__STATIC_INLINE uint32_t | LL_PWR_GetPowerMode (void) |
Get Power Down mode when CPU enters deepsleep. | |
__STATIC_INLINE void | LL_PWR_SetPVDLevel (uint32_t PVDLevel) |
Configure the voltage threshold detected by the Power Voltage Detector. | |
__STATIC_INLINE uint32_t | LL_PWR_GetPVDLevel (void) |
Get the voltage threshold detection. | |
__STATIC_INLINE void | LL_PWR_EnablePVD (void) |
Enable Power Voltage Detector. | |
__STATIC_INLINE void | LL_PWR_DisablePVD (void) |
Disable Power Voltage Detector. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledPVD (void) |
Check if Power Voltage Detector is enabled. | |
__STATIC_INLINE void | LL_PWR_EnableWakeUpPin (uint32_t WakeUpPin) |
Enable the WakeUp PINx functionality. | |
__STATIC_INLINE void | LL_PWR_DisableWakeUpPin (uint32_t WakeUpPin) |
Disable the WakeUp PINx functionality. | |
__STATIC_INLINE uint32_t | LL_PWR_IsEnabledWakeUpPin (uint32_t WakeUpPin) |
Check if the WakeUp PINx functionality is enabled. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_WU (void) |
Get Wake-up Flag. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_SB (void) |
Get Standby Flag. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_BRR (void) |
Get Backup Regulator ready Flag. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_PVDO (void) |
Indicate whether VDD voltage is below the selected PVD threshold. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_VOS (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. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_OD (void) |
Indicate whether the Over-Drive mode is ready or not. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_ODSW (void) |
Indicate whether the Over-Drive mode switching is ready or not. | |
__STATIC_INLINE uint32_t | LL_PWR_IsActiveFlag_UD (void) |
Indicate whether the Under-Drive mode is ready or not. | |
__STATIC_INLINE void | LL_PWR_ClearFlag_SB (void) |
Clear Standby Flag. | |
__STATIC_INLINE void | LL_PWR_ClearFlag_WU (void) |
Clear Wake-up Flags. | |
__STATIC_INLINE void | LL_PWR_ClearFlag_UD (void) |
Clear Under-Drive ready Flag. | |
ErrorStatus | LL_PWR_DeInit (void) |
De-initialize the PWR registers to their default reset values. |
Header file of PWR LL module.
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 stm32f4xx_ll_pwr.h.