STM32L486xx HAL User Manual
Functions
MSI
RCC Exported Functions

Functions

__STATIC_INLINE void LL_RCC_MSI_Enable (void)
 Enable MSI oscillator.
__STATIC_INLINE void LL_RCC_MSI_Disable (void)
 Disable MSI oscillator.
__STATIC_INLINE uint32_t LL_RCC_MSI_IsReady (void)
 Check if MSI oscillator Ready.
__STATIC_INLINE void LL_RCC_MSI_EnablePLLMode (void)
 Enable MSI PLL-mode (Hardware auto calibration with LSE)
__STATIC_INLINE void LL_RCC_MSI_DisablePLLMode (void)
 Disable MSI-PLL mode.
__STATIC_INLINE void LL_RCC_MSI_EnableRangeSelection (void)
 Enable MSI clock range selection with MSIRANGE register.
__STATIC_INLINE uint32_t LL_RCC_MSI_IsEnabledRangeSelect (void)
 Check if MSI clock range is selected with MSIRANGE register.
__STATIC_INLINE void LL_RCC_MSI_SetRange (uint32_t Range)
 Configure the Internal Multi Speed oscillator (MSI) clock range in run mode.
__STATIC_INLINE uint32_t LL_RCC_MSI_GetRange (void)
 Get the Internal Multi Speed oscillator (MSI) clock range in run mode.
__STATIC_INLINE void LL_RCC_MSI_SetRangeAfterStandby (uint32_t Range)
 Configure MSI range used after standby.
__STATIC_INLINE uint32_t LL_RCC_MSI_GetRangeAfterStandby (void)
 Get MSI range used after standby.
__STATIC_INLINE uint32_t LL_RCC_MSI_GetCalibration (void)
 Get MSI Calibration value.
__STATIC_INLINE void LL_RCC_MSI_SetCalibTrimming (uint32_t Value)
 Set MSI Calibration trimming.
__STATIC_INLINE uint32_t LL_RCC_MSI_GetCalibTrimming (void)
 Get MSI Calibration trimming.

Function Documentation

__STATIC_INLINE void LL_RCC_MSI_Disable ( void  )

Disable MSI oscillator.

Reference Manual to LL API cross reference:
CR MSION LL_RCC_MSI_Disable
Return values:
None

Definition at line 2417 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_MSI_DisablePLLMode ( void  )

Disable MSI-PLL mode.

Note:
cleared by hardware when LSE is disabled (LSEON = 0) or when the Clock Security System on LSE detects a LSE failure
Reference Manual to LL API cross reference:
CR MSIPLLEN LL_RCC_MSI_DisablePLLMode
Return values:
None

Definition at line 2453 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_MSI_Enable ( void  )

Enable MSI oscillator.

Reference Manual to LL API cross reference:
CR MSION LL_RCC_MSI_Enable
Return values:
None

Definition at line 2407 of file stm32l4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_MSI(), and LL_RCC_DeInit().

__STATIC_INLINE void LL_RCC_MSI_EnablePLLMode ( void  )

Enable MSI PLL-mode (Hardware auto calibration with LSE)

Note:
MSIPLLEN must be enabled after LSE is enabled (LSEON enabled) and ready (LSERDY set by hardware)
hardware protection to avoid enabling MSIPLLEN if LSE is not ready
Reference Manual to LL API cross reference:
CR MSIPLLEN LL_RCC_MSI_EnablePLLMode
Return values:
None

Definition at line 2441 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE void LL_RCC_MSI_EnableRangeSelection ( void  )

Enable MSI clock range selection with MSIRANGE register.

Note:
Write 0 has no effect. After a standby or a reset MSIRGSEL is at 0 and the MSI range value is provided by MSISRANGE
Reference Manual to LL API cross reference:
CR MSIRGSEL LL_RCC_MSI_EnableRangeSelection
Return values:
None

Definition at line 2466 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_MSI_GetCalibration ( void  )

Get MSI Calibration value.

Note:
When MSITRIM is written, MSICAL is updated with the sum of MSITRIM and the factory trim value
Reference Manual to LL API cross reference:
ICSCR MSICAL LL_RCC_MSI_GetCalibration
Return values:
BetweenMin_Data = 0 and Max_Data = 255

Definition at line 2562 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_MSI_GetCalibTrimming ( void  )

Get MSI Calibration trimming.

Reference Manual to LL API cross reference:
ICSCR MSITRIM LL_RCC_MSI_GetCalibTrimming
Return values:
Between0 and 255

Definition at line 2584 of file stm32l4xx_ll_rcc.h.

__STATIC_INLINE uint32_t LL_RCC_MSI_GetRange ( void  )
__STATIC_INLINE uint32_t LL_RCC_MSI_GetRangeAfterStandby ( void  )
__STATIC_INLINE uint32_t LL_RCC_MSI_IsEnabledRangeSelect ( void  )

Check if MSI clock range is selected with MSIRANGE register.

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

Definition at line 2476 of file stm32l4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_MSI(), LL_RCC_GetRNGClockFreq(), LL_RCC_GetSDMMCClockFreq(), LL_RCC_GetUSBClockFreq(), RCC_GetSystemClockFreq(), 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_MSI_IsReady ( void  )

Check if MSI oscillator Ready.

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

Definition at line 2427 of file stm32l4xx_ll_rcc.h.

Referenced by LL_PLL_ConfigSystemClock_MSI(), LL_RCC_DeInit(), LL_RCC_GetRNGClockFreq(), LL_RCC_GetSDMMCClockFreq(), and LL_RCC_GetUSBClockFreq().

__STATIC_INLINE void LL_RCC_MSI_SetCalibTrimming ( uint32_t  Value)

Set MSI Calibration trimming.

Note:
user-programmable trimming value that is added to the MSICAL
Reference Manual to LL API cross reference:
ICSCR MSITRIM LL_RCC_MSI_SetCalibTrimming
Parameters:
ValueBetween Min_Data = 0 and Max_Data = 255
Return values:
None

Definition at line 2574 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_DeInit().

__STATIC_INLINE void LL_RCC_MSI_SetRange ( uint32_t  Range)

Configure the Internal Multi Speed oscillator (MSI) clock range in run mode.

Reference Manual to LL API cross reference:
CR MSIRANGE LL_RCC_MSI_SetRange
Parameters:
RangeThis parameter can be one of the following values:
Return values:
None

Definition at line 2499 of file stm32l4xx_ll_rcc.h.

Referenced by LL_RCC_DeInit().

__STATIC_INLINE void LL_RCC_MSI_SetRangeAfterStandby ( uint32_t  Range)

Configure MSI range used after standby.

Reference Manual to LL API cross reference:
CSR MSISRANGE LL_RCC_MSI_SetRangeAfterStandby
Parameters:
RangeThis parameter can be one of the following values:
Return values:
None

Definition at line 2536 of file stm32l4xx_ll_rcc.h.