LL PWR Functions

PWR Configuration

group PWR_LL_EF_CONFIGURATION

Functions

void LL_PWR_SetPowerMode ( uint32_t mode )

Set system power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 LPMS LL_PWR_SetPowerMode

Parameters :

mode – This parameter can be one of the following values:

uint32_t LL_PWR_GetPowerMode ( void )

Get system power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 LPMS LL_PWR_GetPowerMode

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableMemoryRunRetention ( uint32_t memory )

Enable memory content run retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM1PD LL_PWR_EnableMemoryRunRetention

CR1 SRAM2PD LL_PWR_EnableMemoryRunRetention

CR1 SRAM3PD LL_PWR_EnableMemoryRunRetention

CR1 SRAM4PD LL_PWR_EnableMemoryRunRetention

CR1 SRAM5PD LL_PWR_EnableMemoryRunRetention

CR1 SRAM6PD LL_PWR_EnableMemoryRunRetention

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

void LL_PWR_DisableMemoryRunRetention ( uint32_t memory )

Disable memory content run retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM1PD LL_PWR_DisableMemoryRunRetention

CR1 SRAM2PD LL_PWR_DisableMemoryRunRetention

CR1 SRAM3PD LL_PWR_DisableMemoryRunRetention

CR1 SRAM4PD LL_PWR_DisableMemoryRunRetention

CR1 SRAM5PD LL_PWR_DisableMemoryRunRetention

CR1 SRAM6PD LL_PWR_DisableMemoryRunRetention

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

uint32_t LL_PWR_IsEnabledMemoryRunRetention ( uint32_t memory )

Disable memory content run retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM1PD LL_PWR_IsEnabledMemoryRunRetention

CR1 SRAM2PD LL_PWR_IsEnabledMemoryRunRetention

CR1 SRAM3PD LL_PWR_IsEnabledMemoryRunRetention

CR1 SRAM4PD LL_PWR_IsEnabledMemoryRunRetention

CR1 SRAM5PD LL_PWR_IsEnabledMemoryRunRetention

CR1 SRAM6PD LL_PWR_IsEnabledMemoryRunRetention

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableMemoryStandbyRetention ( uint32_t memory )

Enable memory content standby retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RRSB1 LL_PWR_EnableMemoryStandbyRetention

CR1 RRSB2 LL_PWR_EnableMemoryStandbyRetention

Parameters :

memory – This parameter can be one of the following values:

void LL_PWR_DisableMemoryStandbyRetention ( uint32_t memory )

Disable memory content standby retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RRSB1 LL_PWR_DisableMemoryStandbyRetention

CR1 RRSB2 LL_PWR_DisableMemoryStandbyRetention

Parameters :

memory – This parameter can be one of the following values:

uint32_t LL_PWR_IsEnabledMemoryStandbyRetention ( uint32_t memory )

Check if the memory content standby retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RRSB1 LL_PWR_IsEnabledMemoryStandbyRetention

CR1 RRSB2 LL_PWR_IsEnabledMemoryStandbyRetention

Parameters :

memory – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableMemoryStopRetention ( uint32_t memory )

Enable memory content stop retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDSx LL_PWR_EnableMemoryStopRetention

CR2 SRAPM2PDSx LL_PWR_EnableMemoryStopRetention

CR2 SRAM4PDS LL_PWR_EnableMemoryStopRetention

CR2 DC2RAMPDS LL_PWR_EnableMemoryStopRetention

CR2 ICRAMPDS LL_PWR_EnableMemoryStopRetention

CR2 DC1RAMPDS LL_PWR_EnableMemoryStopRetention

CR2 DMA2DPDS LL_PWR_EnableMemoryStopRetention

CR2 PRAMPDS LL_PWR_EnableMemoryStopRetention

CR2 SRAM3PDSx LL_PWR_EnableMemoryStopRetention

Note

SRAM1PDSx (x= 1 to 3) SRAPM2PDSx (x= 1 to 2) SRAM3PDSx (x= 1 to 8)

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

void LL_PWR_DisableMemoryStopRetention ( uint32_t memory )

Disable memory content stop retention.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDSx LL_PWR_DisableMemoryStopRetention

CR2 SRAPM2PDSx LL_PWR_DisableMemoryStopRetention

CR2 SRAM4PDS LL_PWR_DisableMemoryStopRetention

CR2 DC2RAMPDS LL_PWR_DisableMemoryStopRetention

CR2 ICRAMPDS LL_PWR_DisableMemoryStopRetention

CR2 DC1RAMPDS LL_PWR_DisableMemoryStopRetention

CR2 DMA2DPDS LL_PWR_DisableMemoryStopRetention

CR2 PRAMPDS LL_PWR_DisableMemoryStopRetention

CR2 SRAM3PDSx LL_PWR_DisableMemoryStopRetention

Note

SRAM1PDSx (x= 1 to 3) SRAPM2PDSx (x= 1 to 2) SRAM3PDSx (x= 1 to 8)

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

uint32_t LL_PWR_IsEnabledMemoryStopRetention ( uint32_t memory )

Check if memory retention in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM6PDSx LL_PWR_IsEnabledMemoryStopRetention

Note

(*) value not defined in all devices

Parameters :

memory – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM2SBRetention ( uint32_t SRAM2PageRetention )

Set the SRAM2 page(s) retention in Standby mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RRSB1 LL_PWR_SetSRAM2SBRetention

CR1 RRSB2 LL_PWR_SetSRAM2SBRetention

Parameters :

SRAM2PageRetention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM2SBRetention ( void )

Get the SRAM2 page(s) retention in Standby mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 RRSB1 LL_PWR_GetSRAM2SBRetention

CR1 RRSB2 LL_PWR_GetSRAM2SBRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetBORStandbyMode ( uint32_t mode )

Set BOR ultra low power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UPLMEN LL_PWR_SetBORStandbyMode

Parameters :

mode – This parameter can be one of the following values:

uint32_t LL_PWR_GetBORStandbyMode ( void )

Get BOR ultra low power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UPLMEN LL_PWR_GetBORStandbyMode

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableUltraLowPowerMode ( void )

Enable BOR ultra low power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UPLMEN LL_PWR_EnableUltraLowPowerMode

void LL_PWR_DisableUltraLowPowerMode ( void )

Disable BOR ultra low-power mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UPLMEN LL_PWR_DisableUltraLowPowerMode

uint32_t LL_PWR_IsEnabledUltraLowPowerMode ( void )

Check if BOR ultra low power mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 UPLMEN LL_PWR_IsEnabledUltraLowPowerMode

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM1RunRetention ( uint32_t sram1_retention )

Set the SRAM1 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM1PD LL_PWR_SetSRAM1RunRetention

Parameters :

sram1_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM1RunRetention ( void )

Get the SRAM1 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM1PD LL_PWR_GetSRAM1RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM2RunRetention ( uint32_t sram2_retention )

Set the SRAM2 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM2PD LL_PWR_SetSRAM2RunRetention

Parameters :

sram2_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM2RunRetention ( void )

Get the SRAM2 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM2PD LL_PWR_GetSRAM2RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM3RunRetention ( uint32_t sram3_retention )

Set the SRAM3 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM3PD LL_PWR_SetSRAM3RunRetention

Parameters :

sram3_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM3RunRetention ( void )

Get the SRAM3 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM3PD LL_PWR_GetSRAM3RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM4RunRetention ( uint32_t sram4_retention )

Set the SRAM4 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM4PD LL_PWR_SetSRAM4RunRetention

Parameters :

sram4_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM4RunRetention ( void )

Get the SRAM4 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM4PD LL_PWR_GetSRAM4RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM5RunRetention ( uint32_t sram5_retention )

Set the SRAM5 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM5PD LL_PWR_SetSRAM5RunRetention

Parameters :

sram5_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM5RunRetention ( void )

Get the SRAM5 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM5PD LL_PWR_GetSRAM5RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM6RunRetention ( uint32_t sram6_retention )

Set the SRAM6 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM6PD LL_PWR_SetSRAM6RunRetention

Parameters :

sram6_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM6RunRetention ( void )

Get the SRAM6 retention in Run mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 SRAM6PD LL_PWR_GetSRAM6RunRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableOTGHSPHYLowPowerRetention ( void )

Enable OTG_HS PHY power during low power modes (Stop2, Stop 3 and Standby).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FORCE_USBPWR LL_PWR_EnableOTGHSPHYLowPowerRetention

void LL_PWR_DisableOTGHSPHYLowPowerRetention ( void )

Disable OTG_HS PHY power during low power modes (Stop2, Stop 3 and Standby).

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FORCE_USBPWR LL_PWR_DisableOTGHSPHYLowPowerRetention

uint32_t LL_PWR_IsEnabledOTGHSPHYLowPowerRetention ( void )

Check if OTG_HS PHY power during low power modes (Stop2, Stop 3 and Standby) is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR1 FORCE_USBPWR LL_PWR_IsEnabledOTGHSPHYLowPowerRetention

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableMemoryPageStopRetention_CR2 ( uint32_t ram_page )

Enable CR2 memory pages retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

CR2 SRAM2PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

CR2 SRAM3PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

Note

SRAM1PDSx (x= 1 to 3) SRAM2PDSx (x= 1 to 2) SRAM3PDSx (x= 1 to 8)

Note

(*) value not defined in all devices

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_DisableMemoryPageStopRetention_CR2 ( uint32_t ram_page )

Disable CR2 memory pages retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

CR2 SRAM2PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

CR2 SRAM3PDSx LL_PWR_DisableMemoryPageStopRetention_CR2

Note

SRAM1PDSx (x= 1 to 3) SRAM2PDSx (x= 1 to 2) SRAM3PDSx (x= 1 to 8)

Note

(*) value not defined in all devices

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_EnableMemoryPageStopRetention_CR4 ( uint32_t ram_page )

Enable CR4 memory page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM1PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

CR4 SRAM3PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

CR4 SRAM5PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

Note

SRAM1PDSx (x= 4 to 12) SRAM3PDSx (x= 9 to 13) SRAM5PDSx (x= 1 to 13)

Note

(*) value not defined in all devices

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_DisableMemoryPageStopRetention_CR4 ( uint32_t ram_page )

Disable the CR4 SRAMx page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM1PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

CR4 SRAM3PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

CR4 SRAM5PDSx LL_PWR_EnableMemoryPageStopRetention_CR4

Note

SRAM1PDSx (x= 4 to 12) SRAM3PDSx (x= 9 to 13) SRAM5PDSx (x= 1 to 13)

Note

(*) value not defined in all devices

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_EnableMemoryPageStopRetention_CR5 ( uint32_t ram_page )

Enable CR5 memory page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR5 SRAM6PDSx LL_PWR_EnableMemoryPageStopRetention_CR5

Note

SRAM6PDSx (x= 1 to 8)

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_DisableMemoryPageStopRetention_CR5 ( uint32_t ram_page )

Disable the CR5 SRAMx page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR5 SRAM6PDSx LL_PWR_DisableMemoryPageStopRetention_CR5

Note

SRAM6PDSx (x= 1 to 8)

Parameters :

ram_page – This parameter can be one of the following values:

void LL_PWR_SetSRAM1StopRetention_1_3 ( uint32_t sram1_page_retention )

Set the SRAM1 page(s) (From page 1 to page 3) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDS1 LL_PWR_SetSRAM1StopRetention_1_3

CR2 SRAM1PDS2 LL_PWR_SetSRAM1StopRetention_1_3

CR2 SRAM1PDS3 LL_PWR_SetSRAM1StopRetention_1_3

Parameters :

sram1_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM1StopRetention_1_3 ( void )

Get the SRAM1 page(s) (From page 1 to page 3) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDS1 LL_PWR_GetSRAM1StopRetention_1_3

CR2 SRAM1PDS2 LL_PWR_GetSRAM1StopRetention_1_3

CR2 SRAM1PDS3 LL_PWR_GetSRAM1StopRetention_1_3

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM1StopRetention_1_3 ( uint32_t sram1_page_retention )

Check if SRAM1 retention (From page 4 to page 12) in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDSx LL_PWR_IsEnabledSRAM1StopRetention_1_3

Note

SRAM1PDSx x = [1..3]

Parameters :

sram1_page_retention – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM1StopRetention_4_12 ( uint32_t sram1_page_retention )

Set the SRAM1 page(s) (From page 4 to page 12) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM1PDS4 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS5 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS6 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS7 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS8 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS9 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS10 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS11 LL_PWR_SetSRAM1StopRetention_4_12

CR2 SRAM1PDS12 LL_PWR_SetSRAM1StopRetention_4_12

Parameters :

sram1_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM1StopRetention_4_12 ( void )

Get the SRAM1 page(s) (From page 4 to page 12) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM1PDS4 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS5 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS6 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS7 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS8 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS9 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS10 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS11 LL_PWR_GetSRAM1StopRetention_4_12

CR4 SRAM1PDS12 LL_PWR_GetSRAM1StopRetention_4_12

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM1StopRetention_4_12 ( uint32_t sram1_page_retention )

Check if SRAM1 retention (From page 4 to page 12) in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM1PDSx LL_PWR_IsEnabledSRAM1StopRetention_4_12

Note

SRAM1PDSx x = [4..12]

Parameters :

sram1_page_retention – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM2StopRetention ( uint32_t sram2_page_retention )

Set the SRAM2 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM2PDS1 LL_PWR_SetSRAM2StopRetention

CR2 SRAM2PDS2 LL_PWR_SetSRAM2StopRetention

Parameters :

sram2_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM2StopRetention ( void )

Get the SRAM2 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM2PDS1 LL_PWR_GetSRAM2StopRetention

CR2 SRAM2PDS2 LL_PWR_GetSRAM2StopRetention

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM2StopRetention ( uint32_t sram2_page_retention )

Get the SRAM2 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM2PDS1 LL_PWR_GetSRAM2StopRetention

CR2 SRAM2PDS2 LL_PWR_GetSRAM2StopRetention

Parameters :

sram2_page_retention – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM3StopRetention_1_8 ( uint32_t sram3_page_retention )

Set the SRAM3 page(s) (From page 1 to page 8) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM3PDS1 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS2 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS3 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS4 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS5 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS6 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS7 LL_PWR_SetSRAM3StopRetention_1_8

CR2 SRAM3PDS8 LL_PWR_SetSRAM3StopRetention_1_8

Parameters :

sram3_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM3StopRetention_1_8 ( void )

Get the SRAM3 page(s) (From page 1 to page 8) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM3PDS1 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS2 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS3 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS4 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS5 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS6 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS7 LL_PWR_GetSRAM3StopRetention_1_8

CR2 SRAM3PDS8 LL_PWR_GetSRAM3StopRetention_1_8

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM3StopRetention_1_8 ( uint32_t sram3_page_retention )

Check if SRAM3 retention (From page 1 to page 8) in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM3PDSx LL_PWR_IsEnabledSRAM3StopRetention_1_8

Note

SRAM3PDSx x = [1..8]

Parameters :

sram3_page_retention – : This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM3StopRetention_9_13 ( uint32_t sram3_page_retention )

Set the SRAM3 page(s) (From page 9 to page 13) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM3PDS9 LL_PWR_SetSRAM3StopRetention_9_13

CR2 SRAM3PDS10 LL_PWR_SetSRAM3StopRetention_9_13

CR2 SRAM3PDS11 LL_PWR_SetSRAM3StopRetention_9_13

CR2 SRAM3PDS12 LL_PWR_SetSRAM3StopRetention_9_13

CR2 SRAM3PDS13 LL_PWR_SetSRAM3StopRetention_9_13

Parameters :

sram3_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM3StopRetention_9_13 ( void )

Get the SRAM3 page(s) (From page 9 to page 13) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM3PDS9 LL_PWR_SetSRAM3StopRetention_9_13

CR4 SRAM3PDS10 LL_PWR_SetSRAM3StopRetention_9_13

CR4 SRAM3PDS11 LL_PWR_SetSRAM3StopRetention_9_13

CR4 SRAM3PDS12 LL_PWR_SetSRAM3StopRetention_9_13

CR4 SRAM3PDS13 LL_PWR_SetSRAM3StopRetention_9_13

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM3StopRetention_9_13 ( uint32_t sram3_page_retention )

Check if SRAM3 retention (From page 9 to page 13) in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM3PDSx LL_PWR_IsEnabledSRAM3StopRetention

Note

SRAM3PDSx x = [9..13]

Parameters :

sram3_page_retention – : This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM4StopRetention ( uint32_t sram4_page_retention )

Set the SRAM4 page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM4PDS LL_PWR_SetSRAM4StopRetention

Parameters :

sram4_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM4StopRetention ( void )

Get the SRAM4 page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM4PDS LL_PWR_GetSRAM4StopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetSRAM5StopRetention ( uint32_t sram5_page_retention )

Set the SRAM5 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM5PDS1 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS2 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS3 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS4 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS5 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS6 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS7 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS8 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS9 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS10 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS11 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS12 LL_PWR_SetSRAM5StopRetention

CR4 SRAM5PDS13 LL_PWR_SetSRAM5StopRetention

Parameters :

sram5_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_GetSRAM5StopRetention ( void )

Get the SRAM5 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM5PDS1 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS2 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS3 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS4 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS5 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS6 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS7 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS8 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS9 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS10 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS11 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS12 LL_PWR_GetSRAM5StopRetention

CR4 SRAM5PDS13 LL_PWR_GetSRAM5StopRetention

Return values :

Returned – value can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM5StopRetention ( uint32_t sram5_page_retention )

Check if SRAM5 retention in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR4 SRAM5PDSx LL_PWR_IsEnabledSRAM6StopRetention

Note

SRAM5PDSx x =[1..13]

Parameters :

sram5_page_retention – : This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSRAM6StopRetention ( uint32_t sram6_page_retention )

Set the SRAM6 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR5 SRAM6PDS1 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS2 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS3 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS4 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS5 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS6 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS7 LL_PWR_SetSRAM6StopRetention

CR5 SRAM6PDS8 LL_PWR_SetSRAM6StopRetention

Parameters :

sram6_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_IsEnabledSRAM6StopRetention ( uint32_t sram6_page_retention )

Check if SRAM6 retention in Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR5 SRAM6PDSx LL_PWR_IsEnabledSRAM6StopRetention

Note

SRAM6PDSx x = [1..8]

Parameters :

sram6_page_retention – : This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_GetSRAM6StopRetention ( void )

Get the SRAM6 page(s) retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR5 SRAM6PDS1 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS2 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS3 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS4 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS5 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS6 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS7 LL_PWR_GetSRAM6StopRetention

CR5 SRAM6PDS8 LL_PWR_GetSRAM6StopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetICacheRAMStopRetention ( uint32_t icache_page_retention )

Set the ICACHE SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ICRAMPDS LL_PWR_SetICacheRAMStopRetention

Parameters :

icache_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_GetICacheRAMStopRetention ( void )

Get the ICACHE SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 ICRAMPDS LL_PWR_GetICacheRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetDCache1RAMStopRetention ( uint32_t dcache1_page_retention )

Set the DCACHE1 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DC1RAMPDS LL_PWR_SetDCache1RAMStopRetention

Parameters :

dcache1_page_retention – : This parameter can be one of the following values:

uint32_t LL_PWR_GetDCache1RAMStopRetention ( void )

Get the DCACHE1 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DC1RAMPDS LL_PWR_GetDCache1RAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetDCache2RAMStopRetention ( uint32_t dcache2_page_retention )

Set the DCACHE2 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DC2RAMPDS LL_PWR_SetDCache2RAMStopRetention

Parameters :

dcache2_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetDCache2RAMStopRetention ( void )

Get the DCACHE2 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DC2RAMPDS LL_PWR_GetDCache2RAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetDMA2DRAMStopRetention ( uint32_t dma2dram_page_retention )

Set the DMA2D SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DMA2DRAMPDS LL_PWR_SetDMA2DRAMStopRetention

Parameters :

dma2dram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetDMA2DRAMStopRetention ( void )

Get the DMA2D SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DMA2DRAMPDS LL_PWR_GetDMA2DRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetPeriphRAMStopRetention ( uint32_t priph_ram_page_retention )

Set the FMAC, FDCAN and USB SRAMs pages retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PRAMPDS LL_PWR_SetPeriphRAMStopRetention

Parameters :

priph_ram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetPeriphRAMStopRetention ( void )

Get the FMAC, FDCAN and USB SRAMs pages retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PRAMPDS LL_PWR_GetPeriphRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetPKARAMStopRetention ( uint32_t pkaram_page_retention )

Set the PKA32 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PKARAMPDS LL_PWR_SetPKARAMStopRetention

Parameters :

pkaram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetPKARAMStopRetention ( void )

Get the PKA32 SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 PKARAMPDS LL_PWR_GetPKARAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetGraphicPeriphRAMStopRetention ( uint32_t graphic_periph_ram_page_retention )

Set the Graphic peripherals (LTDC, GFXMMU) SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 GPRAMPDS LL_PWR_SetGraphicPeriphRAMStopRetention

Parameters :

graphic_periph_ram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetGraphicPeriphRAMStopRetention ( void )

Get the Graphic peripherals (LTDC, GFXMMU) SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 GPRAMPDS LL_PWR_GetGraphicPeriphRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetDSIRAMStopRetention ( uint32_t dsiram_page_retention )

Set the DSI SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DSIRAMPDS LL_PWR_SetDSIRAMStopRetention

Parameters :

dsiram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetDSIRAMStopRetention ( void )

Get the DSI SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 DSIRAMPDS LL_PWR_GetDSIRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetJPEGRAMStopRetention ( uint32_t jpegram_page_retention )

Set the JPEG SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 JPEGRAMPDS LL_PWR_SetJPEGRAMStopRetention

Parameters :

jpegram_page_retention – This parameter can be one of the following values:

uint32_t LL_PWR_GetJPEGRAMStopRetention ( void )

Get the JPEG SRAM page retention in Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 JPEGRAMPDS LL_PWR_GetJPEGRAMStopRetention

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableFastWakeup ( uint32_t items )

Enable the flash and SRAM4 memories fast wakeup from Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_EnableFastWakeup

CR2 SRAM4FWU LL_PWR_EnableFastWakeup

Parameters :

items – This parameter can be one or a combination of the following values:

void LL_PWR_DisableFastWakeup ( uint32_t items )

Disable the flash and SRAM4 memories fast wakeup from Stop mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_DisableFastWakeup

CR2 SRAM4FWU LL_PWR_DisableFastWakeup

Parameters :

items – This parameter can be one or a combination of the following values:

uint32_t LL_PWR_IsEnabledFastWakeup ( uint32_t items )

Check the flash and SRAM4 memories fast wakeup from Stop mode is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_IsEnabledFastWakeup

CR2 SRAM4FWU LL_PWR_IsEnabledFastWakeup

Parameters :

items – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0)

void LL_PWR_EnableFlashFastWakeUp ( void )

Enable the flash memory fast wakeup from Stop mode (Stop 0, 1).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_EnableFlashFastWakeUp

void LL_PWR_DisableFlashFastWakeUp ( void )

Disable the flash memory fast wakeup from Stop mode (Stop 0, 1).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_DisableFlashFastWakeUp

uint32_t LL_PWR_IsEnabledFlashFastWakeUp ( void )

Check if the flash memory fast wakeup from Stop mode (Stop 0, 1) is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 FLASHFWU LL_PWR_IsEnabledFlashFastWakeUp

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableSRAM4FastWakeUp ( void )

Enable the SRAM4 memory fast wakeup from Stop mode (Stop 0, 1, 2).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM4FWU LL_PWR_EnableSRAM4FastWakeUp

void LL_PWR_DisableSRAM4FastWakeUp ( void )

Disable the SRAM4 memory fast wakeup from Stop mode (Stop 0, 1, 2).

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM4FWU LL_PWR_DisableSRAM4FastWakeUp

uint32_t LL_PWR_IsEnabledSRAM4FastWakeUp ( void )

Check if the SRAM4 memory fast wakeup from Stop mode (Stop 0, 1, 2). is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRAM4FWU LL_PWR_IsEnabledSRAM4FastWakeUp

Return values :

State – of bit (1 or 0).

void LL_PWR_SetSmartRunDomainMode ( uint32_t srd_mode )

Set the smart run domain mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRDRUN LL_PWR_SetSmartRunDomainMode

Parameters :

srd_mode – This parameter can be one of the following values:

uint32_t LL_PWR_GetSmartRunDomainMode ( void )

Get the smart run domain mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR2 SRDRUN LL_PWR_GetSmartRunDomainMode

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetRegulatorSupply ( uint32_t regulator_supply )

Set the VCore regulator supply.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 REGSEL LL_PWR_SetRegulatorSupply

Parameters :

regulator_supply – This parameter can be one of the following values:

uint32_t LL_PWR_GetRegulatorSupply ( void )

Get the VCore regulator supply.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 REGSEL LL_PWR_GetRegulatorSupply

Return values :

Returned – value can be one of the following values:

void LL_PWR_SetMainRegulatorStartupMode ( uint32_t mode )

Set the main regulator fast startup mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 FSTEN LL_PWR_SetMainRegulatorStartupMode

Parameters :

mode – This parameter can be one of the following values:

uint32_t LL_PWR_GetMainRegulatorStartupMode ( void )

Get the main regulator fast startup mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 FSTEN LL_PWR_GetMainRegulatorStartupMode

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableFastSoftStart ( void )

Enable the fast soft start for selected regulator.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 FSTEN LL_PWR_EnableFastSoftStart

void LL_PWR_DisableFastSoftStart ( void )

Disable the fast soft start for selected regulator.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 FSTEN LL_PWR_DisableFastSoftStart

uint32_t LL_PWR_IsEnabledFastSoftStart ( void )

Check if the fast soft start for selected regulator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR3 FSTEN LL_PWR_IsEnabledFastSoftStart

Return values :

State – of bit (1 or 0).

void LL_PWR_SetRegulVoltageScaling ( uint32_t voltage_scaling )

Set the regulator supply output voltage.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VOS LL_PWR_SetRegulVoltageScaling

Parameters :

voltage_scaling – This parameter can be one of the following values:

uint32_t LL_PWR_GetRegulVoltageScaling ( void )

Get the regulator supply output voltage.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VOS LL_PWR_GetRegulVoltageScaling

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableEPODBooster ( void )

Enable the EPOD (Embedded Power Distribution) booster.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR BOOSTEN LL_PWR_EnableEPODBooster

void LL_PWR_DisableEPODBooster ( void )

Disable the EPOD (Embedded Power Distribution) booster.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR BOOSTEN LL_PWR_DisableEPODBooster

uint32_t LL_PWR_IsEnabledEPODBooster ( void )

Check if the EPOD (Embedded Power Distribution) booster is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR BOOSTEN LL_PWR_IsEnabledEPODBooster

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableUSBPowerSupply ( void )

Enable the USB power supply.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBPWREN LL_PWR_EnableUSBPowerSupply

void LL_PWR_DisableUSBPowerSupply ( void )

Disable the USB power supply.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBPWREN LL_PWR_DisableUSBPowerSupply

uint32_t LL_PWR_IsEnabledUSBPowerSupply ( void )

Check if the USB power supply is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBPWREN LL_PWR_IsEnabledUSBPowerSupply

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableUSBEPODBooster ( void )

Enable the USB EPOD (Embedded Power Distribution) booster.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBBOOSTEN LL_PWR_EnableUSBEPODBooster

void LL_PWR_DisableUSBEPODBooster ( void )

Disable the USB EPOD (Embedded Power Distribution) booster.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBBOOSTEN LL_PWR_DisableUSBEPODBooster

uint32_t LL_PWR_IsEnabledUSBEPODBooster ( void )

Check if the USB EPOD (Embedded Power Distribution) booster is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBBOOSTEN LL_PWR_IsEnabledUSBEPODBooster

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVdd11USB ( void )

Enable the Vdd11USB.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VDD11USBDIS LL_PWR_EnableVdd11USB

void LL_PWR_DisableVdd11USB ( void )

Disable the Vdd11USB.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VDD11USBDIS LL_PWR_DisableVdd11USB

uint32_t LL_PWR_IsEnabledVdd11USB ( void )

Check if the Vdd11USB is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VDD11USBDIS LL_PWR_IsEnabledVdd11USB

Return values :

State – of bit (1 or 0).

void LL_PWR_SetPVDLevel ( uint32_t pvd_level )

Set the Programmable voltage detector level.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR PVDLS LL_PWR_SetPVDLevel

Parameters :

pvd_level – This parameter can be one of the following values:

uint32_t LL_PWR_GetPVDLevel ( void )

Get the Programmable voltage detector level.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR PVDLS LL_PWR_GetPVDLevel

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnablePVD ( void )

Enable the Programmable voltage detector.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR PVDE LL_PWR_EnablePVD

void LL_PWR_DisablePVD ( void )

Disable the Programmable voltage detector.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR PVDE LL_PWR_DisablePVD

uint32_t LL_PWR_IsEnabledPVD ( void )

Check if the Programmable voltage detector is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR PVDE LL_PWR_IsEnabledPVD

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddUSB ( void )

Enable the independent USB supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR USV LL_PWR_EnableVddUSB

void LL_PWR_DisableVddUSB ( void )

Disable the independent USB supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR USV LL_PWR_DisableVDDUSB

uint32_t LL_PWR_IsEnabledVddUSB ( void )

Check if the independent USB supply is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR USV LL_PWR_IsEnabledVddUSB

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddIO2 ( void )

Enable the independent I/Os supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2SV LL_PWR_EnableVddIO2

void LL_PWR_DisableVddIO2 ( void )

Disable the independent I/Os supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2SV LL_PWR_DisableVddIO2

uint32_t LL_PWR_IsEnabledVddIO2 ( void )

Check if the independent I/Os supply is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2SV LL_PWR_IsEnabledVddIO2

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddA ( void )

Enable the independent analog supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR ASV LL_PWR_EnableVddA

void LL_PWR_DisableVddA ( void )

Disable the independent analog supply.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR ASV LL_PWR_DisableVddA

uint32_t LL_PWR_IsEnabledVddA ( void )

Check if the independent analog supply is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR ASV LL_PWR_IsEnabledVddA

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddAMonitor ( uint32_t supply )

Enable the independent analog supply voltage monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN1 LL_PWR_EnableVddAMonitor

SVMCR UVMEN2 LL_PWR_EnableVddAMonitor

Parameters :

supply – This parameter can be one of the following values:

void LL_PWR_DisableVddAMonitor ( uint32_t supply )

Disable the independent analog supply voltage monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN1 LL_PWR_DisableVddAMonitor

SVMCR UVMEN2 LL_PWR_DisableVddAMonitor

Parameters :

supply – This parameter can be one of the following values:

uint32_t LL_PWR_IsEnabledVddAMonitor ( uint32_t supply )

Check if the independent analog supply voltage monitor is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN1 LL_PWR_IsEnabledVddUSBMonitor

SVMCR UVMEN2 LL_PWR_IsEnabledVddUSBMonitor

Parameters :

supply – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddUSBMonitor ( void )

Enable the independent USB supply monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN LL_PWR_EnableVddUSBMonitor

void LL_PWR_DisableVddUSBMonitor ( void )

Disable the independent USB supply monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN LL_PWR_DisableVddUSBMonitor

uint32_t LL_PWR_IsEnabledVddUSBMonitor ( void )

Check if the independent USB supply monitor is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR UVMEN LL_PWR_IsEnabledVddUSBMonitor

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddIO2Monitor ( void )

Enable the independent I/Os supply monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2VMEN LL_PWR_EnableVddIO2Monitor

void LL_PWR_DisableVddIO2Monitor ( void )

Disable the independent I/Os supply monitor.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2VMEN LL_PWR_DisableVddIO2Monitor

uint32_t LL_PWR_IsEnabledVddIO2Monitor ( void )

Check if the independent I/Os supply monitor is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR IO2VMEN LL_PWR_IsEnabledVddIO2Monitor

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddAMonitor1 ( void )

Enable the independent analog supply monitor 1.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM1EN LL_PWR_EnableVddAMonitor1

void LL_PWR_DisableVddAMonitor1 ( void )

Disable the independent analog supply monitor 1.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM1EN LL_PWR_DisableVddAMonitor1

uint32_t LL_PWR_IsEnabledVddAMonitor1 ( void )

Check if the independent analog supply monitor 1 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM1EN LL_PWR_IsEnabledVddAMonitor1

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableVddAMonitor2 ( void )

Enable the independent analog supply monitor 2.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM2EN LL_PWR_EnableVddAMonitor2

void LL_PWR_DisableVddAMonitor2 ( void )

Disable the independent analog supply monitor 2.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM2EN LL_PWR_DisableVddAMonitor2

uint32_t LL_PWR_IsEnabledVddAMonitor2 ( void )

Check if the independent analog supply monitor 2 is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

SVMCR AVM2EN LL_PWR_IsEnabledVddAMonitor2

Return values :

State – of bit (1 or 0).

void LL_PWR_SetWakeupPinPolarity ( uint32_t pin , uint32_t polarity )

Set the wake up pin polarity low for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR2 WUPPx LL_PWR_SetWakeupPinPolarity

Parameters :
uint32_t LL_PWR_GetWakeUpPinPolarity ( uint32_t wakeup_pin )

Get the wake up pin polarity for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR2 WUPPx LL_PWR_GetWakeUpPinPolarity

Parameters :

wakeup_pin – This parameter can be one of the following values:

Return values :

State – of bit (1 : polarity low or 0 : polarity high).

void LL_PWR_SetWakeupPinSelection ( uint32_t pin , uint32_t selection )

Set the wake up pin polarity low for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUPPx LL_PWR_SetWakeupPinSelection

Parameters :
uint32_t LL_PWR_GetWakeupPinSelection ( uint32_t pin )

Get the wake up pin polarity for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR2 WUPPx LL_PWR_GetWakeUpPinPolarity

Parameters :

pin – This parameter can be one of the following values:

void LL_PWR_EnableWakeUpPin ( uint32_t wakeup_pin )

Enable the wake up pin_x.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR1 WUPENx LL_PWR_EnableWakeUpPin

Parameters :

wakeup_pin – This parameter can be one or a combination of the following values:

void LL_PWR_DisableWakeUpPin ( uint32_t wakeup_pin )

Disable the wake up pin_x.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR1 WUPENx LL_PWR_DisableWakeUpPin

Parameters :

wakeup_pin – This parameter can be one or a combination of the following values:

uint32_t LL_PWR_IsEnabledWakeUpPin ( uint32_t wakeup_pin )

Check if the wake up pin_x is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR1 WUPENx LL_PWR_IsEnabledWakeUpPin

Parameters :

wakeup_pin – This parameter can be one of the following values:

Return values :

State – of bit (1 or 0).

void LL_PWR_SetWakeUpPinPolarityLow ( uint32_t wakeup_pin )

Set the wake up pin polarity low for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR2 WUPPx LL_PWR_SetWakeUpPinPolarityLow

Parameters :

wakeup_pin – This parameter can be a combination of the following values:

void LL_PWR_SetWakeUpPinPolarityHigh ( uint32_t wakeup_pin )

Set the wake up pin polarity high for the event detection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR2 WUPPx LL_PWR_SetWakeUpPinPolarityHigh

Parameters :

wakeup_pin – This parameter can be a combination of the following values:

void LL_PWR_SetWakeUpPinSignal0Selection ( uint32_t wakeup_pin )

Set the wakeup pin_x selection 0.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUSELx LL_PWR_SetWakeUpPinSignal0Selection

Parameters :

wakeup_pin – This parameter can be one of the following values:

void LL_PWR_SetWakeUpPinSignal1Selection ( uint32_t wakeup_pin )

Set the wakeup pin_x selection 1.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUSELx LL_PWR_SetWakeUpPinSignal1Selection

Parameters :

wakeup_pin – This parameter can be one of the following values:

void LL_PWR_SetWakeUpPinSignal2Selection ( uint32_t wakeup_pin )

Set the wakeup pin_x selection 2.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUSELx LL_PWR_SetWakeUpPinSignal2Selection

Parameters :

wakeup_pin – This parameter can be one of the following values:

void LL_PWR_SetWakeUpPinSignal3Selection ( uint32_t wakeup_pin )

Set the wakeup pin_x selection 3.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUSELx LL_PWR_SetWakeUpPinSignal3Selection

Parameters :

wakeup_pin – This parameter can be one of the following values:

uint32_t LL_PWR_GetWakeUpPinSignalSelection ( uint32_t wakeup_pin )

Get the wakeup pin_x selection.

Reference Manual to LL API cross reference (Register Field Functions)

WUCR3 WUSELx LL_PWR_GetWakeUpPinSignalSelection

Parameters :

wakeup_pin – This parameter can be one of the following values:

void LL_PWR_EnableBkUpRegulator ( void )

Enable backup regulator.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 BREN LL_PWR_EnableBkUpRegulator

Warning

When this bit is set, the backup RAM content is kept in Standby and VBAT modes. If BREN is reset, the backup RAM can still be used in Run, Sleep and Stop modes. However, its content is lost in Standby, Shutdown and VBAT modes. This bit can be written only when the regulator is LDO, which must be configured before switching to SMPS.

void LL_PWR_DisableBkUpRegulator ( void )

Disable backup regulator.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 BREN LL_PWR_DisableBkUpRegulator

uint32_t LL_PWR_IsEnabledBkUpRegulator ( void )

Check if the backup regulator is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 BREN LL_PWR_IsEnabledBkUpRegulator

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableMonitoring ( void )

Enable the backup domain voltage and temperature monitoring.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 MONEN LL_PWR_EnableMonitoring

void LL_PWR_DisableMonitoring ( void )

Disable the backup domain voltage and temperature monitoring.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 MONEN LL_PWR_DisableMonitoring

uint32_t LL_PWR_IsEnabledMonitoring ( void )

Check if the backup domain voltage and temperature monitoring is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR1 MONEN LL_PWR_IsEnabledMonitoring

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableBatteryCharging ( void )

Enable battery charging.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR2 VBE LL_PWR_EnableBatteryCharging

void LL_PWR_DisableBatteryCharging ( void )

Disable battery charging.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR2 VBE LL_PWR_DisableBatteryCharging

uint32_t LL_PWR_IsEnabledBatteryCharging ( void )

Check if battery charging is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR2 VBE LL_PWR_IsEnabledBatteryCharging

Return values :

State – of bit (1 or 0).

void LL_PWR_SetBattChargResistor ( uint32_t resistor )

Set the battery charge resistor impedance.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR2 VBRS LL_PWR_SetBattChargResistor

Parameters :

resistor – This parameter can be one of the following values:

uint32_t LL_PWR_GetBattChargResistor ( void )

Get the battery charge resistor impedance.

Reference Manual to LL API cross reference (Register Field Functions)

BDCR2 VBRS LL_PWR_GetBattChargResistor

Return values :

Returned – value can be one of the following values:

void LL_PWR_EnableBackupDomainWriteProtection ( void )

Enable the backup domain write protection.

Reference Manual to LL API cross reference (Register Field Functions)

DBPR DBP LL_PWR_EnableBackupDomainWriteProtection

void LL_PWR_DisableBackupDomainWriteProtection ( void )

Disable the backup domain write protection.

Reference Manual to LL API cross reference (Register Field Functions)

DBPR DBP LL_PWR_DisableBackupDomainWriteProtection

uint32_t LL_PWR_IsEnabledBackupDomainWriteProtection ( void )

Check if the backup domain write protection is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

DBPR DBP LL_PWR_IsEnabledBackupDomainWriteProtection

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableUCPDStandbyMode ( void )

Enable the USB Type-C and Power Delivery memorization in Standby mode.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_STDBY LL_PWR_EnableUCPDStandbyMode

Warning

This function must be called just before entering Standby mode.

void LL_PWR_DisableUCPDStandbyMode ( void )

Disable the USB Type-C and Power Delivery memorization in Standby mode.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_STDBY LL_PWR_DisableUCPDStandbyMode

Warning

This function must be called after exiting Standby mode and before any UCPD configuration update.

uint32_t LL_PWR_IsEnabledUCPDStandbyMode ( void )

Check the USB Type-C and Power Delivery Standby mode memorization state.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_STDBY LL_PWR_IsEnabledUCPDStandbyMode

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableUCPDDeadBattery ( void )

Enable the USB Type-C and power delivery dead battery pull-down behavior on UCPD CC1 and CC2 pins.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_DBDIS LL_PWR_EnableUCPDDeadBattery

Warning

After exiting reset, the USB Type-C dead battery behavior is enabled, which might have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to hand over control to the UCPD (which must therefore be initialized before doing the disable).

void LL_PWR_DisableUCPDDeadBattery ( void )

Disable the USB Type-C and power delivery dead battery pull-down behavior on UCPD CC1 and CC2 pins.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_DBDIS LL_PWR_DisableUCPDDeadBattery

Warning

After exiting reset, the USB Type-C dead battery behavior is enabled, which might have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to hand over control to the UCPD (which must therefore be initialized before doing the disable).

uint32_t LL_PWR_IsEnabledUCPDDeadBattery ( void )

Check the USB Type-C and power delivery dead battery pull-down behavior on UCPD CC1 and CC2 pins.

Reference Manual to LL API cross reference (Register Field Functions)

UCPDR UCPD_DBDIS LL_PWR_IsEnabledUCPDDeadBattery

Warning

After exiting reset, the USB Type-C dead battery behavior is enabled, which might have a pull-down effect on CC1 and CC2 pins. It is recommended to disable it in all cases, either to stop this pull-down or to hand over control to the UCPD (which must therefore be initialized before doing the disable).

Return values :

State – of feature (1 : enabled; 0 : disabled).

void LL_PWR_EnablePUPDConfig ( void )

Enable the pull-up and pull-down configuration.

Reference Manual to LL API cross reference (Register Field Functions)

APCR APC LL_PWR_EnablePUPDConfig

void LL_PWR_DisablePUPDConfig ( void )

Disable the pull-up and pull-down configuration.

Reference Manual to LL API cross reference (Register Field Functions)

APCR APC LL_PWR_DisablePUPDConfig

uint32_t LL_PWR_IsEnabledPUPDConfig ( void )

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

Reference Manual to LL API cross reference (Register Field Functions)

APCR APC LL_PWR_IsEnabledPUPDConfig

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableGPIOPullUp ( uint32_t gpio_port , uint32_t gpio_pin )

Enable GPIO pull-up in Standby and Shutdown modes.

Reference Manual to LL API cross reference (Register Field Functions)

PUCRx PUx LL_PWR_EnableGPIOPullUp

Note

(*) value not defined in all devices

Parameters :
void LL_PWR_DisableGPIOPullUp ( uint32_t gpio_port , uint32_t gpio_pin )

Disable GPIO pull-up in Standby and Shutdown modes.

Reference Manual to LL API cross reference (Register Field Functions)

PUCRx PUx LL_PWR_DisableGPIOPullUp

Note

(*) value not defined in all devices

Parameters :
uint32_t LL_PWR_IsEnabledGPIOPullUp ( uint32_t gpio_port , uint32_t gpio_pin )

Check if GPIO pull-up in Standby and Shutdown modes is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

PUCRx PUx LL_PWR_IsEnabledGPIOPullUp

Note

(*) value not defined in all devices

Parameters :
Return values :

State – of bit (1 or 0).

void LL_PWR_EnableGPIOPullDown ( uint32_t gpio_port , uint32_t gpio_pin )

Enable GPIO pull-down in Standby and Shutdown modes.

Reference Manual to LL API cross reference (Register Field Functions)

PDCRx PDx LL_PWR_EnableGPIOPullDown

Note

(*) value not defined in all devices

Parameters :
void LL_PWR_DisableGPIOPullDown ( uint32_t gpio_port , uint32_t gpio_pin )

Disable GPIO pull-down in Standby and Shutdown modes.

Reference Manual to LL API cross reference (Register Field Functions)

PDCRx PDx LL_PWR_DisableGPIOPullDown

Note

(*) value not defined in all devices

Parameters :
uint32_t LL_PWR_IsEnabledGPIOPullDown ( uint32_t gpio_port , uint32_t gpio_pin )

Check if GPIO pull-down in Standby and Shutdown modes is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

PDCRx PDx LL_PWR_IsEnabledGPIOPullUp

Note

(*) value not defined in all devices

Parameters :
Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_GetRegulCurrentVOS ( void )

Get currently voltage scaling applied to VCORE.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR ACTVOS[1:0] LL_PWR_GetRegulCurrentVOS

Return values :

Returned – value can be one of the following values:

PWR Flag management

group PWR_LL_EF_FLAG_MANAGEMENT

Functions

uint32_t LL_PWR_IsActiveFlag_BOOST ( void )

Indicate whether the EPOD (Embedded Power Distribution) booster is ready OR not.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR BOOSTRDY LL_PWR_IsActiveFlag_BOOST

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_USBBOOST ( void )

Indicate whether the USB EPOD (Embedded Power Distribution) booster is ready OR not.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR USBBOOSTRDY LL_PWR_IsActiveFlag_USBBOOST

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VOS ( void )

Indicate whether the regulator voltage output is above voltage scaling range or not.

Reference Manual to LL API cross reference (Register Field Functions)

VOSR VOSRDY LL_PWR_IsActiveFlag_VOS

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_SB ( void )

Indicate whether the system was in standby mode or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR SBF LL_PWR_IsActiveFlag_SB

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_STOP ( void )

Indicate whether the system was in stop mode or not.

Reference Manual to LL API cross reference (Register Field Functions)

SR STOPF LL_PWR_IsActiveFlag_STOP

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_REGULATOR ( void )

Indicate whether the regulator supply is LDO or SMPS.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR REGS LL_PWR_IsActiveFlag_REGULATOR

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_PVDO ( void )

Indicate whether the VDD voltage is below the threshold or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR PVDO LL_PWR_IsActiveFlag_PVDO

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_ACTVOS ( void )

Indicate whether the regulator voltage output is equal to current used voltage scaling range or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR ACTVOSRDY LL_PWR_IsActiveFlag_ACTVOS

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VDDUSB ( void )

Indicate whether the VDDUSB is below the threshold of monitor or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR VDDUSBRDY LL_PWR_IsActiveFlag_VDDUSB

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VDDIO2 ( void )

Indicate whether the VDDIO2 is below the threshold of monitor or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR VDDIO2RDY LL_PWR_IsActiveFlag_VDDIO2

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VDDA1 ( void )

Indicate whether the VDDA1 is below the threshold of monitor 1 or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR VDDA1RDY LL_PWR_IsActiveFlag_VDDA1

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VDDA2 ( void )

Indicate whether the VDDA2 is below the threshold of monitor 2 or not.

Reference Manual to LL API cross reference (Register Field Functions)

SVMSR VDDA2RDY LL_PWR_IsActiveFlag_VDDA2

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_VBATH ( void )

Indicate whether the VBAT level is below high threshold or not.

Reference Manual to LL API cross reference (Register Field Functions)

BDSR VBATH LL_PWR_IsActiveFlag_VBATH

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_TEMPL ( void )

Indicate whether the Core temperature level is above low threshold or not.

Reference Manual to LL API cross reference (Register Field Functions)

BDSR TEMPL LL_PWR_IsActiveFlag_TEMPL

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_TEMPH ( void )

Indicate whether the Core temperature level is below high threshold or not.

Reference Manual to LL API cross reference (Register Field Functions)

BDSR TEMPH LL_PWR_IsActiveFlag_TEMPH

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU1 ( void )

Indicate whether a wakeup event is detected on wake up pin 1.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF1 LL_PWR_IsActiveFlag_WU1

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU2 ( void )

Indicate whether a wakeup event is detected on wake up pin 2.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF2 LL_PWR_IsActiveFlag_WU2

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU3 ( void )

Indicate whether a wakeup event is detected on wake up pin 3.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF3 LL_PWR_IsActiveFlag_WU3

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU4 ( void )

Indicate whether a wakeup event is detected on wake up pin 4.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF4 LL_PWR_IsActiveFlag_WU4

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU5 ( void )

Indicate whether a wakeup event is detected on wake up pin 5.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF5 LL_PWR_IsActiveFlag_WU5

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU6 ( void )

Indicate whether a wakeup event is detected on wake up pin 6.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF6 LL_PWR_IsActiveFlag_WU6

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU7 ( void )

Indicate whether a wakeup event is detected on wake up pin 7.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF7 LL_PWR_IsActiveFlag_WU7

Return values :

State – of bit (1 or 0).

uint32_t LL_PWR_IsActiveFlag_WU8 ( void )

Indicate whether a wakeup event is detected on wake up pin 8.

Reference Manual to LL API cross reference (Register Field Functions)

WUSR WUF8 LL_PWR_IsActiveFlag_WU8

Return values :

State – of bit (1 or 0).

void LL_PWR_ClearFlag_STOP ( void )

Clear stop flag.

Reference Manual to LL API cross reference (Register Field Functions)

SR CSSF LL_PWR_ClearFlag_STOP

void LL_PWR_ClearFlag_SB ( void )

Clear standby flag.

Reference Manual to LL API cross reference (Register Field Functions)

SR CSSF LL_PWR_ClearFlag_SB

void LL_PWR_ClearFlag_WU1 ( void )

Clear wake up flag 1.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF1 LL_PWR_ClearFlag_WU1

void LL_PWR_ClearFlag_WU2 ( void )

Clear wake up flag 2.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF2 LL_PWR_ClearFlag_WU2

void LL_PWR_ClearFlag_WU3 ( void )

Clear wake up flag 3.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF3 LL_PWR_ClearFlag_WU3

void LL_PWR_ClearFlag_WU4 ( void )

Clear wake up flag 4.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF4 LL_PWR_ClearFlag_WU4

void LL_PWR_ClearFlag_WU5 ( void )

Clear wake up flag 5.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF5 LL_PWR_ClearFlag_WU5

void LL_PWR_ClearFlag_WU6 ( void )

Clear wake up flag 6.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF6 LL_PWR_ClearFlag_WU6

void LL_PWR_ClearFlag_WU7 ( void )

Clear wake up flag 7.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF7 LL_PWR_ClearFlag_WU7

void LL_PWR_ClearFlag_WU8 ( void )

Clear wake up flag 8.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF8 LL_PWR_ClearFlag_WU8

void LL_PWR_ClearFlag_WU ( void )

Clear all wake up flags.

Reference Manual to LL API cross reference (Register Field Functions)

WUSCR CWUF LL_PWR_ClearFlag_WU

PWR Attribute management

group PWR_LL_EF_ATTRIBUTE_MANAGEMENT

Functions

void LL_PWR_EnableNSecurePrivilege ( void )

Enable privileged mode for nsecure items.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR NSPRIV LL_PWR_EnableNSecurePrivilege

void LL_PWR_DisableNSecurePrivilege ( void )

Disable privileged mode for nsecure items.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR NSPRIV LL_PWR_DisableNSecurePrivilege

uint32_t LL_PWR_IsEnabledNSecurePrivilege ( void )

Check if privileged mode for nsecure items is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR NSPRIV LL_PWR_IsEnabledNSecurePrivilege

Return values :

State – of bit (1 or 0).

void LL_PWR_EnableSecurePrivilege ( void )

Enable privileged mode for secure items.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR SPRIV LL_PWR_EnableSecurePrivilege

void LL_PWR_DisableSecurePrivilege ( void )

Disable privileged mode for secure items.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR SPRIV LL_PWR_DisableSecurePrivilege

uint32_t LL_PWR_IsEnabledSecurePrivilege ( void )

Check if privileged mode for secure items is enabled.

Reference Manual to LL API cross reference (Register Field Functions)

PRIVCFGR SPRIV LL_PWR_IsEnabledSecurePrivilege

Return values :

State – of bit (1 or 0).

void LL_PWR_ConfigSecure ( uint32_t secure_config )

Configure secure attribute mode.

Reference Manual to LL API cross reference (Register Field Functions)

SECCFGR WUP1SEC LL_PWR_ConfigSecure

SECCFGR WUP2SEC LL_PWR_ConfigSecure

SECCFGR WUP3SEC LL_PWR_ConfigSecure

SECCFGR WUP4SEC LL_PWR_ConfigSecure

SECCFGR WUP5SEC LL_PWR_ConfigSecure

SECCFGR WUP6SEC LL_PWR_ConfigSecure

SECCFGR WUP7SEC LL_PWR_ConfigSecure

SECCFGR WUP8SEC LL_PWR_ConfigSecure

SECCFGR LPMSEC LL_PWR_ConfigSecure

SECCFGR VDMSEC LL_PWR_ConfigSecure

SECCFGR VBSEC LL_PWR_ConfigSecure

SECCFGR APCSEC LL_PWR_ConfigSecure

Note

This API can be executed only by Core in secure mode.

Parameters :

secure_config – This parameter can be the full combination of the following values:

uint32_t LL_PWR_GetConfigSecure ( void )

Get secure attribute configuration.

Reference Manual to LL API cross reference (Register Field Functions)

SECCFGR WUP1SEC LL_PWR_GetConfigSecure

SECCFGR WUP2SEC LL_PWR_GetConfigSecure

SECCFGR WUP3SEC LL_PWR_GetConfigSecure

SECCFGR WUP4SEC LL_PWR_GetConfigSecure

SECCFGR WUP5SEC LL_PWR_GetConfigSecure

SECCFGR WUP6SEC LL_PWR_GetConfigSecure

SECCFGR WUP7SEC LL_PWR_GetConfigSecure

SECCFGR WUP8SEC LL_PWR_GetConfigSecure

SECCFGR LPMSEC LL_PWR_GetConfigSecure

SECCFGR VDMSEC LL_PWR_GetConfigSecure

SECCFGR VBSEC LL_PWR_GetConfigSecure

SECCFGR APCSEC LL_PWR_GetConfigSecure

Warning

This API can be executed only by Core in secure mode.

Return values :

Returned – value is the combination of the following values: