STM32L4xx_HAL_Driver  1.14.0

Functions

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_InternWU (void)
 Get Internal Wake-up line Flag SR1 WUFI LL_PWR_IsActiveFlag_InternWU. More...
 
__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. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SB (void)
 Get Stand-By Flag SR1 SBF LL_PWR_IsActiveFlag_SB. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5 (void)
 Get Wake-up Flag 5 SR1 WUF5 LL_PWR_IsActiveFlag_WU5. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4 (void)
 Get Wake-up Flag 4 SR1 WUF4 LL_PWR_IsActiveFlag_WU4. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3 (void)
 Get Wake-up Flag 3 SR1 WUF3 LL_PWR_IsActiveFlag_WU3. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2 (void)
 Get Wake-up Flag 2 SR1 WUF2 LL_PWR_IsActiveFlag_WU2. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1 (void)
 Get Wake-up Flag 1 SR1 WUF1 LL_PWR_IsActiveFlag_WU1. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_SB (void)
 Clear Stand-By Flag SCR CSBF LL_PWR_ClearFlag_SB. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU (void)
 Clear Wake-up Flags SCR CWUF LL_PWR_ClearFlag_WU. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU5 (void)
 Clear Wake-up Flag 5 SCR CWUF5 LL_PWR_ClearFlag_WU5. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU4 (void)
 Clear Wake-up Flag 4 SCR CWUF4 LL_PWR_ClearFlag_WU4. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU3 (void)
 Clear Wake-up Flag 3 SCR CWUF3 LL_PWR_ClearFlag_WU3. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU2 (void)
 Clear Wake-up Flag 2 SCR CWUF2 LL_PWR_ClearFlag_WU2. More...
 
__STATIC_INLINE void LL_PWR_ClearFlag_WU1 (void)
 Clear Wake-up Flag 1 SCR CWUF1 LL_PWR_ClearFlag_WU1. More...
 
__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. More...
 
__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. More...
 
__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. More...
 
__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. More...
 
__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_IsActiveFlag_PVDO. More...
 
__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 still changing to the required voltage level SR2 VOSF LL_PWR_IsActiveFlag_VOS. More...
 
__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPF (void)
 Indicate whether the regulator is ready in main mode or is in low-power mode. More...
 
__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. More...
 

Detailed Description

Function Documentation

◆ LL_PWR_ClearFlag_SB()

__STATIC_INLINE void LL_PWR_ClearFlag_SB ( void  )

Clear Stand-By Flag SCR CSBF LL_PWR_ClearFlag_SB.

Return values
None

Definition at line 1439 of file stm32l4xx_ll_pwr.h.

1440 {
1441  WRITE_REG(PWR->SCR, PWR_SCR_CSBF);
1442 }

◆ LL_PWR_ClearFlag_WU()

__STATIC_INLINE void LL_PWR_ClearFlag_WU ( void  )

Clear Wake-up Flags SCR CWUF LL_PWR_ClearFlag_WU.

Return values
None

Definition at line 1449 of file stm32l4xx_ll_pwr.h.

1450 {
1451  WRITE_REG(PWR->SCR, PWR_SCR_CWUF);
1452 }

◆ LL_PWR_ClearFlag_WU1()

__STATIC_INLINE void LL_PWR_ClearFlag_WU1 ( void  )

Clear Wake-up Flag 1 SCR CWUF1 LL_PWR_ClearFlag_WU1.

Return values
None

Definition at line 1499 of file stm32l4xx_ll_pwr.h.

1500 {
1501  WRITE_REG(PWR->SCR, PWR_SCR_CWUF1);
1502 }

◆ LL_PWR_ClearFlag_WU2()

__STATIC_INLINE void LL_PWR_ClearFlag_WU2 ( void  )

Clear Wake-up Flag 2 SCR CWUF2 LL_PWR_ClearFlag_WU2.

Return values
None

Definition at line 1489 of file stm32l4xx_ll_pwr.h.

1490 {
1491  WRITE_REG(PWR->SCR, PWR_SCR_CWUF2);
1492 }

◆ LL_PWR_ClearFlag_WU3()

__STATIC_INLINE void LL_PWR_ClearFlag_WU3 ( void  )

Clear Wake-up Flag 3 SCR CWUF3 LL_PWR_ClearFlag_WU3.

Return values
None

Definition at line 1479 of file stm32l4xx_ll_pwr.h.

1480 {
1481  WRITE_REG(PWR->SCR, PWR_SCR_CWUF3);
1482 }

◆ LL_PWR_ClearFlag_WU4()

__STATIC_INLINE void LL_PWR_ClearFlag_WU4 ( void  )

Clear Wake-up Flag 4 SCR CWUF4 LL_PWR_ClearFlag_WU4.

Return values
None

Definition at line 1469 of file stm32l4xx_ll_pwr.h.

1470 {
1471  WRITE_REG(PWR->SCR, PWR_SCR_CWUF4);
1472 }

◆ LL_PWR_ClearFlag_WU5()

__STATIC_INLINE void LL_PWR_ClearFlag_WU5 ( void  )

Clear Wake-up Flag 5 SCR CWUF5 LL_PWR_ClearFlag_WU5.

Return values
None

Definition at line 1459 of file stm32l4xx_ll_pwr.h.

1460 {
1461  WRITE_REG(PWR->SCR, PWR_SCR_CWUF5);
1462 }

◆ LL_PWR_IsActiveFlag_ExtSMPSReady()

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

Return values
Stateof bit (1 or 0).

Definition at line 1368 of file stm32l4xx_ll_pwr.h.

1369 {
1370  return ((READ_BIT(PWR->SR1, PWR_SR1_EXT_SMPS_RDY) == (PWR_SR1_EXT_SMPS_RDY)) ? 1UL : 0UL);
1371 }

◆ LL_PWR_IsActiveFlag_InternWU()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_InternWU ( void  )

Get Internal Wake-up line Flag SR1 WUFI LL_PWR_IsActiveFlag_InternWU.

Return values
Stateof bit (1 or 0).

Definition at line 1357 of file stm32l4xx_ll_pwr.h.

1358 {
1359  return ((READ_BIT(PWR->SR1, PWR_SR1_WUFI) == (PWR_SR1_WUFI)) ? 1UL : 0UL);
1360 }

◆ LL_PWR_IsActiveFlag_PVDO()

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

Return values
Stateof bit (1 or 0).

Definition at line 1553 of file stm32l4xx_ll_pwr.h.

1554 {
1555  return ((READ_BIT(PWR->SR2, PWR_SR2_PVDO) == (PWR_SR2_PVDO)) ? 1UL : 0UL);
1556 }

◆ LL_PWR_IsActiveFlag_PVMO1()

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

Return values
Stateof bit (1 or 0).

Definition at line 1542 of file stm32l4xx_ll_pwr.h.

1543 {
1544  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO1) == (PWR_SR2_PVMO1)) ? 1UL : 0UL);
1545 }

◆ LL_PWR_IsActiveFlag_PVMO2()

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

Return values
Stateof bit (1 or 0).

Definition at line 1530 of file stm32l4xx_ll_pwr.h.

1531 {
1532  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO2) == (PWR_SR2_PVMO2)) ? 1UL : 0UL);
1533 }

◆ LL_PWR_IsActiveFlag_PVMO3()

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

Return values
Stateof bit (1 or 0).

Definition at line 1519 of file stm32l4xx_ll_pwr.h.

1520 {
1521  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO3) == (PWR_SR2_PVMO3)) ? 1UL : 0UL);
1522 }

◆ LL_PWR_IsActiveFlag_PVMO4()

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

Return values
Stateof bit (1 or 0).

Definition at line 1509 of file stm32l4xx_ll_pwr.h.

1510 {
1511  return ((READ_BIT(PWR->SR2, PWR_SR2_PVMO4) == (PWR_SR2_PVMO4)) ? 1UL : 0UL);
1512 }

◆ LL_PWR_IsActiveFlag_REGLPF()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_REGLPF ( void  )

Indicate whether the regulator is ready in main mode or is in low-power mode.

Note
Take care, return value "0" means the regulator is ready. Return value "1" means the output voltage range is still changing. SR2 REGLPF LL_PWR_IsActiveFlag_REGLPF
Return values
Stateof bit (1 or 0).

Definition at line 1574 of file stm32l4xx_ll_pwr.h.

1575 {
1576  return ((READ_BIT(PWR->SR2, PWR_SR2_REGLPF) == (PWR_SR2_REGLPF)) ? 1UL : 0UL);
1577 }

◆ LL_PWR_IsActiveFlag_REGLPS()

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

Return values
Stateof bit (1 or 0).

Definition at line 1584 of file stm32l4xx_ll_pwr.h.

1585 {
1586  return ((READ_BIT(PWR->SR2, PWR_SR2_REGLPS) == (PWR_SR2_REGLPS)) ? 1UL : 0UL);
1587 }

◆ LL_PWR_IsActiveFlag_SB()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_SB ( void  )

Get Stand-By Flag SR1 SBF LL_PWR_IsActiveFlag_SB.

Return values
Stateof bit (1 or 0).

Definition at line 1379 of file stm32l4xx_ll_pwr.h.

1380 {
1381  return ((READ_BIT(PWR->SR1, PWR_SR1_SBF) == (PWR_SR1_SBF)) ? 1UL : 0UL);
1382 }

◆ LL_PWR_IsActiveFlag_VOS()

__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 still changing to the required voltage level SR2 VOSF LL_PWR_IsActiveFlag_VOS.

Return values
Stateof bit (1 or 0).

Definition at line 1563 of file stm32l4xx_ll_pwr.h.

1564 {
1565  return ((READ_BIT(PWR->SR2, PWR_SR2_VOSF) == (PWR_SR2_VOSF)) ? 1UL : 0UL);
1566 }

◆ LL_PWR_IsActiveFlag_WU1()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU1 ( void  )

Get Wake-up Flag 1 SR1 WUF1 LL_PWR_IsActiveFlag_WU1.

Return values
Stateof bit (1 or 0).

Definition at line 1429 of file stm32l4xx_ll_pwr.h.

1430 {
1431  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF1) == (PWR_SR1_WUF1)) ? 1UL : 0UL);
1432 }

◆ LL_PWR_IsActiveFlag_WU2()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU2 ( void  )

Get Wake-up Flag 2 SR1 WUF2 LL_PWR_IsActiveFlag_WU2.

Return values
Stateof bit (1 or 0).

Definition at line 1419 of file stm32l4xx_ll_pwr.h.

1420 {
1421  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF2) == (PWR_SR1_WUF2)) ? 1UL : 0UL);
1422 }

◆ LL_PWR_IsActiveFlag_WU3()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU3 ( void  )

Get Wake-up Flag 3 SR1 WUF3 LL_PWR_IsActiveFlag_WU3.

Return values
Stateof bit (1 or 0).

Definition at line 1409 of file stm32l4xx_ll_pwr.h.

1410 {
1411  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF3) == (PWR_SR1_WUF3)) ? 1UL : 0UL);
1412 }

◆ LL_PWR_IsActiveFlag_WU4()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU4 ( void  )

Get Wake-up Flag 4 SR1 WUF4 LL_PWR_IsActiveFlag_WU4.

Return values
Stateof bit (1 or 0).

Definition at line 1399 of file stm32l4xx_ll_pwr.h.

1400 {
1401  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF4) == (PWR_SR1_WUF4)) ? 1UL : 0UL);
1402 }

◆ LL_PWR_IsActiveFlag_WU5()

__STATIC_INLINE uint32_t LL_PWR_IsActiveFlag_WU5 ( void  )

Get Wake-up Flag 5 SR1 WUF5 LL_PWR_IsActiveFlag_WU5.

Return values
Stateof bit (1 or 0).

Definition at line 1389 of file stm32l4xx_ll_pwr.h.

1390 {
1391  return ((READ_BIT(PWR->SR1, PWR_SR1_WUF5) == (PWR_SR1_WUF5)) ? 1UL : 0UL);
1392 }