STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_crs.h File Reference

Header file of CRS LL module. More...

Go to the source code of this file.

Functions

__STATIC_INLINE void LL_CRS_EnableFreqErrorCounter (void)
 Enable Frequency error counter. More...
 
__STATIC_INLINE void LL_CRS_DisableFreqErrorCounter (void)
 Disable Frequency error counter CR CEN LL_CRS_DisableFreqErrorCounter. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledFreqErrorCounter (void)
 Check if Frequency error counter is enabled or not CR CEN LL_CRS_IsEnabledFreqErrorCounter. More...
 
__STATIC_INLINE void LL_CRS_EnableAutoTrimming (void)
 Enable Automatic trimming counter CR AUTOTRIMEN LL_CRS_EnableAutoTrimming. More...
 
__STATIC_INLINE void LL_CRS_DisableAutoTrimming (void)
 Disable Automatic trimming counter CR AUTOTRIMEN LL_CRS_DisableAutoTrimming. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledAutoTrimming (void)
 Check if Automatic trimming is enabled or not CR AUTOTRIMEN LL_CRS_IsEnabledAutoTrimming. More...
 
__STATIC_INLINE void LL_CRS_SetHSI48SmoothTrimming (uint32_t Value)
 Set HSI48 oscillator smooth trimming. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetHSI48SmoothTrimming (void)
 Get HSI48 oscillator smooth trimming CR TRIM LL_CRS_GetHSI48SmoothTrimming. More...
 
__STATIC_INLINE void LL_CRS_SetReloadCounter (uint32_t Value)
 Set counter reload value CFGR RELOAD LL_CRS_SetReloadCounter. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetReloadCounter (void)
 Get counter reload value CFGR RELOAD LL_CRS_GetReloadCounter. More...
 
__STATIC_INLINE void LL_CRS_SetFreqErrorLimit (uint32_t Value)
 Set frequency error limit CFGR FELIM LL_CRS_SetFreqErrorLimit. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorLimit (void)
 Get frequency error limit CFGR FELIM LL_CRS_GetFreqErrorLimit. More...
 
__STATIC_INLINE void LL_CRS_SetSyncDivider (uint32_t Divider)
 Set division factor for SYNC signal CFGR SYNCDIV LL_CRS_SetSyncDivider. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetSyncDivider (void)
 Get division factor for SYNC signal CFGR SYNCDIV LL_CRS_GetSyncDivider. More...
 
__STATIC_INLINE void LL_CRS_SetSyncSignalSource (uint32_t Source)
 Set SYNC signal source CFGR SYNCSRC LL_CRS_SetSyncSignalSource. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetSyncSignalSource (void)
 Get SYNC signal source CFGR SYNCSRC LL_CRS_GetSyncSignalSource. More...
 
__STATIC_INLINE void LL_CRS_SetSyncPolarity (uint32_t Polarity)
 Set input polarity for the SYNC signal source CFGR SYNCPOL LL_CRS_SetSyncPolarity. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetSyncPolarity (void)
 Get input polarity for the SYNC signal source CFGR SYNCPOL LL_CRS_GetSyncPolarity. More...
 
__STATIC_INLINE void LL_CRS_ConfigSynchronization (uint32_t HSI48CalibrationValue, uint32_t ErrorLimitValue, uint32_t ReloadValue, uint32_t Settings)
 Configure CRS for the synchronization 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. More...
 
__STATIC_INLINE void LL_CRS_GenerateEvent_SWSYNC (void)
 Generate software SYNC event CR SWSYNC LL_CRS_GenerateEvent_SWSYNC. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorDirection (void)
 Get the frequency error direction latched in the time of the last SYNC event ISR FEDIR LL_CRS_GetFreqErrorDirection. More...
 
__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorCapture (void)
 Get the frequency error counter value latched in the time of the last SYNC event ISR FECAP LL_CRS_GetFreqErrorCapture. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCOK (void)
 Check if SYNC event OK signal occurred or not ISR SYNCOKF LL_CRS_IsActiveFlag_SYNCOK. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCWARN (void)
 Check if SYNC warning signal occurred or not ISR SYNCWARNF LL_CRS_IsActiveFlag_SYNCWARN. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_ERR (void)
 Check if Synchronization or trimming error signal occurred or not ISR ERRF LL_CRS_IsActiveFlag_ERR. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_ESYNC (void)
 Check if Expected SYNC signal occurred or not ISR ESYNCF LL_CRS_IsActiveFlag_ESYNC. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCERR (void)
 Check if SYNC error signal occurred or not ISR SYNCERR LL_CRS_IsActiveFlag_SYNCERR. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCMISS (void)
 Check if SYNC missed error signal occurred or not ISR SYNCMISS LL_CRS_IsActiveFlag_SYNCMISS. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_TRIMOVF (void)
 Check if Trimming overflow or underflow occurred or not ISR TRIMOVF LL_CRS_IsActiveFlag_TRIMOVF. More...
 
__STATIC_INLINE void LL_CRS_ClearFlag_SYNCOK (void)
 Clear the SYNC event OK flag ICR SYNCOKC LL_CRS_ClearFlag_SYNCOK. More...
 
__STATIC_INLINE void LL_CRS_ClearFlag_SYNCWARN (void)
 Clear the SYNC warning flag ICR SYNCWARNC LL_CRS_ClearFlag_SYNCWARN. More...
 
__STATIC_INLINE void LL_CRS_ClearFlag_ERR (void)
 Clear TRIMOVF, SYNCMISS and SYNCERR bits and consequently also the ERR flag ICR ERRC LL_CRS_ClearFlag_ERR. More...
 
__STATIC_INLINE void LL_CRS_ClearFlag_ESYNC (void)
 Clear Expected SYNC flag ICR ESYNCC LL_CRS_ClearFlag_ESYNC. More...
 
__STATIC_INLINE void LL_CRS_EnableIT_SYNCOK (void)
 Enable SYNC event OK interrupt CR SYNCOKIE LL_CRS_EnableIT_SYNCOK. More...
 
__STATIC_INLINE void LL_CRS_DisableIT_SYNCOK (void)
 Disable SYNC event OK interrupt CR SYNCOKIE LL_CRS_DisableIT_SYNCOK. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_SYNCOK (void)
 Check if SYNC event OK interrupt is enabled or not CR SYNCOKIE LL_CRS_IsEnabledIT_SYNCOK. More...
 
__STATIC_INLINE void LL_CRS_EnableIT_SYNCWARN (void)
 Enable SYNC warning interrupt CR SYNCWARNIE LL_CRS_EnableIT_SYNCWARN. More...
 
__STATIC_INLINE void LL_CRS_DisableIT_SYNCWARN (void)
 Disable SYNC warning interrupt CR SYNCWARNIE LL_CRS_DisableIT_SYNCWARN. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_SYNCWARN (void)
 Check if SYNC warning interrupt is enabled or not CR SYNCWARNIE LL_CRS_IsEnabledIT_SYNCWARN. More...
 
__STATIC_INLINE void LL_CRS_EnableIT_ERR (void)
 Enable Synchronization or trimming error interrupt CR ERRIE LL_CRS_EnableIT_ERR. More...
 
__STATIC_INLINE void LL_CRS_DisableIT_ERR (void)
 Disable Synchronization or trimming error interrupt CR ERRIE LL_CRS_DisableIT_ERR. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ERR (void)
 Check if Synchronization or trimming error interrupt is enabled or not CR ERRIE LL_CRS_IsEnabledIT_ERR. More...
 
__STATIC_INLINE void LL_CRS_EnableIT_ESYNC (void)
 Enable Expected SYNC interrupt CR ESYNCIE LL_CRS_EnableIT_ESYNC. More...
 
__STATIC_INLINE void LL_CRS_DisableIT_ESYNC (void)
 Disable Expected SYNC interrupt CR ESYNCIE LL_CRS_DisableIT_ESYNC. More...
 
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ESYNC (void)
 Check if Expected SYNC interrupt is enabled or not CR ESYNCIE LL_CRS_IsEnabledIT_ESYNC. More...
 
ErrorStatus LL_CRS_DeInit (void)
 De-Initializes CRS peripheral registers to their default reset values. More...
 

Detailed Description

Header file of CRS LL module.

CRS LL module driver.

Author
MCD Application Team
Attention

© Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32l4xx_ll_crs.h.