STM32L486xx HAL User Manual
Functions
PLLSAI2
RCC Exported Functions

Functions

__STATIC_INLINE void LL_RCC_PLLSAI2_Enable (void)
 Enable PLLSAI2.
__STATIC_INLINE void LL_RCC_PLLSAI2_Disable (void)
 Disable PLLSAI2.
__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_IsReady (void)
 Check if PLLSAI2 Ready.
__STATIC_INLINE void LL_RCC_PLLSAI2_ConfigDomain_SAI (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLP)
 Configure PLLSAI2 used for SAI domain clock.
__STATIC_INLINE void LL_RCC_PLLSAI2_ConfigDomain_ADC (uint32_t Source, uint32_t PLLM, uint32_t PLLN, uint32_t PLLR)
 Configure PLLSAI2 used for ADC domain clock.
__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetN (void)
 Get SAI2PLL multiplication factor for VCO.
__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetP (void)
 Get SAI2PLL division factor for PLLSAI2P.
__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetR (void)
 Get SAI2PLL division factor for PLLSAI2R.
__STATIC_INLINE void LL_RCC_PLLSAI2_EnableDomain_SAI (void)
 Enable PLLSAI2 output mapped on SAI domain clock.
__STATIC_INLINE void LL_RCC_PLLSAI2_DisableDomain_SAI (void)
 Disable PLLSAI2 output mapped on SAI domain clock.
__STATIC_INLINE void LL_RCC_PLLSAI2_EnableDomain_ADC (void)
 Enable PLLSAI2 output mapped on ADC domain clock.
__STATIC_INLINE void LL_RCC_PLLSAI2_DisableDomain_ADC (void)
 Disable PLLSAI2 output mapped on ADC domain clock.

Function Documentation

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

Configure PLLSAI2 used for ADC domain clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLSAI2 and PLLSAI2 are disabled.
PLLSAI2N/PLLSAI2R can be written only when PLLSAI2 is disabled.
This can be selected for ADC
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLLSAI2_ConfigDomain_ADC
PLLCFGR PLLM LL_RCC_PLLSAI2_ConfigDomain_ADC
PLLSAI2CFGR PLLSAI2N LL_RCC_PLLSAI2_ConfigDomain_ADC
PLLSAI2CFGR PLLSAI2R LL_RCC_PLLSAI2_ConfigDomain_ADC
Parameters:
SourceThis parameter can be one of the following values:
PLLMThis parameter can be one of the following values:
PLLNBetween 8 and 86
PLLRThis parameter can be one of the following values:
Return values:
None

Definition at line 5016 of file stm32l4xx_ll_rcc.h.

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

Configure PLLSAI2 used for SAI domain clock.

Note:
PLL Source and PLLM Divider can be written only when PLL, PLLSAI2 and PLLSAI2 are disabled.
PLLSAI2N/PLLSAI2P can be written only when PLLSAI2 is disabled.
This can be selected for SAI1 or SAI2
Reference Manual to LL API cross reference:
PLLCFGR PLLSRC LL_RCC_PLLSAI2_ConfigDomain_SAI
PLLCFGR PLLM LL_RCC_PLLSAI2_ConfigDomain_SAI
PLLSAI2CFGR PLLSAI2N LL_RCC_PLLSAI2_ConfigDomain_SAI
PLLSAI2CFGR PLLSAI2P LL_RCC_PLLSAI2_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 4877 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_Disable ( void  )

Disable PLLSAI2.

Reference Manual to LL API cross reference:
CR PLLSAI2ON LL_RCC_PLLSAI2_Disable
Return values:
None

Definition at line 4695 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_DisableDomain_ADC ( void  )

Disable PLLSAI2 output mapped on ADC domain clock.

Note:
In order to save power, when of the PLLSAI2 is not used, Main PLLSAI2 should be 0
Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2REN LL_RCC_PLLSAI2_DisableDomain_ADC
Return values:
None

Definition at line 5252 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_DisableDomain_SAI ( void  )

Disable PLLSAI2 output mapped on SAI domain clock.

Note:
In order to save power, when of the PLLSAI2 is not used, should be 0
Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2PEN LL_RCC_PLLSAI2_DisableDomain_SAI
Return values:
None

Definition at line 5183 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_Enable ( void  )

Enable PLLSAI2.

Reference Manual to LL API cross reference:
CR PLLSAI2ON LL_RCC_PLLSAI2_Enable
Return values:
None

Definition at line 4685 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_EnableDomain_ADC ( void  )

Enable PLLSAI2 output mapped on ADC domain clock.

Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2REN LL_RCC_PLLSAI2_EnableDomain_ADC
Return values:
None

Definition at line 5240 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_PLLSAI2_EnableDomain_SAI ( void  )

Enable PLLSAI2 output mapped on SAI domain clock.

Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2PEN LL_RCC_PLLSAI2_EnableDomain_SAI
Return values:
None

Definition at line 5171 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetN ( void  )

Get SAI2PLL multiplication factor for VCO.

Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2N LL_RCC_PLLSAI2_GetN
Return values:
Between8 and 86

Definition at line 5028 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLLSAI2_GetFreqDomain_ADC(), and RCC_PLLSAI2_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetP ( void  )

Get SAI2PLL division factor for PLLSAI2P.

Note:
Used for PLLSAI2CLK (SAI1 or SAI2 clock).
Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2P LL_RCC_PLLSAI2_GetP
Return values:
Returnedvalue can be one of the following values:

Definition at line 5083 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLLSAI2_GetFreqDomain_SAI().

__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_GetR ( void  )

Get SAI2PLL division factor for PLLSAI2R.

Note:
Used for PLLADC2CLK (ADC clock) or PLLLCDCLK (LTDC clock) depending on devices
Reference Manual to LL API cross reference:
PLLSAI2CFGR PLLSAI2R LL_RCC_PLLSAI2_GetR
Return values:
Returnedvalue can be one of the following values:

Definition at line 5116 of file stm32l4xx_ll_rcc.h.

Referenced by RCC_PLLSAI2_GetFreqDomain_ADC().

__STATIC_INLINE uint32_t LL_RCC_PLLSAI2_IsReady ( void  )

Check if PLLSAI2 Ready.

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

Definition at line 4705 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_GetADCClockFreq(), LL_RCC_GetSAIClockFreq(), and UTILS_PLL_IsBusy().