STM32L486xx HAL User Manual
Functions
Configuration
PWR Exported Functions

Functions

__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode (void)
 Switch the regulator from main mode to low-power mode.
__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode (void)
 Switch the regulator from low-power mode to main mode.
__STATIC_INLINE void LL_PWR_EnterLowPowerRunMode (void)
 Switch from run main mode to run low-power mode.
__STATIC_INLINE void LL_PWR_ExitLowPowerRunMode (void)
 Switch from run main mode to low-power mode.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode (void)
 Check if the regulator is in low-power mode.
__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_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_SetPowerMode (uint32_t LowPowerMode)
 Set Low-Power mode.
__STATIC_INLINE uint32_t LL_PWR_GetPowerMode (void)
 Get Low-Power mode.
__STATIC_INLINE void LL_PWR_EnableVddUSB (void)
 Enable VDDUSB supply.
__STATIC_INLINE void LL_PWR_DisableVddUSB (void)
 Disable VDDUSB supply.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB (void)
 Check if VDDUSB supply is enabled.
__STATIC_INLINE void LL_PWR_EnableVddIO2 (void)
 Enable VDDIO2 supply.
__STATIC_INLINE void LL_PWR_DisableVddIO2 (void)
 Disable VDDIO2 supply.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 (void)
 Check if VDDIO2 supply is enabled.
__STATIC_INLINE void LL_PWR_EnablePVM (uint32_t PeriphVoltage)
 Enable the Power Voltage Monitoring on a peripheral.
__STATIC_INLINE void LL_PWR_DisablePVM (uint32_t PeriphVoltage)
 Disable the Power Voltage Monitoring on a peripheral.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVM (uint32_t PeriphVoltage)
 Check if Power Voltage Monitoring is enabled on a peripheral.
__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_EnableInternWU (void)
 Enable Internal Wake-up line.
__STATIC_INLINE void LL_PWR_DisableInternWU (void)
 Disable Internal Wake-up line.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU (void)
 Check if Internal Wake-up line is enabled.
__STATIC_INLINE void LL_PWR_EnablePUPDCfg (void)
 Enable pull-up and pull-down configuration.
__STATIC_INLINE void LL_PWR_DisablePUPDCfg (void)
 Disable pull-up and pull-down configuration.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg (void)
 Check if pull-up and pull-down configuration is enabled.
__STATIC_INLINE void LL_PWR_EnableSRAM2Retention (void)
 Enable SRAM2 content retention in Standby mode.
__STATIC_INLINE void LL_PWR_DisableSRAM2Retention (void)
 Disable SRAM2 content retention in Standby mode.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention (void)
 Check if SRAM2 content retention in Standby mode 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 void LL_PWR_SetBattChargResistor (uint32_t Resistor)
 Set the resistor impedance.
__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor (void)
 Get the resistor impedance.
__STATIC_INLINE void LL_PWR_EnableBatteryCharging (void)
 Enable battery charging.
__STATIC_INLINE void LL_PWR_DisableBatteryCharging (void)
 Disable battery charging.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging (void)
 Check if battery charging is enabled.
__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityLow (uint32_t WakeUpPin)
 Set the Wake-Up pin polarity low for the event detection.
__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityHigh (uint32_t WakeUpPin)
 Set the Wake-Up pin polarity high for the event detection.
__STATIC_INLINE uint32_t LL_PWR_IsWakeUpPinPolarityLow (uint32_t WakeUpPin)
 Get the Wake-Up pin polarity for the event detection.
__STATIC_INLINE void LL_PWR_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-up state in Standby and Shutdown modes.
__STATIC_INLINE void LL_PWR_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-up state in Standby and Shutdown modes.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Check if GPIO pull-up state is enabled.
__STATIC_INLINE void LL_PWR_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-down state in Standby and Shutdown modes.
__STATIC_INLINE void LL_PWR_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-down state in Standby and Shutdown modes.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Check if GPIO pull-down state is enabled.

Function Documentation

__STATIC_INLINE void LL_PWR_DisableBatteryCharging ( void  )

Disable battery charging.

Reference Manual to LL API cross reference:
CR4 VBE LL_PWR_DisableBatteryCharging
Return values:
None

Definition at line 930 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableBkUpAccess ( void  )

Disable access to the backup domain.

Reference Manual to LL API cross reference:
CR1 DBP LL_PWR_DisableBkUpAccess
Return values:
None

Definition at line 407 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableGPIOPullDown ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Disable GPIO pull-down state in Standby and Shutdown modes.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
None

Definition at line 1236 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableGPIOPullUp ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Disable GPIO pull-up state in Standby and Shutdown modes.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
None

Definition at line 1094 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableInternWU ( void  )

Disable Internal Wake-up line.

Reference Manual to LL API cross reference:
CR3 EIWF LL_PWR_DisableInternWU
Return values:
None

Definition at line 723 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode ( void  )

Switch the regulator from low-power mode to main mode.

Reference Manual to LL API cross reference:
CR1 LPR LL_PWR_DisableLowPowerRunMode
Return values:
None

Definition at line 299 of file stm32l4xx_ll_pwr.h.

Referenced by LL_PWR_ExitLowPowerRunMode().

__STATIC_INLINE void LL_PWR_DisablePUPDCfg ( void  )

Disable pull-up and pull-down configuration.

Reference Manual to LL API cross reference:
CR3 APC LL_PWR_DisablePUPDCfg
Return values:
None

Definition at line 753 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisablePVD ( void  )

Disable Power Voltage Detector.

Reference Manual to LL API cross reference:
CR2 PVDE LL_PWR_DisablePVD
Return values:
None

Definition at line 693 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisablePVM ( uint32_t  PeriphVoltage)

Disable the Power Voltage Monitoring on a peripheral.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
Return values:
None

Definition at line 616 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableSRAM2Retention ( void  )

Disable SRAM2 content retention in Standby mode.

Reference Manual to LL API cross reference:
CR3 RRS LL_PWR_DisableSRAM2Retention
Return values:
None

Definition at line 815 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableVddIO2 ( void  )

Disable VDDIO2 supply.

Reference Manual to LL API cross reference:
CR2 IOSV LL_PWR_DisableVddIO2
Return values:
None

Definition at line 565 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableVddUSB ( void  )

Disable VDDUSB supply.

Reference Manual to LL API cross reference:
CR2 USV LL_PWR_DisableVddUSB
Return values:
None

Definition at line 533 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_DisableWakeUpPin ( uint32_t  WakeUpPin)

Disable the WakeUp PINx functionality.

Reference Manual to LL API cross reference:
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:
Return values:
None

Definition at line 865 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableBatteryCharging ( void  )

Enable battery charging.

Reference Manual to LL API cross reference:
CR4 VBE LL_PWR_EnableBatteryCharging
Return values:
None

Definition at line 920 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableBkUpAccess ( void  )

Enable access to the backup domain.

Reference Manual to LL API cross reference:
CR1 DBP LL_PWR_EnableBkUpAccess
Return values:
None

Definition at line 397 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableGPIOPullDown ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Enable GPIO pull-down state in Standby and Shutdown modes.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
None

Definition at line 1188 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableGPIOPullUp ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Enable GPIO pull-up state in Standby and Shutdown modes.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
None

Definition at line 1047 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableInternWU ( void  )

Enable Internal Wake-up line.

Reference Manual to LL API cross reference:
CR3 EIWF LL_PWR_EnableInternWU
Return values:
None

Definition at line 713 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableLowPowerRunMode ( void  )

Switch the regulator from main mode to low-power mode.

Reference Manual to LL API cross reference:
CR1 LPR LL_PWR_EnableLowPowerRunMode
Return values:
None

Definition at line 289 of file stm32l4xx_ll_pwr.h.

Referenced by LL_PWR_EnterLowPowerRunMode().

__STATIC_INLINE void LL_PWR_EnablePUPDCfg ( void  )

Enable pull-up and pull-down configuration.

Reference Manual to LL API cross reference:
CR3 APC LL_PWR_EnablePUPDCfg
Return values:
None

Definition at line 743 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnablePVD ( void  )

Enable Power Voltage Detector.

Reference Manual to LL API cross reference:
CR2 PVDE LL_PWR_EnablePVD
Return values:
None

Definition at line 683 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnablePVM ( uint32_t  PeriphVoltage)

Enable the Power Voltage Monitoring on a peripheral.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
Return values:
None

Definition at line 596 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableSRAM2Retention ( void  )

Enable SRAM2 content retention in Standby mode.

Reference Manual to LL API cross reference:
CR3 RRS LL_PWR_EnableSRAM2Retention
Return values:
None

Definition at line 805 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableVddIO2 ( void  )

Enable VDDIO2 supply.

Reference Manual to LL API cross reference:
CR2 IOSV LL_PWR_EnableVddIO2
Return values:
None

Definition at line 555 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableVddUSB ( void  )

Enable VDDUSB supply.

Reference Manual to LL API cross reference:
CR2 USV LL_PWR_EnableVddUSB
Return values:
None

Definition at line 523 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnableWakeUpPin ( uint32_t  WakeUpPin)

Enable the WakeUp PINx functionality.

Reference Manual to LL API cross reference:
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:
Return values:
None

Definition at line 845 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_EnterLowPowerRunMode ( void  )

Switch from run main mode to run low-power mode.

Reference Manual to LL API cross reference:
CR1 LPR LL_PWR_EnterLowPowerRunMode
Return values:
None

Definition at line 309 of file stm32l4xx_ll_pwr.h.

References LL_PWR_EnableLowPowerRunMode().

__STATIC_INLINE void LL_PWR_ExitLowPowerRunMode ( void  )

Switch from run main mode to low-power mode.

Reference Manual to LL API cross reference:
CR1 LPR LL_PWR_ExitLowPowerRunMode
Return values:
None

Definition at line 319 of file stm32l4xx_ll_pwr.h.

References LL_PWR_DisableLowPowerRunMode().

__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor ( void  )

Get the resistor impedance.

Reference Manual to LL API cross reference:
CR4 VBRS LL_PWR_GetBattChargResistor
Return values:
Returnedvalue can be one of the following values:

Definition at line 910 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_GetPowerMode ( void  )

Get Low-Power mode.

Reference Manual to LL API cross reference:
CR1 LPMS LL_PWR_GetPowerMode
Return values:
Returnedvalue can be one of the following values:

Definition at line 448 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel ( void  )

Get the voltage threshold detection.

Reference Manual to LL API cross reference:
CR2 PLS LL_PWR_GetPVDLevel
Return values:
Returnedvalue can be one of the following values:

Definition at line 673 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling ( void  )

Get the main internal regulator output voltage.

Reference Manual to LL API cross reference:
CR1 VOS LL_PWR_GetRegulVoltageScaling
Return values:
Returnedvalue can be one of the following values:

Definition at line 355 of file stm32l4xx_ll_pwr.h.

Referenced by UTILS_SetFlashLatency().

__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging ( void  )

Check if battery charging is enabled.

Reference Manual to LL API cross reference:
CR4 VBE LL_PWR_IsEnabledBatteryCharging
Return values:
Stateof bit (1 or 0).

Definition at line 940 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess ( void  )

Check if the backup domain is enabled.

Reference Manual to LL API cross reference:
CR1 DBP LL_PWR_IsEnabledBkUpAccess
Return values:
Stateof bit (1 or 0).

Definition at line 417 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullDown ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Check if GPIO pull-down state is enabled.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
Stateof bit (1 or 0).

Definition at line 1284 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullUp ( uint32_t  GPIO,
uint32_t  GPIONumber 
)

Check if GPIO pull-up state is enabled.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
GPIONumberThis parameter can be one of the following values:
Return values:
Stateof bit (1 or 0).

Definition at line 1141 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU ( void  )

Check if Internal Wake-up line is enabled.

Reference Manual to LL API cross reference:
CR3 EIWF LL_PWR_IsEnabledInternWU
Return values:
Stateof bit (1 or 0).

Definition at line 733 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode ( void  )

Check if the regulator is in low-power mode.

Reference Manual to LL API cross reference:
CR1 LPR LL_PWR_IsEnabledLowPowerRunMode
Return values:
Stateof bit (1 or 0).

Definition at line 329 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg ( void  )

Check if pull-up and pull-down configuration is enabled.

Reference Manual to LL API cross reference:
CR3 APC LL_PWR_IsEnabledPUPDCfg
Return values:
Stateof bit (1 or 0).

Definition at line 763 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD ( void  )

Check if Power Voltage Detector is enabled.

Reference Manual to LL API cross reference:
CR2 PVDE LL_PWR_IsEnabledPVD
Return values:
Stateof bit (1 or 0).

Definition at line 703 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVM ( uint32_t  PeriphVoltage)

Check if Power Voltage Monitoring is enabled on a peripheral.

Reference Manual to LL API cross reference:
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: (*) value not defined in all devices
Return values:
Stateof bit (1 or 0).

Definition at line 636 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention ( void  )

Check if SRAM2 content retention in Standby mode is enabled.

Reference Manual to LL API cross reference:
CR3 RRS LL_PWR_IsEnabledSRAM2Retention
Return values:
Stateof bit (1 or 0).

Definition at line 825 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 ( void  )

Check if VDDIO2 supply is enabled.

Reference Manual to LL API cross reference:
CR2 IOSV LL_PWR_IsEnabledVddIO2
Return values:
Stateof bit (1 or 0).

Definition at line 575 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB ( void  )

Check if VDDUSB supply is enabled.

Reference Manual to LL API cross reference:
CR2 USV LL_PWR_IsEnabledVddUSB
Return values:
Stateof bit (1 or 0).

Definition at line 543 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsEnabledWakeUpPin ( uint32_t  WakeUpPin)

Check if the WakeUp PINx functionality is enabled.

Reference Manual to LL API cross reference:
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:
Return values:
Stateof bit (1 or 0).

Definition at line 885 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE uint32_t LL_PWR_IsWakeUpPinPolarityLow ( uint32_t  WakeUpPin)

Get the Wake-Up pin polarity for the event detection.

Reference Manual to LL API cross reference:
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:
Return values:
Stateof bit (1 or 0).

Definition at line 1000 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_SetBattChargResistor ( uint32_t  Resistor)

Set the resistor impedance.

Reference Manual to LL API cross reference:
CR4 VBRS LL_PWR_SetBattChargResistor
Parameters:
ResistorThis parameter can be one of the following values:
Return values:
None

Definition at line 898 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_SetPowerMode ( uint32_t  LowPowerMode)

Set Low-Power mode.

Reference Manual to LL API cross reference:
CR1 LPMS LL_PWR_SetPowerMode
Parameters:
LowPowerModeThis parameter can be one of the following values:
Return values:
None

Definition at line 433 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_SetPVDLevel ( uint32_t  PVDLevel)

Configure the voltage threshold detected by the Power Voltage Detector.

Reference Manual to LL API cross reference:
CR2 PLS LL_PWR_SetPVDLevel
Parameters:
PVDLevelThis parameter can be one of the following values:
Return values:
None

Definition at line 655 of file stm32l4xx_ll_pwr.h.

__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.
Reference Manual to LL API cross reference:
CR1 VOS LL_PWR_SetRegulVoltageScaling
Parameters:
VoltageScalingThis parameter can be one of the following values:
Return values:
None

Definition at line 343 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityHigh ( uint32_t  WakeUpPin)

Set the Wake-Up pin polarity high for the event detection.

Reference Manual to LL API cross reference:
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:
Return values:
None

Definition at line 980 of file stm32l4xx_ll_pwr.h.

__STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityLow ( uint32_t  WakeUpPin)

Set the Wake-Up pin polarity low for the event detection.

Reference Manual to LL API cross reference:
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:
Return values:
None

Definition at line 960 of file stm32l4xx_ll_pwr.h.