STM32L486xx HAL User Manual
Functions
PLL
RCC Exported Functions

Functions

__STATIC_INLINE void LL_RCC_PLL_Enable (void)
 Enable PLL.
__STATIC_INLINE void LL_RCC_PLL_Disable (void)
 Disable PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_IsReady (void)
 Check if PLL Ready.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SYS (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
 Configure PLL used for SYSCLK Domain.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SAI (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP)
 Configure PLL used for SAI domain clock.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_48M (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLQ)
 Configure PLL used for 48Mhz domain clock.
__STATIC_INLINE void LL_RCC_PLL_SetMainSource (uint32_t PLLSource)
 Configure PLL clock source.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetMainSource (void)
 Get the oscillator used as PLL clock source.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetN (void)
 Get Main PLL multiplication factor for VCO.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetP (void)
 Get Main PLL division factor for PLLP.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetQ (void)
 Get Main PLL division factor for PLLQ.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetR (void)
 Get Main PLL division factor for PLLR.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetDivider (void)
 Get Division factor for the main PLL and other PLL.
__STATIC_INLINE void LL_RCC_PLL_EnableDomain_SAI (void)
 Enable PLL output mapped on SAI domain clock.
__STATIC_INLINE void LL_RCC_PLL_DisableDomain_SAI (void)
 Disable PLL output mapped on SAI domain clock.
__STATIC_INLINE void LL_RCC_PLL_EnableDomain_48M (void)
 Enable PLL output mapped on 48MHz domain clock.
__STATIC_INLINE void LL_RCC_PLL_DisableDomain_48M (void)
 Disable PLL output mapped on 48MHz domain clock.
__STATIC_INLINE void LL_RCC_PLL_EnableDomain_SYS (void)
 Enable PLL output mapped on SYSCLK domain.
__STATIC_INLINE void LL_RCC_PLL_DisableDomain_SYS (void)
 Disable PLL output mapped on SYSCLK domain.

Function Documentation

__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_48M ( uint32_t  Source,
uint32_t  PLLM,
uint32_t  PLLN,
uint32_t  PLLQ 
)

Configure PLL used for 48Mhz domain clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLSAI1 and PLLSAI2 (*) are disabled.
PLLN/PLLQ can be written only when PLL is disabled.
This can be selected for USB, RNG, SDMMC
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_48M
PLLCFGR PLLQ LL_RCC_PLL_ConfigDomain_48M
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values: (*) value not defined in all devices.
PLLNBetween 8 and 86
PLLQThis parameter can be one of the following values:
Return values:
None

Definition at line 3865 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SAI ( uint32_t  Source,
uint32_t  PLLM,
uint32_t  PLLN,
uint32_t  PLLP 
)

Configure PLL used for SAI domain clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLSAI1 and PLLSAI2 (*) are disabled.
PLLN/PLLP can be written only when PLL is disabled.
This can be selected for SAI1 or SAI2 (*)
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_SAI
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_SAI
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_SAI
PLLCFGR PLLP LL_RCC_PLL_ConfigDomain_SAI
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 8 and 86
PLLPThis parameter can be one of the following values:
Return values:
None

Definition at line 3812 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SYS ( uint32_t  Source,
uint32_t  PLLM,
uint32_t  PLLN,
uint32_t  PLLR 
)

Configure PLL used for SYSCLK Domain.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLSAI1 and PLLSAI2 (*) are disabled.
PLLN/PLLR can be written only when PLL is disabled.
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_SYS
PLLCFGR PLLR LL_RCC_PLL_ConfigDomain_SYS
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values: (*) value not defined in all devices.
PLLNBetween 8 and 86
PLLRThis parameter can be one of the following values:
Return values:
None

Definition at line 3705 of file stm32l4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_HSE(), LL_PLL_ConfigSystemClock_HSI(), and LL_PLL_ConfigSystemClock_MSI().

__STATIC_INLINE void LL_RCC_PLL_Disable ( void  )

Disable PLL.

Note:
Cannot be disabled if the PLL clock is used as the system clock
Reference Manual to LL API cross reference:
CR PLLON LL_RCC_PLL_Disable
Return values:
None

Definition at line 3649 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_DisableDomain_48M ( void  )

Disable PLL output mapped on 48MHz domain clock.

Note:
Cannot be disabled if the PLL clock is used as the system clock
In order to save power, when the PLLCLK of the PLL is not used, should be 0
Reference Manual to LL API cross reference:
PLLCFGR PLLQEN LL_RCC_PLL_DisableDomain_48M
Return values:
None

Definition at line 4067 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_DisableDomain_SAI ( void  )

Disable PLL output mapped on SAI domain clock.

Note:
Cannot be disabled if the PLL clock is used as the system clock
In order to save power, when the PLLCLK of the PLL is not used, should be 0
Reference Manual to LL API cross reference:
PLLCFGR PLLPEN LL_RCC_PLL_DisableDomain_SAI
Return values:
None

Definition at line 4043 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_DisableDomain_SYS ( void  )

Disable PLL output mapped on SYSCLK domain.

Note:
Cannot be disabled if the PLL clock is used as the system clock
In order to save power, when the PLLCLK of the PLL is not used, Main PLL should be 0
Reference Manual to LL API cross reference:
PLLCFGR PLLREN LL_RCC_PLL_DisableDomain_SYS
Return values:
None

Definition at line 4091 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_Enable ( void  )

Enable PLL.

Reference Manual to LL API cross reference:
CR PLLON LL_RCC_PLL_Enable
Return values:
None

Definition at line 3638 of file stm32l4xx_ll_rcc.h.

Referenced by UTILS_EnablePLLAndSwitchSystem().

__STATIC_INLINE void LL_RCC_PLL_EnableDomain_48M ( void  )

Enable PLL output mapped on 48MHz domain clock.

Reference Manual to LL API cross reference:
PLLCFGR PLLQEN LL_RCC_PLL_EnableDomain_48M
Return values:
None

Definition at line 4053 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_EnableDomain_SAI ( void  )

Enable PLL output mapped on SAI domain clock.

Reference Manual to LL API cross reference:
PLLCFGR PLLPEN LL_RCC_PLL_EnableDomain_SAI
Return values:
None

Definition at line 4029 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_EnableDomain_SYS ( void  )

Enable PLL output mapped on SYSCLK domain.

Reference Manual to LL API cross reference:
PLLCFGR PLLREN LL_RCC_PLL_EnableDomain_SYS
Return values:
None

Definition at line 4077 of file stm32l4xx_ll_rcc.h.

Referenced by UTILS_EnablePLLAndSwitchSystem().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetDivider ( void  )

Get Division factor for the main PLL and other PLL.

Reference Manual to LL API cross reference:
PLLCFGR PLLM LL_RCC_PLL_GetDivider
Return values:
Returnedvalue can be one of the following values: (*) value not defined in all devices.

Definition at line 4019 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_SAI(), RCC_PLL_GetFreqDomain_SYS(), RCC_PLLSAI1_GetFreqDomain_48M(), RCC_PLLSAI1_GetFreqDomain_ADC(), RCC_PLLSAI1_GetFreqDomain_SAI(), RCC_PLLSAI2_GetFreqDomain_ADC(), and RCC_PLLSAI2_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetMainSource ( void  )

Get the oscillator used as PLL clock source.

Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_GetMainSource
Return values:
Returnedvalue can be one of the following values:

Definition at line 3895 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_SAI(), RCC_PLL_GetFreqDomain_SYS(), RCC_PLLSAI1_GetFreqDomain_48M(), RCC_PLLSAI1_GetFreqDomain_ADC(), RCC_PLLSAI1_GetFreqDomain_SAI(), RCC_PLLSAI2_GetFreqDomain_ADC(), and RCC_PLLSAI2_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetN ( void  )

Get Main PLL multiplication factor for VCO.

Reference Manual to LL API cross reference:
PLLCFGR PLLN LL_RCC_PLL_GetN
Return values:
Between8 and 86

Definition at line 3905 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_SAI(), and RCC_PLL_GetFreqDomain_SYS().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetP ( void  )

Get Main PLL division factor for PLLP.

Note:
Used for PLLSAI3CLK (SAI1 and SAI2 clock)
Reference Manual to LL API cross reference:
PLLCFGR PLLP LL_RCC_PLL_GetP
Return values:
Returnedvalue can be one of the following values:

Definition at line 3960 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetQ ( void  )

Get Main PLL division factor for PLLQ.

Note:
Used for PLL48M1CLK selected for USB, RNG, SDMMC (48 MHz clock)
Reference Manual to LL API cross reference:
PLLCFGR PLLQ LL_RCC_PLL_GetQ
Return values:
Returnedvalue can be one of the following values:

Definition at line 3976 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetR ( void  )

Get Main PLL division factor for PLLR.

Note:
Used for PLLCLK (system clock)
Reference Manual to LL API cross reference:
PLLCFGR PLLR LL_RCC_PLL_GetR
Return values:
Returnedvalue can be one of the following values:

Definition at line 3991 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_SYS().

__STATIC_INLINE uint32_t LL_RCC_PLL_IsReady ( void  )

Check if PLL Ready.

Reference Manual to LL API cross reference:
CR PLLRDY LL_RCC_PLL_IsReady
Return values:
Stateof bit (1 or 0).

Definition at line 3659 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetRNGClockFreq(), LL_RCC_GetSAIClockFreq(), LL_RCC_GetSDMMCClockFreq(), LL_RCC_GetUSBClockFreq(), UTILS_EnablePLLAndSwitchSystem(), and UTILS_PLL_IsBusy().

__STATIC_INLINE void LL_RCC_PLL_SetMainSource ( uint32_t  PLLSource)

Configure PLL clock source.

Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_SetMainSource
Parameters:
PLLSourceThis parameter can be one of the following values:
Return values:
None

Definition at line 3881 of file stm32l4xx_ll_rcc.h.