Hal Drivers for L4
Dependents: BSP OneHopeOnePrayer FINAL_AUDIO_RECORD AudioDemo
Fork of STM32L4xx_HAL_Driver by
Configuration
[PWR Exported Functions]
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. |
Function Documentation
__STATIC_INLINE void LL_PWR_DisableBatteryCharging | ( | void | ) |
Disable battery charging CR4 VBE LL_PWR_DisableBatteryCharging.
- Return values:
-
None
Definition at line 759 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_DisableBkUpAccess | ( | void | ) |
Disable access to the backup domain CR1 DBP LL_PWR_DisableBkUpAccess.
- Return values:
-
None
Definition at line 333 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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 1045 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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 915 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_DisableInternWU | ( | void | ) |
Disable Internal Wake-up line CR3 EIWF LL_PWR_DisableInternWU.
- Return values:
-
None
Definition at line 584 of file stm32l4xx_ll_pwr.h.
__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 278 of file stm32l4xx_ll_pwr.h.
__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 614 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_DisablePVD | ( | void | ) |
Disable Power Voltage Detector CR2 PVDE LL_PWR_DisablePVD.
- Return values:
-
None
Definition at line 554 of file stm32l4xx_ll_pwr.h.
__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:
-
PeriphVoltage This 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 478 of file stm32l4xx_ll_pwr.h.
__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 644 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_DisableVddIO2 | ( | void | ) |
Disable VDDIO2 supply CR2 IOSV LL_PWR_DisableVddIO2.
- Return values:
-
None
Definition at line 430 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_DisableVddUSB | ( | void | ) |
Disable VDDUSB supply CR2 USV LL_PWR_DisableVddUSB.
- Return values:
-
None
Definition at line 397 of file stm32l4xx_ll_pwr.h.
__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:
-
WakeUpPin This 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 694 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnableBatteryCharging | ( | void | ) |
Enable battery charging CR4 VBE LL_PWR_EnableBatteryCharging.
- Return values:
-
None
Definition at line 749 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnableBkUpAccess | ( | void | ) |
Enable access to the backup domain CR1 DBP LL_PWR_EnableBkUpAccess.
- Return values:
-
None
Definition at line 323 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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 1001 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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 872 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnableInternWU | ( | void | ) |
Enable Internal Wake-up line CR3 EIWF LL_PWR_EnableInternWU.
- Return values:
-
None
Definition at line 574 of file stm32l4xx_ll_pwr.h.
__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 268 of file stm32l4xx_ll_pwr.h.
__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 604 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnablePVD | ( | void | ) |
Enable Power Voltage Detector CR2 PVDE LL_PWR_EnablePVD.
- Return values:
-
None
Definition at line 544 of file stm32l4xx_ll_pwr.h.
__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:
-
PeriphVoltage This 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 459 of file stm32l4xx_ll_pwr.h.
__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 634 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnableVddIO2 | ( | void | ) |
Enable VDDIO2 supply CR2 IOSV LL_PWR_EnableVddIO2.
- Return values:
-
None
Definition at line 420 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_EnableVddUSB | ( | void | ) |
Enable VDDUSB supply CR2 USV LL_PWR_EnableVddUSB.
- Return values:
-
None
Definition at line 385 of file stm32l4xx_ll_pwr.h.
__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:
-
WakeUpPin This 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 674 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor | ( | void | ) |
Get the resistor impedance CR4 VBRS LL_PWR_GetBattChargResistor.
- Return values:
-
Returned value can be one of the following values: - LL_PWR_BATT_CHARG_RESISTOR_5K
- LL_PWR_BATT_CHARGRESISTOR_1_5K
Definition at line 739 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_GetPowerMode | ( | void | ) |
Get Low-Power mode CR1 LPMS LL_PWR_GetPowerMode.
- Return values:
-
Returned value can be one of the following values: - LL_PWR_MODE_STOP1_MAIN_REGU
- LL_PWR_MODE_STOP1_LP_REGU
- LL_PWR_MODE_STOP2
- LL_PWR_MODE_STANDBY
- LL_PWR_MODE_SHUTDOWN
Definition at line 374 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_GetPVDLevel | ( | void | ) |
Get the voltage threshold detection CR2 PLS LL_PWR_GetPVDLevel.
- Return values:
-
Returned value 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 534 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling | ( | void | ) |
Get the main internal regulator output voltage CR1 VOS LL_PWR_GetRegulVoltageScaling.
- Return values:
-
Returned value can be one of the following values: - LL_PWR_REGU_VOLTAGE_SCALE1
- LL_PWR_REGU_VOLTAGE_SCALE2
Definition at line 313 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging | ( | void | ) |
Check if battery charging is enabled CR4 VBE LL_PWR_IsEnabledBatteryCharging.
- Return values:
-
State of bit (1 or 0).
Definition at line 769 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess | ( | void | ) |
Check if the backup domain is enabled CR1 DBP LL_PWR_IsEnabledBkUpAccess.
- Return values:
-
State of bit (1 or 0).
Definition at line 343 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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:
-
State of bit (1 or 0).
Definition at line 1089 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 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.
- Parameters:
-
GPIO This 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
GPIONumber This 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:
-
State of bit (1 or 0).
Definition at line 958 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU | ( | void | ) |
Check if Internal Wake-up line is enabled CR3 EIWF LL_PWR_IsEnabledInternWU.
- Return values:
-
State of bit (1 or 0).
Definition at line 594 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode | ( | void | ) |
Check if the regulator is in low-power mode CR1 LPR LL_PWR_IsEnabledLowPowerRunMode.
- Return values:
-
State of bit (1 or 0).
Definition at line 288 of file stm32l4xx_ll_pwr.h.
__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:
-
State of bit (1 or 0).
Definition at line 624 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD | ( | void | ) |
Check if Power Voltage Detector is enabled CR2 PVDE LL_PWR_IsEnabledPVD.
- Return values:
-
State of bit (1 or 0).
Definition at line 564 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 CR2 PVME1 LL_PWR_IsEnabledPVM
CR2 PVME2 LL_PWR_IsEnabledPVM
CR2 PVME3 LL_PWR_IsEnabledPVM
CR2 PVME4 LL_PWR_IsEnabledPVM.
- Parameters:
-
PeriphVoltage This 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:
-
State of bit (1 or 0).
Definition at line 497 of file stm32l4xx_ll_pwr.h.
__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:
-
State of bit (1 or 0).
Definition at line 654 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2 | ( | void | ) |
Check if VDDIO2 supply is enabled CR2 IOSV LL_PWR_IsEnabledVddIO2.
- Return values:
-
State of bit (1 or 0).
Definition at line 440 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB | ( | void | ) |
Check if VDDUSB supply is enabled CR2 USV LL_PWR_IsEnabledVddUSB.
- Return values:
-
State of bit (1 or 0).
Definition at line 409 of file stm32l4xx_ll_pwr.h.
__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:
-
WakeUpPin This 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:
-
State of bit (1 or 0).
Definition at line 714 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 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:
-
WakeUpPin This 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:
-
State of bit (1 or 0).
Definition at line 829 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_SetBattChargResistor | ( | uint32_t | Resistor ) |
Set the resistor impedance CR4 VBRS LL_PWR_SetBattChargResistor.
- Parameters:
-
Resistor This 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 727 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_SetPowerMode | ( | uint32_t | LowPowerMode ) |
Set Low-Power mode CR1 LPMS LL_PWR_SetPowerMode.
- Parameters:
-
LowPowerMode This parameter can be one of the following values: - LL_PWR_MODE_STOP1_MAIN_REGU
- LL_PWR_MODE_STOP1_LP_REGU
- LL_PWR_MODE_STOP2
- LL_PWR_MODE_STANDBY
- LL_PWR_MODE_SHUTDOWN
- Return values:
-
None
Definition at line 359 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 CR2 PLS LL_PWR_SetPVDLevel.
- Parameters:
-
PVDLevel This 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 516 of file stm32l4xx_ll_pwr.h.
__STATIC_INLINE void LL_PWR_SetRegulVoltageScaling | ( | uint32_t | VoltageScaling ) |
Set the main internal regulator output voltage CR1 VOS LL_PWR_SetRegulVoltageScaling.
- Parameters:
-
VoltageScaling This parameter can be one of the following values: - LL_PWR_REGU_VOLTAGE_SCALE1
- LL_PWR_REGU_VOLTAGE_SCALE2
- Return values:
-
None
Definition at line 301 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 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:
-
WakeUpPin This 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 809 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 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:
-
WakeUpPin This 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 789 of file stm32l4xx_ll_pwr.h.
Generated on Tue Jul 12 2022 11:35:23 by
