STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode (void)
 Switch the regulator from main mode to low-power mode CR1 LPR LL_PWR_EnableLowPowerRunMode. More...
 
__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode (void)
 Switch the regulator from low-power mode to main mode CR1 LPR LL_PWR_DisableLowPowerRunMode. More...
 
__STATIC_INLINE void LL_PWR_EnterLowPowerRunMode (void)
 Switch from run main mode to run low-power mode. CR1 LPR LL_PWR_EnterLowPowerRunMode. More...
 
__STATIC_INLINE void LL_PWR_ExitLowPowerRunMode (void)
 Switch from run main mode to low-power mode. CR1 LPR LL_PWR_ExitLowPowerRunMode. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode (void)
 Check if the regulator is in low-power mode CR1 LPR LL_PWR_IsEnabledLowPowerRunMode. More...
 
__STATIC_INLINE void LL_PWR_SetRegulVoltageScaling (uint32_t VoltageScaling)
 Set the main internal regulator output voltage. More...
 
__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling (void)
 Get the main internal regulator output voltage CR1 VOS LL_PWR_GetRegulVoltageScaling. More...
 
__STATIC_INLINE void LL_PWR_EnableRange1BoostMode (void)
 Enable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_EnableRange1BoostMode. More...
 
__STATIC_INLINE void LL_PWR_DisableRange1BoostMode (void)
 Disable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_DisableRange1BoostMode. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledRange1BoostMode (void)
 Check if the main regulator voltage range 1 boost mode is enabled CR5 R1MODE LL_PWR_IsEnabledRange1BoostMode. More...
 
__STATIC_INLINE void LL_PWR_EnableBkUpAccess (void)
 Enable access to the backup domain CR1 DBP LL_PWR_EnableBkUpAccess. More...
 
__STATIC_INLINE void LL_PWR_DisableBkUpAccess (void)
 Disable access to the backup domain CR1 DBP LL_PWR_DisableBkUpAccess. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess (void)
 Check if the backup domain is enabled CR1 DBP LL_PWR_IsEnabledBkUpAccess. More...
 
__STATIC_INLINE void LL_PWR_SetPowerMode (uint32_t LowPowerMode)
 Set Low-Power mode CR1 LPMS LL_PWR_SetPowerMode. More...
 
__STATIC_INLINE uint32_t LL_PWR_GetPowerMode (void)
 Get Low-Power mode CR1 LPMS LL_PWR_GetPowerMode. More...
 
__STATIC_INLINE void LL_PWR_EnableSRAM3Retention (void)
 Enable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_EnableSRAM3Retention. More...
 
__STATIC_INLINE void LL_PWR_DisableSRAM3Retention (void)
 Disable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_DisableSRAM3Retention. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM3Retention (void)
 Check if SRAM3 content retention in Stop mode is enabled CR1 RRSTP LL_PWR_IsEnabledSRAM3Retention. More...
 
__STATIC_INLINE void LL_PWR_EnableDSIPinsPDActivation (void)
 Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPinsPDActivation. More...
 
__STATIC_INLINE void LL_PWR_DisableDSIPinsPDActivation (void)
 Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPinsPDActivation. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPinsPDActivation (void)
 Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPinsPDActivation. More...
 
__STATIC_INLINE void LL_PWR_EnableVddUSB (void)
 Enable VDDUSB supply CR2 USV LL_PWR_EnableVddUSB. More...
 
__STATIC_INLINE void LL_PWR_DisableVddUSB (void)
 Disable VDDUSB supply CR2 USV LL_PWR_DisableVddUSB. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB (void)
 Check if VDDUSB supply is enabled CR2 USV LL_PWR_IsEnabledVddUSB. More...
 
__STATIC_INLINE void LL_PWR_EnableVddIO2 (void)
 Enable VDDIO2 supply CR2 IOSV LL_PWR_EnableVddIO2. More...
 
__STATIC_INLINE void LL_PWR_DisableVddIO2 (void)
 Disable VDDIO2 supply CR2 IOSV LL_PWR_DisableVddIO2. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 (void)
 Check if VDDIO2 supply is enabled CR2 IOSV LL_PWR_IsEnabledVddIO2. More...
 
__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. More...
 
__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. More...
 
__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. More...
 
__STATIC_INLINE void LL_PWR_SetPVDLevel (uint32_t PVDLevel)
 Configure the voltage threshold detected by the Power Voltage Detector CR2 PLS LL_PWR_SetPVDLevel. More...
 
__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel (void)
 Get the voltage threshold detection CR2 PLS LL_PWR_GetPVDLevel. More...
 
__STATIC_INLINE void LL_PWR_EnablePVD (void)
 Enable Power Voltage Detector CR2 PVDE LL_PWR_EnablePVD. More...
 
__STATIC_INLINE void LL_PWR_DisablePVD (void)
 Disable Power Voltage Detector CR2 PVDE LL_PWR_DisablePVD. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD (void)
 Check if Power Voltage Detector is enabled CR2 PVDE LL_PWR_IsEnabledPVD. More...
 
__STATIC_INLINE void LL_PWR_EnableInternWU (void)
 Enable Internal Wake-up line CR3 EIWF LL_PWR_EnableInternWU. More...
 
__STATIC_INLINE void LL_PWR_DisableInternWU (void)
 Disable Internal Wake-up line CR3 EIWF LL_PWR_DisableInternWU. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU (void)
 Check if Internal Wake-up line is enabled CR3 EIWF LL_PWR_IsEnabledInternWU. More...
 
__STATIC_INLINE void LL_PWR_EnablePUPDCfg (void)
 Enable pull-up and pull-down configuration CR3 APC LL_PWR_EnablePUPDCfg. More...
 
__STATIC_INLINE void LL_PWR_DisablePUPDCfg (void)
 Disable pull-up and pull-down configuration CR3 APC LL_PWR_DisablePUPDCfg. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg (void)
 Check if pull-up and pull-down configuration is enabled CR3 APC LL_PWR_IsEnabledPUPDCfg. More...
 
__STATIC_INLINE void LL_PWR_EnableDSIPullDown (void)
 Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPullDown. More...
 
__STATIC_INLINE void LL_PWR_DisableDSIPullDown (void)
 Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPullDown. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPullDown (void)
 Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPullDown. More...
 
__STATIC_INLINE void LL_PWR_EnableBORPVD_ULP (void)
 Enable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes CR3 ENULP LL_PWR_EnableBORPVD_ULP. More...
 
__STATIC_INLINE void LL_PWR_DisableBORPVD_ULP (void)
 Disable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes CR3 ENULP LL_PWR_DisableBORPVD_ULP. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBORPVD_ULP (void)
 Check if Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes is enabled CR3 ENULP LL_PWR_IsEnabledBORPVD_ULP. More...
 
__STATIC_INLINE void LL_PWR_EnableSRAM2Retention (void)
 Enable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_EnableSRAM2Retention. More...
 
__STATIC_INLINE void LL_PWR_DisableSRAM2Retention (void)
 Disable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_DisableSRAM2Retention. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention (void)
 Check if SRAM2 content retention in Standby mode is enabled CR3 RRS LL_PWR_IsEnabledSRAM2Retention. More...
 
__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
. More...
 
__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
. More...
 
__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
. More...
 
__STATIC_INLINE void LL_PWR_EnableExtSMPS_0V95 (void)
 Enable the CFLDO working @ 0.95V. More...
 
__STATIC_INLINE void LL_PWR_DisableExtSMPS_0V95 (void)
 Disable the CFLDO working @ 0.95V. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledExtSMPS_0V95 (void)
 Check if CFLDO is working @ 0.95V. More...
 
__STATIC_INLINE void LL_PWR_SetBattChargResistor (uint32_t Resistor)
 Set the resistor impedance CR4 VBRS LL_PWR_SetBattChargResistor. More...
 
__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor (void)
 Get the resistor impedance CR4 VBRS LL_PWR_GetBattChargResistor. More...
 
__STATIC_INLINE void LL_PWR_EnableBatteryCharging (void)
 Enable battery charging CR4 VBE LL_PWR_EnableBatteryCharging. More...
 
__STATIC_INLINE void LL_PWR_DisableBatteryCharging (void)
 Disable battery charging CR4 VBE LL_PWR_DisableBatteryCharging. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging (void)
 Check if battery charging is enabled CR4 VBE LL_PWR_IsEnabledBatteryCharging. More...
 
__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. More...
 
__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. More...
 
__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. More...
 
__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-15 LL_PWR_EnableGPIOPullUp
PUCRI PU0-11 LL_PWR_EnableGPIOPullUp. More...
 
__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-15 LL_PWR_DisableGPIOPullUp
PUCRI PU0-11 LL_PWR_DisableGPIOPullUp. More...
 
__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-15 LL_PWR_IsEnabledGPIOPullUp
PUCRI PU0-11 LL_PWR_IsEnabledGPIOPullUp. More...
 
__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-15 LL_PWR_EnableGPIOPullDown
PDCRI PD0-11 LL_PWR_EnableGPIOPullDown. More...
 
__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-15 LL_PWR_DisableGPIOPullDown
PDCRI PD0-11 LL_PWR_DisableGPIOPullDown. More...
 
__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-15 LL_PWR_IsEnabledGPIOPullDown
PDCRI PD0-11 LL_PWR_IsEnabledGPIOPullDown. More...
 

Detailed Description

Function Documentation

◆ LL_PWR_DisableBatteryCharging()

__STATIC_INLINE void LL_PWR_DisableBatteryCharging ( void  )

Disable battery charging CR4 VBE LL_PWR_DisableBatteryCharging.

Return values
None

Definition at line 987 of file stm32l4xx_ll_pwr.h.

988 {
989  CLEAR_BIT(PWR->CR4, PWR_CR4_VBE);
990 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableBkUpAccess()

__STATIC_INLINE void LL_PWR_DisableBkUpAccess ( void  )

Disable access to the backup domain CR1 DBP LL_PWR_DisableBkUpAccess.

Return values
None

Definition at line 394 of file stm32l4xx_ll_pwr.h.

395 {
396  CLEAR_BIT(PWR->CR1, PWR_CR1_DBP);
397 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableBORPVD_ULP()

__STATIC_INLINE void LL_PWR_DisableBORPVD_ULP ( void  )

Disable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes CR3 ENULP LL_PWR_DisableBORPVD_ULP.

Return values
None

Definition at line 803 of file stm32l4xx_ll_pwr.h.

804 {
805  CLEAR_BIT(PWR->CR3, PWR_CR3_ENULP);
806 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableDSIPinsPDActivation()

__STATIC_INLINE void LL_PWR_DisableDSIPinsPDActivation ( void  )

Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPinsPDActivation.

Return values
None

Definition at line 488 of file stm32l4xx_ll_pwr.h.

489 {
490  CLEAR_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
491 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableDSIPullDown()

__STATIC_INLINE void LL_PWR_DisableDSIPullDown ( void  )

Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPullDown.

Return values
None

Definition at line 771 of file stm32l4xx_ll_pwr.h.

772 {
773  CLEAR_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
774 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableExtSMPS_0V95()

__STATIC_INLINE void LL_PWR_DisableExtSMPS_0V95 ( void  )

Disable the CFLDO working @ 0.95V.

Note
When external SMPS is used & CFLDO operating in Range 2, the regulated voltage of the internal CFLDO can be reduced to 0.95V. CR4 EXT_SMPS_ON LL_PWR_DisableExtSMPS_0V95
Return values
None

Definition at line 929 of file stm32l4xx_ll_pwr.h.

930 {
931  CLEAR_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON);
932 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableGPIOPullDown()

__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-15 LL_PWR_DisableGPIOPullDown
PDCRI PD0-11 LL_PWR_DisableGPIOPullDown.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
None

Definition at line 1292 of file stm32l4xx_ll_pwr.h.

1293 {
1294  CLEAR_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber);
1295 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableGPIOPullUp()

__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-15 LL_PWR_DisableGPIOPullUp
PUCRI PU0-11 LL_PWR_DisableGPIOPullUp.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
None

Definition at line 1151 of file stm32l4xx_ll_pwr.h.

1152 {
1153  CLEAR_BIT(*((__IO uint32_t *)GPIO), GPIONumber);
1154 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableInternWU()

__STATIC_INLINE void LL_PWR_DisableInternWU ( void  )

Disable Internal Wake-up line CR3 EIWF LL_PWR_DisableInternWU.

Return values
None

Definition at line 710 of file stm32l4xx_ll_pwr.h.

711 {
712  CLEAR_BIT(PWR->CR3, PWR_CR3_EIWF);
713 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableLowPowerRunMode()

__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode ( void  )

Switch the regulator from low-power mode to main mode CR1 LPR LL_PWR_DisableLowPowerRunMode.

Return values
None

Definition at line 286 of file stm32l4xx_ll_pwr.h.

287 {
288  CLEAR_BIT(PWR->CR1, PWR_CR1_LPR);
289 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisablePUPDCfg()

__STATIC_INLINE void LL_PWR_DisablePUPDCfg ( void  )

Disable pull-up and pull-down configuration CR3 APC LL_PWR_DisablePUPDCfg.

Return values
None

Definition at line 740 of file stm32l4xx_ll_pwr.h.

741 {
742  CLEAR_BIT(PWR->CR3, PWR_CR3_APC);
743 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisablePVD()

__STATIC_INLINE void LL_PWR_DisablePVD ( void  )

Disable Power Voltage Detector CR2 PVDE LL_PWR_DisablePVD.

Return values
None

Definition at line 680 of file stm32l4xx_ll_pwr.h.

681 {
682  CLEAR_BIT(PWR->CR2, PWR_CR2_PVDE);
683 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisablePVM()

__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.

Parameters
PeriphVoltageThis parameter can be one of the following values:
  • LL_PWR_PVM_VDDUSB_1_2V (*)
  • LL_PWR_PVM_VDDIO2_0_9V (*)
  • LL_PWR_PVM_VDDA_1_62V
  • LL_PWR_PVM_VDDA_2_2V
(*) value not defined in all devices
Return values
None

Definition at line 603 of file stm32l4xx_ll_pwr.h.

604 {
605  CLEAR_BIT(PWR->CR2, PeriphVoltage);
606 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableRange1BoostMode()

__STATIC_INLINE void LL_PWR_DisableRange1BoostMode ( void  )

Disable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_DisableRange1BoostMode.

Return values
None

Definition at line 363 of file stm32l4xx_ll_pwr.h.

364 {
365  SET_BIT(PWR->CR5, PWR_CR5_R1MODE);
366 }

◆ LL_PWR_DisableSRAM2Retention()

__STATIC_INLINE void LL_PWR_DisableSRAM2Retention ( void  )

Disable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_DisableSRAM2Retention.

Return values
None

Definition at line 834 of file stm32l4xx_ll_pwr.h.

835 {
836  CLEAR_BIT(PWR->CR3, PWR_CR3_RRS);
837 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableSRAM3Retention()

__STATIC_INLINE void LL_PWR_DisableSRAM3Retention ( void  )

Disable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_DisableSRAM3Retention.

Return values
None

Definition at line 456 of file stm32l4xx_ll_pwr.h.

457 {
458  CLEAR_BIT(PWR->CR1, PWR_CR1_RRSTP);
459 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableVddIO2()

__STATIC_INLINE void LL_PWR_DisableVddIO2 ( void  )

Disable VDDIO2 supply CR2 IOSV LL_PWR_DisableVddIO2.

Return values
None

Definition at line 552 of file stm32l4xx_ll_pwr.h.

553 {
554  CLEAR_BIT(PWR->CR2, PWR_CR2_IOSV);
555 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableVddUSB()

__STATIC_INLINE void LL_PWR_DisableVddUSB ( void  )

Disable VDDUSB supply CR2 USV LL_PWR_DisableVddUSB.

Return values
None

Definition at line 520 of file stm32l4xx_ll_pwr.h.

521 {
522  CLEAR_BIT(PWR->CR2, PWR_CR2_USV);
523 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_DisableWakeUpPin()

__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
.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
None

Definition at line 884 of file stm32l4xx_ll_pwr.h.

885 {
886  CLEAR_BIT(PWR->CR3, WakeUpPin);
887 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_EnableBatteryCharging()

__STATIC_INLINE void LL_PWR_EnableBatteryCharging ( void  )

Enable battery charging CR4 VBE LL_PWR_EnableBatteryCharging.

Return values
None

Definition at line 977 of file stm32l4xx_ll_pwr.h.

978 {
979  SET_BIT(PWR->CR4, PWR_CR4_VBE);
980 }

◆ LL_PWR_EnableBkUpAccess()

__STATIC_INLINE void LL_PWR_EnableBkUpAccess ( void  )

Enable access to the backup domain CR1 DBP LL_PWR_EnableBkUpAccess.

Return values
None

Definition at line 384 of file stm32l4xx_ll_pwr.h.

385 {
386  SET_BIT(PWR->CR1, PWR_CR1_DBP);
387 }

◆ LL_PWR_EnableBORPVD_ULP()

__STATIC_INLINE void LL_PWR_EnableBORPVD_ULP ( void  )

Enable Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes CR3 ENULP LL_PWR_EnableBORPVD_ULP.

Return values
None

Definition at line 793 of file stm32l4xx_ll_pwr.h.

794 {
795  SET_BIT(PWR->CR3, PWR_CR3_ENULP);
796 }

◆ LL_PWR_EnableDSIPinsPDActivation()

__STATIC_INLINE void LL_PWR_EnableDSIPinsPDActivation ( void  )

Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPinsPDActivation.

Return values
None

Definition at line 478 of file stm32l4xx_ll_pwr.h.

479 {
480  SET_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
481 }

◆ LL_PWR_EnableDSIPullDown()

__STATIC_INLINE void LL_PWR_EnableDSIPullDown ( void  )

Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPullDown.

Return values
None

Definition at line 761 of file stm32l4xx_ll_pwr.h.

762 {
763  SET_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
764 }

◆ LL_PWR_EnableExtSMPS_0V95()

__STATIC_INLINE void LL_PWR_EnableExtSMPS_0V95 ( void  )

Enable the CFLDO working @ 0.95V.

Note
When external SMPS is used & CFLDO operating in Range 2, the regulated voltage of the internal CFLDO can be reduced to 0.95V. CR4 EXT_SMPS_ON LL_PWR_EnableExtSMPS_0V95
Return values
None

Definition at line 917 of file stm32l4xx_ll_pwr.h.

918 {
919  SET_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON);
920 }

◆ LL_PWR_EnableGPIOPullDown()

__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-15 LL_PWR_EnableGPIOPullDown
PDCRI PD0-11 LL_PWR_EnableGPIOPullDown.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
None

Definition at line 1245 of file stm32l4xx_ll_pwr.h.

1246 {
1247  SET_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber);
1248 }

◆ LL_PWR_EnableGPIOPullUp()

__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-15 LL_PWR_EnableGPIOPullUp
PUCRI PU0-11 LL_PWR_EnableGPIOPullUp.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
None

Definition at line 1104 of file stm32l4xx_ll_pwr.h.

1105 {
1106  SET_BIT(*((__IO uint32_t *)GPIO), GPIONumber);
1107 }

◆ LL_PWR_EnableInternWU()

__STATIC_INLINE void LL_PWR_EnableInternWU ( void  )

Enable Internal Wake-up line CR3 EIWF LL_PWR_EnableInternWU.

Return values
None

Definition at line 700 of file stm32l4xx_ll_pwr.h.

701 {
702  SET_BIT(PWR->CR3, PWR_CR3_EIWF);
703 }

◆ LL_PWR_EnableLowPowerRunMode()

__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode ( void  )

Switch the regulator from main mode to low-power mode CR1 LPR LL_PWR_EnableLowPowerRunMode.

Return values
None

Definition at line 276 of file stm32l4xx_ll_pwr.h.

277 {
278  SET_BIT(PWR->CR1, PWR_CR1_LPR);
279 }

◆ LL_PWR_EnablePUPDCfg()

__STATIC_INLINE void LL_PWR_EnablePUPDCfg ( void  )

Enable pull-up and pull-down configuration CR3 APC LL_PWR_EnablePUPDCfg.

Return values
None

Definition at line 730 of file stm32l4xx_ll_pwr.h.

731 {
732  SET_BIT(PWR->CR3, PWR_CR3_APC);
733 }

◆ LL_PWR_EnablePVD()

__STATIC_INLINE void LL_PWR_EnablePVD ( void  )

Enable Power Voltage Detector CR2 PVDE LL_PWR_EnablePVD.

Return values
None

Definition at line 670 of file stm32l4xx_ll_pwr.h.

671 {
672  SET_BIT(PWR->CR2, PWR_CR2_PVDE);
673 }

◆ LL_PWR_EnablePVM()

__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.

Parameters
PeriphVoltageThis parameter can be one of the following values:
  • LL_PWR_PVM_VDDUSB_1_2V (*)
  • LL_PWR_PVM_VDDIO2_0_9V (*)
  • LL_PWR_PVM_VDDA_1_62V
  • LL_PWR_PVM_VDDA_2_2V
(*) value not defined in all devices
Return values
None

Definition at line 583 of file stm32l4xx_ll_pwr.h.

584 {
585  SET_BIT(PWR->CR2, PeriphVoltage);
586 }

◆ LL_PWR_EnableRange1BoostMode()

__STATIC_INLINE void LL_PWR_EnableRange1BoostMode ( void  )

Enable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_EnableRange1BoostMode.

Return values
None

Definition at line 353 of file stm32l4xx_ll_pwr.h.

354 {
355  CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE);
356 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_EnableSRAM2Retention()

__STATIC_INLINE void LL_PWR_EnableSRAM2Retention ( void  )

Enable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_EnableSRAM2Retention.

Return values
None

Definition at line 824 of file stm32l4xx_ll_pwr.h.

825 {
826  SET_BIT(PWR->CR3, PWR_CR3_RRS);
827 }

◆ LL_PWR_EnableSRAM3Retention()

__STATIC_INLINE void LL_PWR_EnableSRAM3Retention ( void  )

Enable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_EnableSRAM3Retention.

Return values
None

Definition at line 446 of file stm32l4xx_ll_pwr.h.

447 {
448  SET_BIT(PWR->CR1, PWR_CR1_RRSTP);
449 }

◆ LL_PWR_EnableVddIO2()

__STATIC_INLINE void LL_PWR_EnableVddIO2 ( void  )

Enable VDDIO2 supply CR2 IOSV LL_PWR_EnableVddIO2.

Return values
None

Definition at line 542 of file stm32l4xx_ll_pwr.h.

543 {
544  SET_BIT(PWR->CR2, PWR_CR2_IOSV);
545 }

◆ LL_PWR_EnableVddUSB()

__STATIC_INLINE void LL_PWR_EnableVddUSB ( void  )

Enable VDDUSB supply CR2 USV LL_PWR_EnableVddUSB.

Return values
None

Definition at line 510 of file stm32l4xx_ll_pwr.h.

511 {
512  SET_BIT(PWR->CR2, PWR_CR2_USV);
513 }

◆ LL_PWR_EnableWakeUpPin()

__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
.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
None

Definition at line 864 of file stm32l4xx_ll_pwr.h.

865 {
866  SET_BIT(PWR->CR3, WakeUpPin);
867 }

◆ LL_PWR_EnterLowPowerRunMode()

__STATIC_INLINE void LL_PWR_EnterLowPowerRunMode ( void  )

Switch from run main mode to run low-power mode. CR1 LPR LL_PWR_EnterLowPowerRunMode.

Return values
None

Definition at line 296 of file stm32l4xx_ll_pwr.h.

297 {
299 }
__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode(void)
Switch the regulator from main mode to low-power mode CR1 LPR LL_PWR_EnableLowPowerRunMode.

◆ LL_PWR_ExitLowPowerRunMode()

__STATIC_INLINE void LL_PWR_ExitLowPowerRunMode ( void  )

Switch from run main mode to low-power mode. CR1 LPR LL_PWR_ExitLowPowerRunMode.

Return values
None

Definition at line 306 of file stm32l4xx_ll_pwr.h.

307 {
309 }
__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode(void)
Switch the regulator from low-power mode to main mode CR1 LPR LL_PWR_DisableLowPowerRunMode.

◆ LL_PWR_GetBattChargResistor()

__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor ( void  )

Get the resistor impedance CR4 VBRS LL_PWR_GetBattChargResistor.

Return values
Returnedvalue can be one of the following values:
  • LL_PWR_BATT_CHARG_RESISTOR_5K
  • LL_PWR_BATT_CHARGRESISTOR_1_5K

Definition at line 967 of file stm32l4xx_ll_pwr.h.

968 {
969  return (uint32_t)(READ_BIT(PWR->CR4, PWR_CR4_VBRS));
970 }

◆ LL_PWR_GetPowerMode()

__STATIC_INLINE uint32_t LL_PWR_GetPowerMode ( void  )

Get Low-Power mode CR1 LPMS LL_PWR_GetPowerMode.

Return values
Returnedvalue can be one of the following values:
  • LL_PWR_MODE_STOP0
  • LL_PWR_MODE_STOP1
  • LL_PWR_MODE_STOP2
  • LL_PWR_MODE_STANDBY
  • LL_PWR_MODE_SHUTDOWN

Definition at line 435 of file stm32l4xx_ll_pwr.h.

436 {
437  return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_LPMS));
438 }

◆ LL_PWR_GetPVDLevel()

__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel ( void  )

Get the voltage threshold detection CR2 PLS LL_PWR_GetPVDLevel.

Return values
Returnedvalue can be one of the following values:
  • LL_PWR_PVDLEVEL_0
  • LL_PWR_PVDLEVEL_1
  • LL_PWR_PVDLEVEL_2
  • LL_PWR_PVDLEVEL_3
  • LL_PWR_PVDLEVEL_4
  • LL_PWR_PVDLEVEL_5
  • LL_PWR_PVDLEVEL_6
  • LL_PWR_PVDLEVEL_7

Definition at line 660 of file stm32l4xx_ll_pwr.h.

661 {
662  return (uint32_t)(READ_BIT(PWR->CR2, PWR_CR2_PLS));
663 }

◆ LL_PWR_GetRegulVoltageScaling()

__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling ( void  )

Get the main internal regulator output voltage CR1 VOS LL_PWR_GetRegulVoltageScaling.

Return values
Returnedvalue can be one of the following values:
  • LL_PWR_REGU_VOLTAGE_SCALE1
  • LL_PWR_REGU_VOLTAGE_SCALE2

Definition at line 342 of file stm32l4xx_ll_pwr.h.

343 {
344  return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_VOS));
345 }

◆ LL_PWR_IsEnabledBatteryCharging()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging ( void  )

Check if battery charging is enabled CR4 VBE LL_PWR_IsEnabledBatteryCharging.

Return values
Stateof bit (1 or 0).

Definition at line 997 of file stm32l4xx_ll_pwr.h.

998 {
999  return ((READ_BIT(PWR->CR4, PWR_CR4_VBE) == (PWR_CR4_VBE)) ? 1UL : 0UL);
1000 }

◆ LL_PWR_IsEnabledBkUpAccess()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess ( void  )

Check if the backup domain is enabled CR1 DBP LL_PWR_IsEnabledBkUpAccess.

Return values
Stateof bit (1 or 0).

Definition at line 404 of file stm32l4xx_ll_pwr.h.

405 {
406  return ((READ_BIT(PWR->CR1, PWR_CR1_DBP) == (PWR_CR1_DBP)) ? 1UL : 0UL);
407 }

◆ LL_PWR_IsEnabledBORPVD_ULP()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledBORPVD_ULP ( void  )

Check if Ultra Low Power BORL, BORH and PVD for STOP2 and Standby modes is enabled CR3 ENULP LL_PWR_IsEnabledBORPVD_ULP.

Return values
Stateof bit (1 or 0).

Definition at line 813 of file stm32l4xx_ll_pwr.h.

814 {
815  return ((READ_BIT(PWR->CR3, PWR_CR3_ENULP) == (PWR_CR3_ENULP)) ? 1UL : 0UL);
816 }

◆ LL_PWR_IsEnabledDSIPinsPDActivation()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPinsPDActivation ( void  )

Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPinsPDActivation.

Return values
Stateof bit (1 or 0).

Definition at line 498 of file stm32l4xx_ll_pwr.h.

499 {
500  return ((READ_BIT(PWR->CR3, PWR_CR3_DSIPDEN) == (PWR_CR3_DSIPDEN)) ? 1UL : 0UL);
501 }

◆ LL_PWR_IsEnabledDSIPullDown()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPullDown ( void  )

Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPullDown.

Return values
Stateof bit (1 or 0).

Definition at line 781 of file stm32l4xx_ll_pwr.h.

782 {
783  return ((READ_BIT(PWR->CR3, PWR_CR3_DSIPDEN) == (PWR_CR3_DSIPDEN)) ? 1UL : 0UL);
784 }

◆ LL_PWR_IsEnabledExtSMPS_0V95()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledExtSMPS_0V95 ( void  )

Check if CFLDO is working @ 0.95V.

Note
When external SMPS is used & CFLDO operating in Range 2, the regulated voltage of the internal CFLDO can be reduced to 0.95V. CR4 EXT_SMPS_ON LL_PWR_IsEnabledExtSMPS_0V95
Return values
Stateof bit (1 or 0).

Definition at line 941 of file stm32l4xx_ll_pwr.h.

942 {
943  return ((READ_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON) == (PWR_CR4_EXT_SMPS_ON)) ? 1UL : 0UL);
944 }

◆ LL_PWR_IsEnabledGPIOPullDown()

__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-15 LL_PWR_IsEnabledGPIOPullDown
PDCRI PD0-11 LL_PWR_IsEnabledGPIOPullDown.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
Stateof bit (1 or 0).

Definition at line 1339 of file stm32l4xx_ll_pwr.h.

1340 {
1341  return ((READ_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber) == (GPIONumber)) ? 1UL : 0UL);
1342 }

◆ LL_PWR_IsEnabledGPIOPullUp()

__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-15 LL_PWR_IsEnabledGPIOPullUp
PUCRI PU0-11 LL_PWR_IsEnabledGPIOPullUp.

Parameters
GPIOThis parameter can be one of the following values:
  • LL_PWR_GPIO_A
  • LL_PWR_GPIO_B
  • LL_PWR_GPIO_C
  • LL_PWR_GPIO_D
  • LL_PWR_GPIO_E
  • LL_PWR_GPIO_F (*)
  • LL_PWR_GPIO_G (*)
  • LL_PWR_GPIO_H
  • LL_PWR_GPIO_I (*)
(*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
  • LL_PWR_GPIO_BIT_0
  • LL_PWR_GPIO_BIT_1
  • LL_PWR_GPIO_BIT_2
  • LL_PWR_GPIO_BIT_3
  • LL_PWR_GPIO_BIT_4
  • LL_PWR_GPIO_BIT_5
  • LL_PWR_GPIO_BIT_6
  • LL_PWR_GPIO_BIT_7
  • LL_PWR_GPIO_BIT_8
  • LL_PWR_GPIO_BIT_9
  • LL_PWR_GPIO_BIT_10
  • LL_PWR_GPIO_BIT_11
  • LL_PWR_GPIO_BIT_12
  • LL_PWR_GPIO_BIT_13
  • LL_PWR_GPIO_BIT_14
  • LL_PWR_GPIO_BIT_15
Return values
Stateof bit (1 or 0).

Definition at line 1198 of file stm32l4xx_ll_pwr.h.

1199 {
1200  return ((READ_BIT(*((__IO uint32_t *)GPIO), GPIONumber) == (GPIONumber)) ? 1UL : 0UL);
1201 }

◆ LL_PWR_IsEnabledInternWU()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU ( void  )

Check if Internal Wake-up line is enabled CR3 EIWF LL_PWR_IsEnabledInternWU.

Return values
Stateof bit (1 or 0).

Definition at line 720 of file stm32l4xx_ll_pwr.h.

721 {
722  return ((READ_BIT(PWR->CR3, PWR_CR3_EIWF) == (PWR_CR3_EIWF)) ? 1UL : 0UL);
723 }

◆ LL_PWR_IsEnabledLowPowerRunMode()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode ( void  )

Check if the regulator is in low-power mode CR1 LPR LL_PWR_IsEnabledLowPowerRunMode.

Return values
Stateof bit (1 or 0).

Definition at line 316 of file stm32l4xx_ll_pwr.h.

317 {
318  return ((READ_BIT(PWR->CR1, PWR_CR1_LPR) == (PWR_CR1_LPR)) ? 1UL : 0UL);
319 }

◆ LL_PWR_IsEnabledPUPDCfg()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg ( void  )

Check if pull-up and pull-down configuration is enabled CR3 APC LL_PWR_IsEnabledPUPDCfg.

Return values
Stateof bit (1 or 0).

Definition at line 750 of file stm32l4xx_ll_pwr.h.

751 {
752  return ((READ_BIT(PWR->CR3, PWR_CR3_APC) == (PWR_CR3_APC)) ? 1UL : 0UL);
753 }

◆ LL_PWR_IsEnabledPVD()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD ( void  )

Check if Power Voltage Detector is enabled CR2 PVDE LL_PWR_IsEnabledPVD.

Return values
Stateof bit (1 or 0).

Definition at line 690 of file stm32l4xx_ll_pwr.h.

691 {
692  return ((READ_BIT(PWR->CR2, PWR_CR2_PVDE) == (PWR_CR2_PVDE)) ? 1UL : 0UL);
693 }

◆ LL_PWR_IsEnabledPVM()

__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.

Parameters
PeriphVoltageThis parameter can be one of the following values:
  • LL_PWR_PVM_VDDUSB_1_2V (*)
  • LL_PWR_PVM_VDDIO2_0_9V (*)
  • LL_PWR_PVM_VDDA_1_62V
  • LL_PWR_PVM_VDDA_2_2V
(*) value not defined in all devices
Return values
Stateof bit (1 or 0).

Definition at line 623 of file stm32l4xx_ll_pwr.h.

624 {
625  return ((READ_BIT(PWR->CR2, PeriphVoltage) == (PeriphVoltage)) ? 1UL : 0UL);
626 }

◆ LL_PWR_IsEnabledRange1BoostMode()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledRange1BoostMode ( void  )

Check if the main regulator voltage range 1 boost mode is enabled CR5 R1MODE LL_PWR_IsEnabledRange1BoostMode.

Return values
Invertedstate of bit (0 or 1).

Definition at line 373 of file stm32l4xx_ll_pwr.h.

374 {
375  return ((READ_BIT(PWR->CR5, PWR_CR5_R1MODE) == 0x0U) ? 1UL : 0UL);
376 }

◆ LL_PWR_IsEnabledSRAM2Retention()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention ( void  )

Check if SRAM2 content retention in Standby mode is enabled CR3 RRS LL_PWR_IsEnabledSRAM2Retention.

Return values
Stateof bit (1 or 0).

Definition at line 844 of file stm32l4xx_ll_pwr.h.

845 {
846  return ((READ_BIT(PWR->CR3, PWR_CR3_RRS) == (PWR_CR3_RRS)) ? 1UL : 0UL);
847 }

◆ LL_PWR_IsEnabledSRAM3Retention()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM3Retention ( void  )

Check if SRAM3 content retention in Stop mode is enabled CR1 RRSTP LL_PWR_IsEnabledSRAM3Retention.

Return values
Stateof bit (1 or 0).

Definition at line 466 of file stm32l4xx_ll_pwr.h.

467 {
468  return ((READ_BIT(PWR->CR1, PWR_CR1_RRSTP) == (PWR_CR1_RRSTP)) ? 1UL : 0UL);
469 }

◆ LL_PWR_IsEnabledVddIO2()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 ( void  )

Check if VDDIO2 supply is enabled CR2 IOSV LL_PWR_IsEnabledVddIO2.

Return values
Stateof bit (1 or 0).

Definition at line 562 of file stm32l4xx_ll_pwr.h.

563 {
564  return ((READ_BIT(PWR->CR2, PWR_CR2_IOSV) == (PWR_CR2_IOSV)) ? 1UL : 0UL);
565 }

◆ LL_PWR_IsEnabledVddUSB()

__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB ( void  )

Check if VDDUSB supply is enabled CR2 USV LL_PWR_IsEnabledVddUSB.

Return values
Stateof bit (1 or 0).

Definition at line 530 of file stm32l4xx_ll_pwr.h.

531 {
532  return ((READ_BIT(PWR->CR2, PWR_CR2_USV) == (PWR_CR2_USV)) ? 1UL : 0UL);
533 }

◆ LL_PWR_IsEnabledWakeUpPin()

__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
.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
Stateof bit (1 or 0).

Definition at line 904 of file stm32l4xx_ll_pwr.h.

905 {
906  return ((READ_BIT(PWR->CR3, WakeUpPin) == (WakeUpPin)) ? 1UL : 0UL);
907 }

◆ LL_PWR_IsWakeUpPinPolarityLow()

__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.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
Stateof bit (1 or 0).

Definition at line 1057 of file stm32l4xx_ll_pwr.h.

1058 {
1059  return ((READ_BIT(PWR->CR4, WakeUpPin) == (WakeUpPin)) ? 1UL : 0UL);
1060 }

◆ LL_PWR_SetBattChargResistor()

__STATIC_INLINE void LL_PWR_SetBattChargResistor ( uint32_t  Resistor)

Set the resistor impedance CR4 VBRS LL_PWR_SetBattChargResistor.

Parameters
ResistorThis parameter can be one of the following values:
  • LL_PWR_BATT_CHARG_RESISTOR_5K
  • LL_PWR_BATT_CHARGRESISTOR_1_5K
Return values
None

Definition at line 955 of file stm32l4xx_ll_pwr.h.

956 {
957  MODIFY_REG(PWR->CR4, PWR_CR4_VBRS, Resistor);
958 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_PWR_SetPowerMode()

__STATIC_INLINE void LL_PWR_SetPowerMode ( uint32_t  LowPowerMode)

Set Low-Power mode CR1 LPMS LL_PWR_SetPowerMode.

Parameters
LowPowerModeThis parameter can be one of the following values:
  • LL_PWR_MODE_STOP0
  • LL_PWR_MODE_STOP1
  • LL_PWR_MODE_STOP2
  • LL_PWR_MODE_STANDBY
  • LL_PWR_MODE_SHUTDOWN
Return values
None

Definition at line 420 of file stm32l4xx_ll_pwr.h.

421 {
422  MODIFY_REG(PWR->CR1, PWR_CR1_LPMS, LowPowerMode);
423 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_PWR_SetPVDLevel()

__STATIC_INLINE void LL_PWR_SetPVDLevel ( uint32_t  PVDLevel)

Configure the voltage threshold detected by the Power Voltage Detector CR2 PLS LL_PWR_SetPVDLevel.

Parameters
PVDLevelThis parameter can be one of the following values:
  • LL_PWR_PVDLEVEL_0
  • LL_PWR_PVDLEVEL_1
  • LL_PWR_PVDLEVEL_2
  • LL_PWR_PVDLEVEL_3
  • LL_PWR_PVDLEVEL_4
  • LL_PWR_PVDLEVEL_5
  • LL_PWR_PVDLEVEL_6
  • LL_PWR_PVDLEVEL_7
Return values
None

Definition at line 642 of file stm32l4xx_ll_pwr.h.

643 {
644  MODIFY_REG(PWR->CR2, PWR_CR2_PLS, PVDLevel);
645 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_PWR_SetRegulVoltageScaling()

__STATIC_INLINE void LL_PWR_SetRegulVoltageScaling ( uint32_t  VoltageScaling)

Set the main internal regulator output voltage.

Note
This configuration may be completed with LL_PWR_EnableRange1BoostMode() on STM32L4Rx/STM32L4Sx devices. CR1 VOS LL_PWR_SetRegulVoltageScaling
Parameters
VoltageScalingThis parameter can be one of the following values:
  • LL_PWR_REGU_VOLTAGE_SCALE1
  • LL_PWR_REGU_VOLTAGE_SCALE2
Return values
None

Definition at line 330 of file stm32l4xx_ll_pwr.h.

331 {
332  MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling);
333 }
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)

◆ LL_PWR_SetWakeUpPinPolarityHigh()

__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.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
None

Definition at line 1037 of file stm32l4xx_ll_pwr.h.

1038 {
1039  CLEAR_BIT(PWR->CR4, WakeUpPin);
1040 }
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)

◆ LL_PWR_SetWakeUpPinPolarityLow()

__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.

Parameters
WakeUpPinThis parameter can be one of the following values:
  • LL_PWR_WAKEUP_PIN1
  • LL_PWR_WAKEUP_PIN2
  • LL_PWR_WAKEUP_PIN3
  • LL_PWR_WAKEUP_PIN4
  • LL_PWR_WAKEUP_PIN5
Return values
None

Definition at line 1017 of file stm32l4xx_ll_pwr.h.

1018 {
1019  SET_BIT(PWR->CR4, WakeUpPin);
1020 }