STM32H735xx HAL User Manual
Functions
Configuration
CRS Exported Functions

Functions

__STATIC_INLINE void LL_CRS_EnableFreqErrorCounter (void)
 Enable Frequency error counter.
__STATIC_INLINE void LL_CRS_DisableFreqErrorCounter (void)
 Disable Frequency error counter.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledFreqErrorCounter (void)
 Check if Frequency error counter is enabled or not.
__STATIC_INLINE void LL_CRS_EnableAutoTrimming (void)
 Enable Automatic trimming counter.
__STATIC_INLINE void LL_CRS_DisableAutoTrimming (void)
 Disable Automatic trimming counter.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledAutoTrimming (void)
 Check if Automatic trimming is enabled or not.
__STATIC_INLINE void LL_CRS_SetHSI48SmoothTrimming (uint32_t Value)
 Set HSI48 oscillator smooth trimming.
__STATIC_INLINE uint32_t LL_CRS_GetHSI48SmoothTrimming (void)
 Get HSI48 oscillator smooth trimming.
__STATIC_INLINE void LL_CRS_SetReloadCounter (uint32_t Value)
 Set counter reload value.
__STATIC_INLINE uint32_t LL_CRS_GetReloadCounter (void)
 Get counter reload value.
__STATIC_INLINE void LL_CRS_SetFreqErrorLimit (uint32_t Value)
 Set frequency error limit.
__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorLimit (void)
 Get frequency error limit.
__STATIC_INLINE void LL_CRS_SetSyncDivider (uint32_t Divider)
 Set division factor for SYNC signal.
__STATIC_INLINE uint32_t LL_CRS_GetSyncDivider (void)
 Get division factor for SYNC signal.
__STATIC_INLINE void LL_CRS_SetSyncSignalSource (uint32_t Source)
 Set SYNC signal source.
__STATIC_INLINE uint32_t LL_CRS_GetSyncSignalSource (void)
 Get SYNC signal source.
__STATIC_INLINE void LL_CRS_SetSyncPolarity (uint32_t Polarity)
 Set input polarity for the SYNC signal source.
__STATIC_INLINE uint32_t LL_CRS_GetSyncPolarity (void)
 Get input polarity for the SYNC signal source.
__STATIC_INLINE void LL_CRS_ConfigSynchronization (uint32_t HSI48CalibrationValue, uint32_t ErrorLimitValue, uint32_t ReloadValue, uint32_t Settings)
 Configure CRS for the synchronization.

Function Documentation

__STATIC_INLINE void LL_CRS_ConfigSynchronization ( uint32_t  HSI48CalibrationValue,
uint32_t  ErrorLimitValue,
uint32_t  ReloadValue,
uint32_t  Settings 
)

Configure CRS for the synchronization.

Reference Manual to LL API cross reference:
CR TRIM LL_CRS_ConfigSynchronization
CFGR RELOAD LL_CRS_ConfigSynchronization
CFGR FELIM LL_CRS_ConfigSynchronization
CFGR SYNCDIV LL_CRS_ConfigSynchronization
CFGR SYNCSRC LL_CRS_ConfigSynchronization
CFGR SYNCPOL LL_CRS_ConfigSynchronization
Parameters:
HSI48CalibrationValuea number between Min_Data = 0 and Max_Data = 63
ErrorLimitValuea number between Min_Data = 0 and Max_Data = 0xFFFF
ReloadValuea number between Min_Data = 0 and Max_Data = 255
SettingsThis parameter can be a combination of the following values:
Return values:
None

Definition at line 450 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_DisableAutoTrimming ( void  )

Disable Automatic trimming counter.

Reference Manual to LL API cross reference:
CR AUTOTRIMEN LL_CRS_DisableAutoTrimming
Return values:
None

Definition at line 260 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_DisableFreqErrorCounter ( void  )

Disable Frequency error counter.

Reference Manual to LL API cross reference:
CR CEN LL_CRS_DisableFreqErrorCounter
Return values:
None

Definition at line 230 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_EnableAutoTrimming ( void  )

Enable Automatic trimming counter.

Reference Manual to LL API cross reference:
CR AUTOTRIMEN LL_CRS_EnableAutoTrimming
Return values:
None

Definition at line 250 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_EnableFreqErrorCounter ( void  )

Enable Frequency error counter.

Note:
When this bit is set, the CRS_CFGR register is write-protected and cannot be modified
Reference Manual to LL API cross reference:
CR CEN LL_CRS_EnableFreqErrorCounter
Return values:
None

Definition at line 220 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorLimit ( void  )

Get frequency error limit.

Reference Manual to LL API cross reference:
CFGR FELIM LL_CRS_GetFreqErrorLimit
Return values:
Anumber between Min_Data = 0 and Max_Data = 255

Definition at line 338 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetHSI48SmoothTrimming ( void  )

Get HSI48 oscillator smooth trimming.

Reference Manual to LL API cross reference:
CR TRIM LL_CRS_GetHSI48SmoothTrimming
Return values:
anumber between Min_Data = 0 and Max_Data = 127

Definition at line 293 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetReloadCounter ( void  )

Get counter reload value.

Reference Manual to LL API cross reference:
CFGR RELOAD LL_CRS_GetReloadCounter
Return values:
anumber between Min_Data = 0 and Max_Data = 0xFFFF

Definition at line 316 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetSyncDivider ( void  )

Get division factor for SYNC signal.

Reference Manual to LL API cross reference:
CFGR SYNCDIV LL_CRS_GetSyncDivider
Return values:
Returnedvalue can be one of the following values:

Definition at line 375 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetSyncPolarity ( void  )

Get input polarity for the SYNC signal source.

Reference Manual to LL API cross reference:
CFGR SYNCPOL LL_CRS_GetSyncPolarity
Return values:
Returnedvalue can be one of the following values:

Definition at line 427 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_GetSyncSignalSource ( void  )

Get SYNC signal source.

Reference Manual to LL API cross reference:
CFGR SYNCSRC LL_CRS_GetSyncSignalSource
Return values:
Returnedvalue can be one of the following values:

Definition at line 402 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_IsEnabledAutoTrimming ( void  )

Check if Automatic trimming is enabled or not.

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

Definition at line 270 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE uint32_t LL_CRS_IsEnabledFreqErrorCounter ( void  )

Check if Frequency error counter is enabled or not.

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

Definition at line 240 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetFreqErrorLimit ( uint32_t  Value)

Set frequency error limit.

Reference Manual to LL API cross reference:
CFGR FELIM LL_CRS_SetFreqErrorLimit
Parameters:
Valuea number between Min_Data = 0 and Max_Data = 255
Note:
Default value can be set thanks to LL_CRS_ERRORLIMIT_DEFAULT
Return values:
None

Definition at line 328 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetHSI48SmoothTrimming ( uint32_t  Value)

Set HSI48 oscillator smooth trimming.

Note:
When the AUTOTRIMEN bit is set, this field is controlled by hardware and is read-only
Reference Manual to LL API cross reference:
CR TRIM LL_CRS_SetHSI48SmoothTrimming
Parameters:
Valuea number between Min_Data = 0 and Max_Data = 127
Note:
Default value can be set thanks to LL_CRS_HSI48CALIBRATION_DEFAULT
Return values:
None

Definition at line 283 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetReloadCounter ( uint32_t  Value)

Set counter reload value.

Reference Manual to LL API cross reference:
CFGR RELOAD LL_CRS_SetReloadCounter
Parameters:
Valuea number between Min_Data = 0 and Max_Data = 0xFFFF
Note:
Default value can be set thanks to LL_CRS_RELOADVALUE_DEFAULT Otherwise it can be calculated in using macro __LL_CRS_CALC_CALCULATE_RELOADVALUE (_FTARGET_, _FSYNC_)
Return values:
None

Definition at line 306 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetSyncDivider ( uint32_t  Divider)

Set division factor for SYNC signal.

Reference Manual to LL API cross reference:
CFGR SYNCDIV LL_CRS_SetSyncDivider
Parameters:
DividerThis parameter can be one of the following values:
Return values:
None

Definition at line 357 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetSyncPolarity ( uint32_t  Polarity)

Set input polarity for the SYNC signal source.

Reference Manual to LL API cross reference:
CFGR SYNCPOL LL_CRS_SetSyncPolarity
Parameters:
PolarityThis parameter can be one of the following values:
Return values:
None

Definition at line 415 of file stm32h7xx_ll_crs.h.

__STATIC_INLINE void LL_CRS_SetSyncSignalSource ( uint32_t  Source)

Set SYNC signal source.

Reference Manual to LL API cross reference:
CFGR SYNCSRC LL_CRS_SetSyncSignalSource
Parameters:
SourceThis parameter can be one of the following values:
Return values:
None

Definition at line 389 of file stm32h7xx_ll_crs.h.