STM32F103xB HAL User Manual
Defines | Functions
stm32f1xx_ll_pwr.h File Reference

Header file of PWR LL module. More...

#include "stm32f1xx.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_EWUP1   PWR_CSR_EWUP
#define LL_PWR_MODE_STOP_MAINREGU   0x00000000U
#define LL_PWR_MODE_STOP_LPREGU   (PWR_CR_LPDS)
#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_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_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_PVDO (void)
 Indicate whether VDD voltage is below the selected PVD threshold.
__STATIC_INLINE void LL_PWR_ClearFlag_SB (void)
 Clear Standby Flag.
__STATIC_INLINE void LL_PWR_ClearFlag_WU (void)
 Clear Wake-up Flags.
ErrorStatus LL_PWR_DeInit (void)
 De-initialize the PWR registers to their default reset values.

Detailed Description

Header file of PWR LL module.

Author:
MCD Application Team
Attention:

© Copyright (c) 2016 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 stm32f1xx_ll_pwr.h.