STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_pwr.h
Go to the documentation of this file.
1 
20 /* Define to prevent recursive inclusion -------------------------------------*/
21 #ifndef __STM32L4xx_LL_PWR_H
22 #define __STM32L4xx_LL_PWR_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /* Includes ------------------------------------------------------------------*/
29 #include "stm32l4xx.h"
30 
35 #if defined(PWR)
36 
41 /* Private types -------------------------------------------------------------*/
42 /* Private variables ---------------------------------------------------------*/
43 
44 /* Private constants ---------------------------------------------------------*/
45 
46 /* Private macros ------------------------------------------------------------*/
47 
48 /* Exported types ------------------------------------------------------------*/
49 /* Exported constants --------------------------------------------------------*/
58 #define LL_PWR_SCR_CSBF PWR_SCR_CSBF
59 #define LL_PWR_SCR_CWUF PWR_SCR_CWUF
60 #define LL_PWR_SCR_CWUF5 PWR_SCR_CWUF5
61 #define LL_PWR_SCR_CWUF4 PWR_SCR_CWUF4
62 #define LL_PWR_SCR_CWUF3 PWR_SCR_CWUF3
63 #define LL_PWR_SCR_CWUF2 PWR_SCR_CWUF2
64 #define LL_PWR_SCR_CWUF1 PWR_SCR_CWUF1
65 
73 #define LL_PWR_SR1_WUFI PWR_SR1_WUFI
74 #if defined(PWR_SR1_EXT_SMPS_RDY)
75 #define LL_PWR_SR1_EXT_SMPS_RDY PWR_SR1_EXT_SMPS_RDY
76 #endif /* PWR_SR1_EXT_SMPS_RDY */
77 #define LL_PWR_SR1_SBF PWR_SR1_SBF
78 #define LL_PWR_SR1_WUF5 PWR_SR1_WUF5
79 #define LL_PWR_SR1_WUF4 PWR_SR1_WUF4
80 #define LL_PWR_SR1_WUF3 PWR_SR1_WUF3
81 #define LL_PWR_SR1_WUF2 PWR_SR1_WUF2
82 #define LL_PWR_SR1_WUF1 PWR_SR1_WUF1
83 #if defined(PWR_SR2_PVMO4)
84 #define LL_PWR_SR2_PVMO4 PWR_SR2_PVMO4
85 #endif /* PWR_SR2_PVMO4 */
86 #if defined(PWR_SR2_PVMO3)
87 #define LL_PWR_SR2_PVMO3 PWR_SR2_PVMO3
88 #endif /* PWR_SR2_PVMO3 */
89 #if defined(PWR_SR2_PVMO2)
90 #define LL_PWR_SR2_PVMO2 PWR_SR2_PVMO2
91 #endif /* PWR_SR2_PVMO2 */
92 #if defined(PWR_SR2_PVMO1)
93 #define LL_PWR_SR2_PVMO1 PWR_SR2_PVMO1
94 #endif /* PWR_SR2_PVMO1 */
95 #define LL_PWR_SR2_PVDO PWR_SR2_PVDO
96 #define LL_PWR_SR2_VOSF PWR_SR2_VOSF
97 #define LL_PWR_SR2_REGLPF PWR_SR2_REGLPF
98 #define LL_PWR_SR2_REGLPS PWR_SR2_REGLPS
99 
106 #define LL_PWR_REGU_VOLTAGE_SCALE1 (PWR_CR1_VOS_0)
107 #define LL_PWR_REGU_VOLTAGE_SCALE2 (PWR_CR1_VOS_1)
108 
115 #define LL_PWR_MODE_STOP0 (PWR_CR1_LPMS_STOP0)
116 #define LL_PWR_MODE_STOP1 (PWR_CR1_LPMS_STOP1)
117 #define LL_PWR_MODE_STOP2 (PWR_CR1_LPMS_STOP2)
118 #define LL_PWR_MODE_STANDBY (PWR_CR1_LPMS_STANDBY)
119 #define LL_PWR_MODE_SHUTDOWN (PWR_CR1_LPMS_SHUTDOWN)
120 
127 #if defined(PWR_CR2_PVME1)
128 #define LL_PWR_PVM_VDDUSB_1_2V (PWR_CR2_PVME1) /* Monitoring VDDUSB vs. 1.2V */
129 #endif
130 #if defined(PWR_CR2_PVME2)
131 #define LL_PWR_PVM_VDDIO2_0_9V (PWR_CR2_PVME2) /* Monitoring VDDIO2 vs. 0.9V */
132 #endif
133 #if defined(PWR_CR2_PVME3)
134 #define LL_PWR_PVM_VDDA_1_62V (PWR_CR2_PVME3) /* Monitoring VDDA vs. 1.62V */
135 #endif
136 #if defined(PWR_CR2_PVME4)
137 #define LL_PWR_PVM_VDDA_2_2V (PWR_CR2_PVME4) /* Monitoring VDDA vs. 2.2V */
138 #endif
139 
146 #define LL_PWR_PVDLEVEL_0 (PWR_CR2_PLS_LEV0) /* VPVD0 around 2.0 V */
147 #define LL_PWR_PVDLEVEL_1 (PWR_CR2_PLS_LEV1) /* VPVD1 around 2.2 V */
148 #define LL_PWR_PVDLEVEL_2 (PWR_CR2_PLS_LEV2) /* VPVD2 around 2.4 V */
149 #define LL_PWR_PVDLEVEL_3 (PWR_CR2_PLS_LEV3) /* VPVD3 around 2.5 V */
150 #define LL_PWR_PVDLEVEL_4 (PWR_CR2_PLS_LEV4) /* VPVD4 around 2.6 V */
151 #define LL_PWR_PVDLEVEL_5 (PWR_CR2_PLS_LEV5) /* VPVD5 around 2.8 V */
152 #define LL_PWR_PVDLEVEL_6 (PWR_CR2_PLS_LEV6) /* VPVD6 around 2.9 V */
153 #define LL_PWR_PVDLEVEL_7 (PWR_CR2_PLS_LEV7) /* External input analog voltage (Compare internally to VREFINT) */
154 
161 #define LL_PWR_WAKEUP_PIN1 (PWR_CR3_EWUP1)
162 #define LL_PWR_WAKEUP_PIN2 (PWR_CR3_EWUP2)
163 #define LL_PWR_WAKEUP_PIN3 (PWR_CR3_EWUP3)
164 #define LL_PWR_WAKEUP_PIN4 (PWR_CR3_EWUP4)
165 #define LL_PWR_WAKEUP_PIN5 (PWR_CR3_EWUP5)
166 
173 #define LL_PWR_BATT_CHARG_RESISTOR_5K (0x00000000U)
174 #define LL_PWR_BATT_CHARGRESISTOR_1_5K (PWR_CR4_VBRS)
175 
182 #define LL_PWR_GPIO_A ((uint32_t)(&(PWR->PUCRA)))
183 #define LL_PWR_GPIO_B ((uint32_t)(&(PWR->PUCRB)))
184 #define LL_PWR_GPIO_C ((uint32_t)(&(PWR->PUCRC)))
185 #define LL_PWR_GPIO_D ((uint32_t)(&(PWR->PUCRD)))
186 #define LL_PWR_GPIO_E ((uint32_t)(&(PWR->PUCRE)))
187 #if defined(GPIOF)
188 #define LL_PWR_GPIO_F ((uint32_t)(&(PWR->PUCRF)))
189 #endif
190 #if defined(GPIOG)
191 #define LL_PWR_GPIO_G ((uint32_t)(&(PWR->PUCRG)))
192 #endif
193 #if defined(GPIOH)
194 #define LL_PWR_GPIO_H ((uint32_t)(&(PWR->PUCRH)))
195 #endif
196 #if defined(GPIOI)
197 #define LL_PWR_GPIO_I ((uint32_t)(&(PWR->PUCRI)))
198 #endif
199 
206 #define LL_PWR_GPIO_BIT_0 (0x00000001U)
207 #define LL_PWR_GPIO_BIT_1 (0x00000002U)
208 #define LL_PWR_GPIO_BIT_2 (0x00000004U)
209 #define LL_PWR_GPIO_BIT_3 (0x00000008U)
210 #define LL_PWR_GPIO_BIT_4 (0x00000010U)
211 #define LL_PWR_GPIO_BIT_5 (0x00000020U)
212 #define LL_PWR_GPIO_BIT_6 (0x00000040U)
213 #define LL_PWR_GPIO_BIT_7 (0x00000080U)
214 #define LL_PWR_GPIO_BIT_8 (0x00000100U)
215 #define LL_PWR_GPIO_BIT_9 (0x00000200U)
216 #define LL_PWR_GPIO_BIT_10 (0x00000400U)
217 #define LL_PWR_GPIO_BIT_11 (0x00000800U)
218 #define LL_PWR_GPIO_BIT_12 (0x00001000U)
219 #define LL_PWR_GPIO_BIT_13 (0x00002000U)
220 #define LL_PWR_GPIO_BIT_14 (0x00004000U)
221 #define LL_PWR_GPIO_BIT_15 (0x00008000U)
222 
230 /* Exported macro ------------------------------------------------------------*/
245 #define LL_PWR_WriteReg(__REG__, __VALUE__) WRITE_REG(PWR->__REG__, (__VALUE__))
246 
252 #define LL_PWR_ReadReg(__REG__) READ_REG(PWR->__REG__)
253 
262 /* Exported functions --------------------------------------------------------*/
276 __STATIC_INLINE void LL_PWR_EnableLowPowerRunMode(void)
277 {
278  SET_BIT(PWR->CR1, PWR_CR1_LPR);
279 }
280 
286 __STATIC_INLINE void LL_PWR_DisableLowPowerRunMode(void)
287 {
288  CLEAR_BIT(PWR->CR1, PWR_CR1_LPR);
289 }
290 
296 __STATIC_INLINE void LL_PWR_EnterLowPowerRunMode(void)
297 {
299 }
300 
306 __STATIC_INLINE void LL_PWR_ExitLowPowerRunMode(void)
307 {
309 }
310 
316 __STATIC_INLINE uint32_t LL_PWR_IsEnabledLowPowerRunMode(void)
317 {
318  return ((READ_BIT(PWR->CR1, PWR_CR1_LPR) == (PWR_CR1_LPR)) ? 1UL : 0UL);
319 }
320 
330 __STATIC_INLINE void LL_PWR_SetRegulVoltageScaling(uint32_t VoltageScaling)
331 {
332  MODIFY_REG(PWR->CR1, PWR_CR1_VOS, VoltageScaling);
333 }
334 
342 __STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling(void)
343 {
344  return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_VOS));
345 }
346 
347 #if defined(PWR_CR5_R1MODE)
348 
353 __STATIC_INLINE void LL_PWR_EnableRange1BoostMode(void)
354 {
355  CLEAR_BIT(PWR->CR5, PWR_CR5_R1MODE);
356 }
357 
363 __STATIC_INLINE void LL_PWR_DisableRange1BoostMode(void)
364 {
365  SET_BIT(PWR->CR5, PWR_CR5_R1MODE);
366 }
367 
373 __STATIC_INLINE uint32_t LL_PWR_IsEnabledRange1BoostMode(void)
374 {
375  return ((READ_BIT(PWR->CR5, PWR_CR5_R1MODE) == 0x0U) ? 1UL : 0UL);
376 }
377 #endif /* PWR_CR5_R1MODE */
378 
384 __STATIC_INLINE void LL_PWR_EnableBkUpAccess(void)
385 {
386  SET_BIT(PWR->CR1, PWR_CR1_DBP);
387 }
388 
394 __STATIC_INLINE void LL_PWR_DisableBkUpAccess(void)
395 {
396  CLEAR_BIT(PWR->CR1, PWR_CR1_DBP);
397 }
398 
404 __STATIC_INLINE uint32_t LL_PWR_IsEnabledBkUpAccess(void)
405 {
406  return ((READ_BIT(PWR->CR1, PWR_CR1_DBP) == (PWR_CR1_DBP)) ? 1UL : 0UL);
407 }
408 
420 __STATIC_INLINE void LL_PWR_SetPowerMode(uint32_t LowPowerMode)
421 {
422  MODIFY_REG(PWR->CR1, PWR_CR1_LPMS, LowPowerMode);
423 }
424 
435 __STATIC_INLINE uint32_t LL_PWR_GetPowerMode(void)
436 {
437  return (uint32_t)(READ_BIT(PWR->CR1, PWR_CR1_LPMS));
438 }
439 
440 #if defined(PWR_CR1_RRSTP)
441 
446 __STATIC_INLINE void LL_PWR_EnableSRAM3Retention(void)
447 {
448  SET_BIT(PWR->CR1, PWR_CR1_RRSTP);
449 }
450 
456 __STATIC_INLINE void LL_PWR_DisableSRAM3Retention(void)
457 {
458  CLEAR_BIT(PWR->CR1, PWR_CR1_RRSTP);
459 }
460 
466 __STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM3Retention(void)
467 {
468  return ((READ_BIT(PWR->CR1, PWR_CR1_RRSTP) == (PWR_CR1_RRSTP)) ? 1UL : 0UL);
469 }
470 #endif /* PWR_CR1_RRSTP */
471 
472 #if defined(PWR_CR3_DSIPDEN)
473 
478 __STATIC_INLINE void LL_PWR_EnableDSIPinsPDActivation(void)
479 {
480  SET_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
481 }
482 
488 __STATIC_INLINE void LL_PWR_DisableDSIPinsPDActivation(void)
489 {
490  CLEAR_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
491 }
492 
498 __STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPinsPDActivation(void)
499 {
500  return ((READ_BIT(PWR->CR3, PWR_CR3_DSIPDEN) == (PWR_CR3_DSIPDEN)) ? 1UL : 0UL);
501 }
502 #endif /* PWR_CR3_DSIPDEN */
503 
504 #if defined(PWR_CR2_USV)
505 
510 __STATIC_INLINE void LL_PWR_EnableVddUSB(void)
511 {
512  SET_BIT(PWR->CR2, PWR_CR2_USV);
513 }
514 
520 __STATIC_INLINE void LL_PWR_DisableVddUSB(void)
521 {
522  CLEAR_BIT(PWR->CR2, PWR_CR2_USV);
523 }
524 
530 __STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB(void)
531 {
532  return ((READ_BIT(PWR->CR2, PWR_CR2_USV) == (PWR_CR2_USV)) ? 1UL : 0UL);
533 }
534 #endif
535 
536 #if defined(PWR_CR2_IOSV)
537 
542 __STATIC_INLINE void LL_PWR_EnableVddIO2(void)
543 {
544  SET_BIT(PWR->CR2, PWR_CR2_IOSV);
545 }
546 
552 __STATIC_INLINE void LL_PWR_DisableVddIO2(void)
553 {
554  CLEAR_BIT(PWR->CR2, PWR_CR2_IOSV);
555 }
556 
562 __STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2(void)
563 {
564  return ((READ_BIT(PWR->CR2, PWR_CR2_IOSV) == (PWR_CR2_IOSV)) ? 1UL : 0UL);
565 }
566 #endif
567 
583 __STATIC_INLINE void LL_PWR_EnablePVM(uint32_t PeriphVoltage)
584 {
585  SET_BIT(PWR->CR2, PeriphVoltage);
586 }
587 
603 __STATIC_INLINE void LL_PWR_DisablePVM(uint32_t PeriphVoltage)
604 {
605  CLEAR_BIT(PWR->CR2, PeriphVoltage);
606 }
607 
623 __STATIC_INLINE uint32_t LL_PWR_IsEnabledPVM(uint32_t PeriphVoltage)
624 {
625  return ((READ_BIT(PWR->CR2, PeriphVoltage) == (PeriphVoltage)) ? 1UL : 0UL);
626 }
627 
642 __STATIC_INLINE void LL_PWR_SetPVDLevel(uint32_t PVDLevel)
643 {
644  MODIFY_REG(PWR->CR2, PWR_CR2_PLS, PVDLevel);
645 }
646 
660 __STATIC_INLINE uint32_t LL_PWR_GetPVDLevel(void)
661 {
662  return (uint32_t)(READ_BIT(PWR->CR2, PWR_CR2_PLS));
663 }
664 
670 __STATIC_INLINE void LL_PWR_EnablePVD(void)
671 {
672  SET_BIT(PWR->CR2, PWR_CR2_PVDE);
673 }
674 
680 __STATIC_INLINE void LL_PWR_DisablePVD(void)
681 {
682  CLEAR_BIT(PWR->CR2, PWR_CR2_PVDE);
683 }
684 
690 __STATIC_INLINE uint32_t LL_PWR_IsEnabledPVD(void)
691 {
692  return ((READ_BIT(PWR->CR2, PWR_CR2_PVDE) == (PWR_CR2_PVDE)) ? 1UL : 0UL);
693 }
694 
700 __STATIC_INLINE void LL_PWR_EnableInternWU(void)
701 {
702  SET_BIT(PWR->CR3, PWR_CR3_EIWF);
703 }
704 
710 __STATIC_INLINE void LL_PWR_DisableInternWU(void)
711 {
712  CLEAR_BIT(PWR->CR3, PWR_CR3_EIWF);
713 }
714 
720 __STATIC_INLINE uint32_t LL_PWR_IsEnabledInternWU(void)
721 {
722  return ((READ_BIT(PWR->CR3, PWR_CR3_EIWF) == (PWR_CR3_EIWF)) ? 1UL : 0UL);
723 }
724 
730 __STATIC_INLINE void LL_PWR_EnablePUPDCfg(void)
731 {
732  SET_BIT(PWR->CR3, PWR_CR3_APC);
733 }
734 
740 __STATIC_INLINE void LL_PWR_DisablePUPDCfg(void)
741 {
742  CLEAR_BIT(PWR->CR3, PWR_CR3_APC);
743 }
744 
750 __STATIC_INLINE uint32_t LL_PWR_IsEnabledPUPDCfg(void)
751 {
752  return ((READ_BIT(PWR->CR3, PWR_CR3_APC) == (PWR_CR3_APC)) ? 1UL : 0UL);
753 }
754 
755 #if defined(PWR_CR3_DSIPDEN)
756 
761 __STATIC_INLINE void LL_PWR_EnableDSIPullDown(void)
762 {
763  SET_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
764 }
765 
771 __STATIC_INLINE void LL_PWR_DisableDSIPullDown(void)
772 {
773  CLEAR_BIT(PWR->CR3, PWR_CR3_DSIPDEN);
774 }
775 
781 __STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPullDown(void)
782 {
783  return ((READ_BIT(PWR->CR3, PWR_CR3_DSIPDEN) == (PWR_CR3_DSIPDEN)) ? 1UL : 0UL);
784 }
785 #endif /* PWR_CR3_DSIPDEN */
786 
787 #if defined(PWR_CR3_ENULP)
788 
793 __STATIC_INLINE void LL_PWR_EnableBORPVD_ULP(void)
794 {
795  SET_BIT(PWR->CR3, PWR_CR3_ENULP);
796 }
797 
803 __STATIC_INLINE void LL_PWR_DisableBORPVD_ULP(void)
804 {
805  CLEAR_BIT(PWR->CR3, PWR_CR3_ENULP);
806 }
807 
813 __STATIC_INLINE uint32_t LL_PWR_IsEnabledBORPVD_ULP(void)
814 {
815  return ((READ_BIT(PWR->CR3, PWR_CR3_ENULP) == (PWR_CR3_ENULP)) ? 1UL : 0UL);
816 }
817 #endif /* PWR_CR3_ENULP */
818 
824 __STATIC_INLINE void LL_PWR_EnableSRAM2Retention(void)
825 {
826  SET_BIT(PWR->CR3, PWR_CR3_RRS);
827 }
828 
834 __STATIC_INLINE void LL_PWR_DisableSRAM2Retention(void)
835 {
836  CLEAR_BIT(PWR->CR3, PWR_CR3_RRS);
837 }
838 
844 __STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM2Retention(void)
845 {
846  return ((READ_BIT(PWR->CR3, PWR_CR3_RRS) == (PWR_CR3_RRS)) ? 1UL : 0UL);
847 }
848 
864 __STATIC_INLINE void LL_PWR_EnableWakeUpPin(uint32_t WakeUpPin)
865 {
866  SET_BIT(PWR->CR3, WakeUpPin);
867 }
868 
884 __STATIC_INLINE void LL_PWR_DisableWakeUpPin(uint32_t WakeUpPin)
885 {
886  CLEAR_BIT(PWR->CR3, WakeUpPin);
887 }
888 
904 __STATIC_INLINE uint32_t LL_PWR_IsEnabledWakeUpPin(uint32_t WakeUpPin)
905 {
906  return ((READ_BIT(PWR->CR3, WakeUpPin) == (WakeUpPin)) ? 1UL : 0UL);
907 }
908 
909 #if defined(PWR_CR4_EXT_SMPS_ON)
910 
917 __STATIC_INLINE void LL_PWR_EnableExtSMPS_0V95(void)
918 {
919  SET_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON);
920 }
921 
929 __STATIC_INLINE void LL_PWR_DisableExtSMPS_0V95(void)
930 {
931  CLEAR_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON);
932 }
933 
941 __STATIC_INLINE uint32_t LL_PWR_IsEnabledExtSMPS_0V95(void)
942 {
943  return ((READ_BIT(PWR->CR4, PWR_CR4_EXT_SMPS_ON) == (PWR_CR4_EXT_SMPS_ON)) ? 1UL : 0UL);
944 }
945 #endif /* PWR_CR4_EXT_SMPS_ON */
946 
955 __STATIC_INLINE void LL_PWR_SetBattChargResistor(uint32_t Resistor)
956 {
957  MODIFY_REG(PWR->CR4, PWR_CR4_VBRS, Resistor);
958 }
959 
967 __STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor(void)
968 {
969  return (uint32_t)(READ_BIT(PWR->CR4, PWR_CR4_VBRS));
970 }
971 
977 __STATIC_INLINE void LL_PWR_EnableBatteryCharging(void)
978 {
979  SET_BIT(PWR->CR4, PWR_CR4_VBE);
980 }
981 
987 __STATIC_INLINE void LL_PWR_DisableBatteryCharging(void)
988 {
989  CLEAR_BIT(PWR->CR4, PWR_CR4_VBE);
990 }
991 
997 __STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging(void)
998 {
999  return ((READ_BIT(PWR->CR4, PWR_CR4_VBE) == (PWR_CR4_VBE)) ? 1UL : 0UL);
1000 }
1001 
1017 __STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityLow(uint32_t WakeUpPin)
1018 {
1019  SET_BIT(PWR->CR4, WakeUpPin);
1020 }
1021 
1037 __STATIC_INLINE void LL_PWR_SetWakeUpPinPolarityHigh(uint32_t WakeUpPin)
1038 {
1039  CLEAR_BIT(PWR->CR4, WakeUpPin);
1040 }
1041 
1057 __STATIC_INLINE uint32_t LL_PWR_IsWakeUpPinPolarityLow(uint32_t WakeUpPin)
1058 {
1059  return ((READ_BIT(PWR->CR4, WakeUpPin) == (WakeUpPin)) ? 1UL : 0UL);
1060 }
1061 
1104 __STATIC_INLINE void LL_PWR_EnableGPIOPullUp(uint32_t GPIO, uint32_t GPIONumber)
1105 {
1106  SET_BIT(*((__IO uint32_t *)GPIO), GPIONumber);
1107 }
1108 
1151 __STATIC_INLINE void LL_PWR_DisableGPIOPullUp(uint32_t GPIO, uint32_t GPIONumber)
1152 {
1153  CLEAR_BIT(*((__IO uint32_t *)GPIO), GPIONumber);
1154 }
1155 
1198 __STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullUp(uint32_t GPIO, uint32_t GPIONumber)
1199 {
1200  return ((READ_BIT(*((__IO uint32_t *)GPIO), GPIONumber) == (GPIONumber)) ? 1UL : 0UL);
1201 }
1202 
1245 __STATIC_INLINE void LL_PWR_EnableGPIOPullDown(uint32_t GPIO, uint32_t GPIONumber)
1246 {
1247  SET_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber);
1248 }
1249 
1292 __STATIC_INLINE void LL_PWR_DisableGPIOPullDown(uint32_t GPIO, uint32_t GPIONumber)
1293 {
1294  CLEAR_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber);
1295 }
1296 
1339 __STATIC_INLINE uint32_t LL_PWR_IsEnabledGPIOPullDown(uint32_t GPIO, uint32_t GPIONumber)
1340 {
1341  return ((READ_BIT(*((__IO uint32_t *)(GPIO + 4U)), GPIONumber) == (GPIONumber)) ? 1UL : 0UL);
1342 }
1343 
1357 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_InternWU(void)
1358 {
1359  return ((READ_BIT(PWR->SR1, PWR_SR1_WUFI) == (PWR_SR1_WUFI)) ? 1UL : 0UL);
1360 }
1361 
1362 #if defined(PWR_SR1_EXT_SMPS_RDY)
1363 
1368 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_ExtSMPSReady(void)
1369 {
1370  return ((READ_BIT(PWR->SR1, PWR_SR1_EXT_SMPS_RDY) == (PWR_SR1_EXT_SMPS_RDY)) ? 1UL : 0UL);
1371 }
1372 #endif /* PWR_SR1_EXT_SMPS_RDY */
1373 
1379 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SB(void)
1380 {
1381  return ((READ_BIT(PWR->SR1, PWR_SR1_SBF) == (PWR_SR1_SBF)) ? 1UL : 0UL);
1382 }
1383 
1389 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5(void)
1390 {
1391  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF5) == (PWR_SR1_WUF5)) ? 1UL : 0UL);
1392 }
1393 
1399 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4(void)
1400 {
1401  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF4) == (PWR_SR1_WUF4)) ? 1UL : 0UL);
1402 }
1403 
1409 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3(void)
1410 {
1411  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF3) == (PWR_SR1_WUF3)) ? 1UL : 0UL);
1412 }
1413 
1419 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2(void)
1420 {
1421  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF2) == (PWR_SR1_WUF2)) ? 1UL : 0UL);
1422 }
1423 
1429 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1(void)
1430 {
1431  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF1) == (PWR_SR1_WUF1)) ? 1UL : 0UL);
1432 }
1433 
1439 __STATIC_INLINE void LL_PWR_ClearFlag_SB(void)
1440 {
1441  WRITE_REG(PWR->SCR, PWR_SCR_CSBF);
1442 }
1443 
1449 __STATIC_INLINE void LL_PWR_ClearFlag_WU(void)
1450 {
1451  WRITE_REG(PWR->SCR, PWR_SCR_CWUF);
1452 }
1453 
1459 __STATIC_INLINE void LL_PWR_ClearFlag_WU5(void)
1460 {
1461  WRITE_REG(PWR->SCR, PWR_SCR_CWUF5);
1462 }
1463 
1469 __STATIC_INLINE void LL_PWR_ClearFlag_WU4(void)
1470 {
1471  WRITE_REG(PWR->SCR, PWR_SCR_CWUF4);
1472 }
1473 
1479 __STATIC_INLINE void LL_PWR_ClearFlag_WU3(void)
1480 {
1481  WRITE_REG(PWR->SCR, PWR_SCR_CWUF3);
1482 }
1483 
1489 __STATIC_INLINE void LL_PWR_ClearFlag_WU2(void)
1490 {
1491  WRITE_REG(PWR->SCR, PWR_SCR_CWUF2);
1492 }
1493 
1499 __STATIC_INLINE void LL_PWR_ClearFlag_WU1(void)
1500 {
1501  WRITE_REG(PWR->SCR, PWR_SCR_CWUF1);
1502 }
1503 
1509 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO4(void)
1510 {
1511  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO4) == (PWR_SR2_PVMO4)) ? 1UL : 0UL);
1512 }
1513 
1519 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO3(void)
1520 {
1521  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO3) == (PWR_SR2_PVMO3)) ? 1UL : 0UL);
1522 }
1523 
1524 #if defined(PWR_SR2_PVMO2)
1525 
1530 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO2(void)
1531 {
1532  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO2) == (PWR_SR2_PVMO2)) ? 1UL : 0UL);
1533 }
1534 #endif /* PWR_SR2_PVMO2 */
1535 
1536 #if defined(PWR_SR2_PVMO1)
1537 
1542 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO1(void)
1543 {
1544  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO1) == (PWR_SR2_PVMO1)) ? 1UL : 0UL);
1545 }
1546 #endif /* PWR_SR2_PVMO1 */
1547 
1553 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVDO(void)
1554 {
1555  return ((READ_BIT(PWR->SR2, PWR_SR2_PVDO) == (PWR_SR2_PVDO)) ? 1UL : 0UL);
1556 }
1557 
1563 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VOS(void)
1564 {
1565  return ((READ_BIT(PWR->SR2, PWR_SR2_VOSF) == (PWR_SR2_VOSF)) ? 1UL : 0UL);
1566 }
1567 
1574 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPF(void)
1575 {
1576  return ((READ_BIT(PWR->SR2, PWR_SR2_REGLPF) == (PWR_SR2_REGLPF)) ? 1UL : 0UL);
1577 }
1578 
1584 __STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPS(void)
1585 {
1586  return ((READ_BIT(PWR->SR2, PWR_SR2_REGLPS) == (PWR_SR2_REGLPS)) ? 1UL : 0UL);
1587 }
1588 
1593 #if defined(USE_FULL_LL_DRIVER)
1594 
1597 ErrorStatus LL_PWR_DeInit(void);
1601 #endif /* USE_FULL_LL_DRIVER */
1602 
1606 /* Old functions name kept for legacy purpose, to be replaced by the */
1607 /* current functions name. */
1608 #define LL_PWR_IsActiveFlag_VOSF LL_PWR_IsActiveFlag_VOS
1609 
1621 #endif /* defined(PWR) */
1622 
1627 #ifdef __cplusplus
1628 }
1629 #endif
1630 
1631 #endif /* __STM32L4xx_LL_PWR_H */
1632 
1633 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
__STATIC_INLINE void LL_PWR_DisableSRAM2Retention(void)
Disable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_DisableSRAM2Retention.
ErrorStatus LL_PWR_DeInit(void)
De-initialize the PWR registers to their default reset values.
__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 ...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SB(void)
Get Stand-By Flag SR1 SBF LL_PWR_IsActiveFlag_SB.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVDO(void)
Indicate whether VDD voltage is below or above the selected PVD threshold SR2 PVDO LL_PWR_IsActiveFl...
__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_DisablePVD(void)
Disable Power Voltage Detector CR2 PVDE LL_PWR_DisablePVD.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPullDown(void)
Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPullDown.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledExtSMPS_0V95(void)
Check if CFLDO is working @ 0.95V.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledBatteryCharging(void)
Check if battery charging is enabled CR4 VBE LL_PWR_IsEnabledBatteryCharging.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledSRAM3Retention(void)
Check if SRAM3 content retention in Stop mode is enabled CR1 RRSTP LL_PWR_IsEnabledSRAM3Retention.
__STATIC_INLINE void LL_PWR_DisableBkUpAccess(void)
Disable access to the backup domain CR1 DBP LL_PWR_DisableBkUpAccess.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3(void)
Get Wake-up Flag 3 SR1 WUF3 LL_PWR_IsActiveFlag_WU3.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddIO2(void)
Check if VDDIO2 supply is enabled CR2 IOSV LL_PWR_IsEnabledVddIO2.
__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 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_SetPVDLevel(uint32_t PVDLevel)
Configure the voltage threshold detected by the Power Voltage Detector CR2 PLS LL_PWR_SetPVDLevel.
__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 ...
__STATIC_INLINE void LL_PWR_EnableInternWU(void)
Enable Internal Wake-up line CR3 EIWF LL_PWR_EnableInternWU.
__STATIC_INLINE void LL_PWR_ClearFlag_WU(void)
Clear Wake-up Flags SCR CWUF LL_PWR_ClearFlag_WU.
__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 PD...
__STATIC_INLINE void LL_PWR_DisableDSIPullDown(void)
Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPullDown.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1(void)
Get Wake-up Flag 1 SR1 WUF1 LL_PWR_IsActiveFlag_WU1.
__STATIC_INLINE uint32_t LL_PWR_GetRegulVoltageScaling(void)
Get the main internal regulator output voltage CR1 VOS LL_PWR_GetRegulVoltageScaling.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO2(void)
Indicate whether VDDIO2 voltage is below or above PVM2 threshold SR2 PVMO2 LL_PWR_IsActiveFlag_PVMO2...
__STATIC_INLINE void LL_PWR_EnableRange1BoostMode(void)
Enable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_EnableRange1BoostMode.
__STATIC_INLINE void LL_PWR_DisableWakeUpPin(uint32_t WakeUpPin)
Disable the WakeUp PINx functionality CR3 EWUP1 LL_PWR_DisableWakeUpPin CR3 EWUP2 LL_PWR_DisableWak...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO1(void)
Indicate whether VDDUSB voltage is below or above PVM1 threshold SR2 PVMO1 LL_PWR_IsActiveFlag_PVMO1...
__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 C...
__STATIC_INLINE void LL_PWR_EnterLowPowerRunMode(void)
Switch from run main mode to run low-power mode. CR1 LPR LL_PWR_EnterLowPowerRunMode.
__STATIC_INLINE void LL_PWR_EnableBatteryCharging(void)
Enable battery charging CR4 VBE LL_PWR_EnableBatteryCharging.
__STATIC_INLINE void LL_PWR_EnableWakeUpPin(uint32_t WakeUpPin)
Enable the WakeUp PINx functionality CR3 EWUP1 LL_PWR_EnableWakeUpPin CR3 EWUP2 LL_PWR_EnableWakeUp...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO3(void)
Indicate whether VDDA voltage is below or above PVM3 threshold SR2 PVMO3 LL_PWR_IsActiveFlag_PVMO3.
CLEAR_BIT(hrtc->Instance->CR, RTC_CR_WUTE)
__STATIC_INLINE void LL_PWR_DisableVddIO2(void)
Disable VDDIO2 supply CR2 IOSV LL_PWR_DisableVddIO2.
__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_...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_VOS(void)
Indicate whether the regulator is ready in the selected voltage range or if its output voltage is sti...
__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_EnableDSIPinsPDActivation(void)
Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPinsPDActivation.
__STATIC_INLINE void LL_PWR_DisableBatteryCharging(void)
Disable battery charging CR4 VBE LL_PWR_DisableBatteryCharging.
__STATIC_INLINE void LL_PWR_EnablePUPDCfg(void)
Enable pull-up and pull-down configuration CR3 APC LL_PWR_EnablePUPDCfg.
__STATIC_INLINE void LL_PWR_DisableInternWU(void)
Disable Internal Wake-up line CR3 EIWF LL_PWR_DisableInternWU.
__STATIC_INLINE void LL_PWR_DisableVddUSB(void)
Disable VDDUSB supply CR2 USV LL_PWR_DisableVddUSB.
__STATIC_INLINE void LL_PWR_EnableBkUpAccess(void)
Enable access to the backup domain CR1 DBP LL_PWR_EnableBkUpAccess.
__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 PUCR...
__STATIC_INLINE void LL_PWR_EnableVddUSB(void)
Enable VDDUSB supply CR2 USV LL_PWR_EnableVddUSB.
__STATIC_INLINE void LL_PWR_ClearFlag_SB(void)
Clear Stand-By Flag SCR CSBF LL_PWR_ClearFlag_SB.
__STATIC_INLINE void LL_PWR_ClearFlag_WU5(void)
Clear Wake-up Flag 5 SCR CWUF5 LL_PWR_ClearFlag_WU5.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_PVMO4(void)
Indicate whether VDDA voltage is below or above PVM4 threshold SR2 PVMO4 LL_PWR_IsActiveFlag_PVMO4.
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2(void)
Get Wake-up Flag 2 SR1 WUF2 LL_PWR_IsActiveFlag_WU2.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledRange1BoostMode(void)
Check if the main regulator voltage range 1 boost mode is enabled CR5 R1MODE LL_PWR_IsEnabledRange1B...
__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...
__STATIC_INLINE void LL_PWR_ClearFlag_WU3(void)
Clear Wake-up Flag 3 SCR CWUF3 LL_PWR_ClearFlag_WU3.
__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_...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPF(void)
Indicate whether the regulator is ready in main mode or is in low-power mode.
__STATIC_INLINE void LL_PWR_ClearFlag_WU2(void)
Clear Wake-up Flag 2 SCR CWUF2 LL_PWR_ClearFlag_WU2.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledVddUSB(void)
Check if VDDUSB supply is enabled CR2 USV LL_PWR_IsEnabledVddUSB.
__STATIC_INLINE void LL_PWR_EnableDSIPullDown(void)
Enable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_EnableDSIPullDown.
__STATIC_INLINE uint32_t LL_PWR_IsEnabledDSIPinsPDActivation(void)
Check if pull-down activation on DSI pins is enabled CR3 DSIPDEN LL_PWR_IsEnabledDSIPinsPDActivation...
__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 ...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4(void)
Get Wake-up Flag 4 SR1 WUF4 LL_PWR_IsActiveFlag_WU4.
__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_...
__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_Ena...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPS(void)
Indicate whether or not the low-power regulator is ready SR2 REGLPS LL_PWR_IsActiveFlag_REGLPS.
__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_...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_InternWU(void)
Get Internal Wake-up line Flag SR1 WUFI LL_PWR_IsActiveFlag_InternWU.
__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_DisableBORPV...
__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.
__STATIC_INLINE uint32_t LL_PWR_GetBattChargResistor(void)
Get the resistor impedance CR4 VBRS LL_PWR_GetBattChargResistor.
__STATIC_INLINE uint32_t LL_PWR_GetPowerMode(void)
Get Low-Power mode CR1 LPMS LL_PWR_GetPowerMode.
__STATIC_INLINE void LL_PWR_DisablePUPDCfg(void)
Disable pull-up and pull-down configuration CR3 APC LL_PWR_DisablePUPDCfg.
__STATIC_INLINE void LL_PWR_DisableExtSMPS_0V95(void)
Disable the CFLDO working @ 0.95V.
__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_EnableExtSMPS_0V95(void)
Enable the CFLDO working @ 0.95V.
MODIFY_REG(hrtc->Instance->CR, RTC_CR_WUCKSEL,(uint32_t) WakeUpClock)
__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_DisableRange1BoostMode(void)
Disable main regulator voltage range 1 boost mode CR5 R1MODE LL_PWR_DisableRange1BoostMode.
__STATIC_INLINE void LL_PWR_DisableSRAM3Retention(void)
Disable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_DisableSRAM3Retention.
__STATIC_INLINE void LL_PWR_EnableSRAM3Retention(void)
Enable SRAM3 content retention in Stop mode CR1 RRSTP LL_PWR_EnableSRAM3Retention.
__STATIC_INLINE void LL_PWR_EnableSRAM2Retention(void)
Enable SRAM2 content retention in Standby mode CR3 RRS LL_PWR_EnableSRAM2Retention.
__STATIC_INLINE void LL_PWR_DisableDSIPinsPDActivation(void)
Disable pull-down activation on DSI pins CR3 DSIPDEN LL_PWR_DisableDSIPinsPDActivation.
__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_...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5(void)
Get Wake-up Flag 5 SR1 WUF5 LL_PWR_IsActiveFlag_WU5.
__STATIC_INLINE void LL_PWR_ExitLowPowerRunMode(void)
Switch from run main mode to low-power mode. CR1 LPR LL_PWR_ExitLowPowerRunMode. ...
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_ExtSMPSReady(void)
Get Ready Flag for switching to external SMPS SR1 EXT_SMPS_RDY LL_PWR_IsActiveFlag_ExtSMPSReady.
__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 PVME...
__STATIC_INLINE void LL_PWR_DisableLowPowerRunMode(void)
Switch the regulator from low-power mode to main mode CR1 LPR LL_PWR_DisableLowPowerRunMode.
__STATIC_INLINE void LL_PWR_ClearFlag_WU4(void)
Clear Wake-up Flag 4 SCR CWUF4 LL_PWR_ClearFlag_WU4.
__STATIC_INLINE void LL_PWR_ClearFlag_WU1(void)
Clear Wake-up Flag 1 SCR CWUF1 LL_PWR_ClearFlag_WU1.
__STATIC_INLINE void LL_PWR_SetBattChargResistor(uint32_t Resistor)
Set the resistor impedance CR4 VBRS LL_PWR_SetBattChargResistor.
__STATIC_INLINE void LL_PWR_SetPowerMode(uint32_t LowPowerMode)
Set Low-Power mode CR1 LPMS LL_PWR_SetPowerMode.
__STATIC_INLINE void LL_PWR_EnableVddIO2(void)
Enable VDDIO2 supply CR2 IOSV LL_PWR_EnableVddIO2.
__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_DisablePVM(uint32_t PeriphVoltage)
Disable the Power Voltage Monitoring on a peripheral CR2 PVME1 LL_PWR_DisablePVM CR2 PVME2 LL_PWR_D...