STM32F479xx 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 PLLP_R)
 Configure PLL used for SYSCLK Domain.
__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_ConfigDomain_DSI (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
 Configure PLL used for DSI clock.
__STATIC_INLINE void LL_RCC_PLL_ConfigDomain_SAI (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
 Configure PLL used for SAI 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_ConfigSpreadSpectrum (uint32_t Mod, uint32_t Inc, uint32_t Sel)
 Configure Spread Spectrum used for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetPeriodModulation (void)
 Get Spread Spectrum Modulation Period for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetStepIncrementation (void)
 Get Spread Spectrum Incrementation Step for PLL.
__STATIC_INLINE uint32_t LL_RCC_PLL_GetSpreadSelection (void)
 Get Spread Spectrum Selection for PLL.
__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Enable (void)
 Enable Spread Spectrum for PLL.
__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Disable (void)
 Disable Spread Spectrum for PLL.

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, PLLI2S and PLLSAI(*) are disabled
PLLN/PLLQ can be written only when PLL is disabled
This can be selected for USB, RNG, SDIO
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:
PLLNBetween 50/192(*) and 432

(*) value not defined in all devices.

Parameters:
PLLQThis parameter can be one of the following values:
Return values:
None

Definition at line 4412 of file stm32f4xx_ll_rcc.h.

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

Configure PLL used for DSI clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLI2S and PLLSAI are disabled
PLLN/PLLR can be written only when PLL is disabled
This can be selected for DSI
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLL_ConfigDomain_DSI
PLLCFGR PLLM LL_RCC_PLL_ConfigDomain_DSI
PLLCFGR PLLN LL_RCC_PLL_ConfigDomain_DSI
PLLCFGR PLLR LL_RCC_PLL_ConfigDomain_DSI
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 50 and 432
PLLRThis parameter can be one of the following values:
Return values:
None

Definition at line 4505 of file stm32f4xx_ll_rcc.h.

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

Configure PLL used for SAI clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLI2S and PLLSAI are disabled
PLLN/PLLR can be written only when PLL is disabled
This can be selected for SAI
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 PLLR LL_RCC_PLL_ConfigDomain_SAI
DCKCFGR PLLDIVR 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 50 and 432
PLLRThis parameter can be one of the following values:
PLLDIVRThis parameter can be one of the following values:
  • LL_RCC_PLLDIVR_DIV_1 (*)
  • LL_RCC_PLLDIVR_DIV_2 (*)
  • LL_RCC_PLLDIVR_DIV_3 (*)
  • LL_RCC_PLLDIVR_DIV_4 (*)
  • LL_RCC_PLLDIVR_DIV_5 (*)
  • LL_RCC_PLLDIVR_DIV_6 (*)
  • LL_RCC_PLLDIVR_DIV_7 (*)
  • LL_RCC_PLLDIVR_DIV_8 (*)
  • LL_RCC_PLLDIVR_DIV_9 (*)
  • LL_RCC_PLLDIVR_DIV_10 (*)
  • LL_RCC_PLLDIVR_DIV_11 (*)
  • LL_RCC_PLLDIVR_DIV_12 (*)
  • LL_RCC_PLLDIVR_DIV_13 (*)
  • LL_RCC_PLLDIVR_DIV_14 (*)
  • LL_RCC_PLLDIVR_DIV_15 (*)
  • LL_RCC_PLLDIVR_DIV_16 (*)
  • LL_RCC_PLLDIVR_DIV_17 (*)
  • LL_RCC_PLLDIVR_DIV_18 (*)
  • LL_RCC_PLLDIVR_DIV_19 (*)
  • LL_RCC_PLLDIVR_DIV_20 (*)
  • LL_RCC_PLLDIVR_DIV_21 (*)
  • LL_RCC_PLLDIVR_DIV_22 (*)
  • LL_RCC_PLLDIVR_DIV_23 (*)
  • LL_RCC_PLLDIVR_DIV_24 (*)
  • LL_RCC_PLLDIVR_DIV_25 (*)
  • LL_RCC_PLLDIVR_DIV_26 (*)
  • LL_RCC_PLLDIVR_DIV_27 (*)
  • LL_RCC_PLLDIVR_DIV_28 (*)
  • LL_RCC_PLLDIVR_DIV_29 (*)
  • LL_RCC_PLLDIVR_DIV_30 (*)
  • LL_RCC_PLLDIVR_DIV_31 (*)
(*) value not defined in all devices.
Return values:
None

Definition at line 4826 of file stm32f4xx_ll_rcc.h.

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

Configure PLL used for SYSCLK Domain.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLI2S and PLLSAI(*) are disabled
PLLN/PLLP 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
PLLCFGR PLLP LL_RCC_PLL_ConfigDomain_SYS
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 50/192(*) and 432

(*) value not defined in all devices.

Parameters:
PLLP_RThis parameter can be one of the following values: (*) value not defined in all devices.
Return values:
None

Definition at line 4306 of file stm32f4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_HSE(), and LL_PLL_ConfigSystemClock_HSI().

__STATIC_INLINE void LL_RCC_PLL_ConfigSpreadSpectrum ( uint32_t  Mod,
uint32_t  Inc,
uint32_t  Sel 
)

Configure Spread Spectrum used for PLL.

Note:
These bits must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR MODPER LL_RCC_PLL_ConfigSpreadSpectrum
SSCGR INCSTEP LL_RCC_PLL_ConfigSpreadSpectrum
SSCGR SPREADSEL LL_RCC_PLL_ConfigSpreadSpectrum
Parameters:
ModBetween Min_Data=0 and Max_Data=8191
IncBetween Min_Data=0 and Max_Data=32767
SelThis parameter can be one of the following values:
Return values:
None

Definition at line 5062 of file stm32f4xx_ll_rcc.h.

__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 4197 of file stm32f4xx_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 4186 of file stm32f4xx_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:

Definition at line 5044 of file stm32f4xx_ll_rcc.h.

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

__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 4858 of file stm32f4xx_ll_rcc.h.

Referenced by LL_RCC_GetI2SClockFreq(), LL_RCC_GetSAIClockFreq(), RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_DSI(), RCC_PLL_GetFreqDomain_SAI(), RCC_PLL_GetFreqDomain_SYS(), RCC_PLLSAI_GetFreqDomain_48M(), RCC_PLLSAI_GetFreqDomain_LTDC(), and RCC_PLLSAI_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:
Between50/192(*) and 432

(*) value not defined in all devices.

Definition at line 4870 of file stm32f4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_48M(), RCC_PLL_GetFreqDomain_DSI(), 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.

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 4884 of file stm32f4xx_ll_rcc.h.

Referenced by RCC_PLL_GetFreqDomain_SYS().

__STATIC_INLINE uint32_t LL_RCC_PLL_GetPeriodModulation ( void  )

Get Spread Spectrum Modulation Period for PLL.

Reference Manual to LL API cross reference:
SSCGR MODPER LL_RCC_PLL_GetPeriodModulation
Return values:
BetweenMin_Data=0 and Max_Data=8191

Definition at line 5072 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLL_GetQ ( void  )

Get Main PLL division factor for PLLQ.

Note:
used for PLL48MCLK selected for USB, RNG, SDIO (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 4909 of file stm32f4xx_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 4927 of file stm32f4xx_ll_rcc.h.

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

__STATIC_INLINE uint32_t LL_RCC_PLL_GetSpreadSelection ( void  )

Get Spread Spectrum Selection for PLL.

Note:
Must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR SPREADSEL LL_RCC_PLL_GetSpreadSelection
Return values:
Returnedvalue can be one of the following values:

Definition at line 5096 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLL_GetStepIncrementation ( void  )

Get Spread Spectrum Incrementation Step for PLL.

Note:
Must be written before enabling PLL
Reference Manual to LL API cross reference:
SSCGR INCSTEP LL_RCC_PLL_GetStepIncrementation
Return values:
BetweenMin_Data=0 and Max_Data=32767

Definition at line 5083 of file stm32f4xx_ll_rcc.h.

__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 4207 of file stm32f4xx_ll_rcc.h.

Referenced by LL_RCC_DeInit(), LL_RCC_GetDSIClockFreq(), LL_RCC_GetI2SClockFreq(), LL_RCC_GetRNGClockFreq(), LL_RCC_GetSAIClockFreq(), LL_RCC_GetSDIOClockFreq(), 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 4846 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Disable ( void  )

Disable Spread Spectrum for PLL.

Reference Manual to LL API cross reference:
SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Disable
Return values:
None

Definition at line 5116 of file stm32f4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLL_SpreadSpectrum_Enable ( void  )

Enable Spread Spectrum for PLL.

Reference Manual to LL API cross reference:
SSCGR SSCGEN LL_RCC_PLL_SpreadSpectrum_Enable
Return values:
None

Definition at line 5106 of file stm32f4xx_ll_rcc.h.