TUKS MCU Introductory course / TUKS-COURSE-2-LED
Embed: (wiki syntax)

« Back to documentation index

stm32l4xx_ll_crs.h File Reference

stm32l4xx_ll_crs.h File Reference

CRS LL module driver. More...

Go to the source code of this file.

Functions

__STATIC_INLINE void LL_CRS_EnableFreqErrorCounter (void)
 Enable Frequency error counter.
__STATIC_INLINE void LL_CRS_DisableFreqErrorCounter (void)
 Disable Frequency error counter CR CEN LL_CRS_DisableFreqErrorCounter.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledFreqErrorCounter (void)
 Check if Frequency error counter is enabled or not CR CEN LL_CRS_IsEnabledFreqErrorCounter.
__STATIC_INLINE void LL_CRS_EnableAutoTrimming (void)
 Enable Automatic trimming counter CR AUTOTRIMEN LL_CRS_EnableAutoTrimming.
__STATIC_INLINE void LL_CRS_DisableAutoTrimming (void)
 Disable Automatic trimming counter CR AUTOTRIMEN LL_CRS_DisableAutoTrimming.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledAutoTrimming (void)
 Check if Automatic trimming is enabled or not CR AUTOTRIMEN LL_CRS_IsEnabledAutoTrimming.
__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 CR TRIM LL_CRS_GetHSI48SmoothTrimming.
__STATIC_INLINE void LL_CRS_SetReloadCounter (uint32_t Value)
 Set counter reload value CFGR RELOAD LL_CRS_SetReloadCounter.
__STATIC_INLINE uint32_t LL_CRS_GetReloadCounter (void)
 Get counter reload value CFGR RELOAD LL_CRS_GetReloadCounter.
__STATIC_INLINE void LL_CRS_SetFreqErrorLimit (uint32_t Value)
 Set frequency error limit CFGR FELIM LL_CRS_SetFreqErrorLimit.
__STATIC_INLINE uint32_t LL_CRS_GetFreqErrorLimit (void)
 Get frequency error limit CFGR FELIM LL_CRS_GetFreqErrorLimit.
__STATIC_INLINE void LL_CRS_SetSyncDivider (uint32_t Divider)
 Set division factor for SYNC signal CFGR SYNCDIV LL_CRS_SetSyncDivider.
__STATIC_INLINE uint32_t LL_CRS_GetSyncDivider (void)
 Get division factor for SYNC signal CFGR SYNCDIV LL_CRS_GetSyncDivider.
__STATIC_INLINE void LL_CRS_SetSyncSignalSource (uint32_t Source)
 Set SYNC signal source CFGR SYNCSRC LL_CRS_SetSyncSignalSource.
__STATIC_INLINE uint32_t LL_CRS_GetSyncSignalSource (void)
 Get SYNC signal source CFGR SYNCSRC LL_CRS_GetSyncSignalSource.
__STATIC_INLINE void LL_CRS_SetSyncPolarity (uint32_t Polarity)
 Set input polarity for the SYNC signal source CFGR SYNCPOL LL_CRS_SetSyncPolarity.
__STATIC_INLINE uint32_t LL_CRS_GetSyncPolarity (void)
 Get input polarity for the SYNC signal source CFGR SYNCPOL LL_CRS_GetSyncPolarity.
__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.
__STATIC_INLINE void LL_CRS_GenerateEvent_SWSYNC (void)
 Generate software SYNC event CR SWSYNC LL_CRS_GenerateEvent_SWSYNC.
__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.
__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.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCOK (void)
 Check if SYNC event OK signal occurred or not ISR SYNCOKF LL_CRS_IsActiveFlag_SYNCOK.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCWARN (void)
 Check if SYNC warning signal occurred or not ISR SYNCWARNF LL_CRS_IsActiveFlag_SYNCWARN.
__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.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_ESYNC (void)
 Check if Expected SYNC signal occurred or not ISR ESYNCF LL_CRS_IsActiveFlag_ESYNC.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCERR (void)
 Check if SYNC error signal occurred or not ISR SYNCERR LL_CRS_IsActiveFlag_SYNCERR.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_SYNCMISS (void)
 Check if SYNC missed error signal occurred or not ISR SYNCMISS LL_CRS_IsActiveFlag_SYNCMISS.
__STATIC_INLINE uint32_t LL_CRS_IsActiveFlag_TRIMOVF (void)
 Check if Trimming overflow or underflow occurred or not ISR TRIMOVF LL_CRS_IsActiveFlag_TRIMOVF.
__STATIC_INLINE void LL_CRS_ClearFlag_SYNCOK (void)
 Clear the SYNC event OK flag ICR SYNCOKC LL_CRS_ClearFlag_SYNCOK.
__STATIC_INLINE void LL_CRS_ClearFlag_SYNCWARN (void)
 Clear the SYNC warning flag ICR SYNCWARNC LL_CRS_ClearFlag_SYNCWARN.
__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.
__STATIC_INLINE void LL_CRS_ClearFlag_ESYNC (void)
 Clear Expected SYNC flag ICR ESYNCC LL_CRS_ClearFlag_ESYNC.
__STATIC_INLINE void LL_CRS_EnableIT_SYNCOK (void)
 Enable SYNC event OK interrupt CR SYNCOKIE LL_CRS_EnableIT_SYNCOK.
__STATIC_INLINE void LL_CRS_DisableIT_SYNCOK (void)
 Disable SYNC event OK interrupt CR SYNCOKIE LL_CRS_DisableIT_SYNCOK.
__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.
__STATIC_INLINE void LL_CRS_EnableIT_SYNCWARN (void)
 Enable SYNC warning interrupt CR SYNCWARNIE LL_CRS_EnableIT_SYNCWARN.
__STATIC_INLINE void LL_CRS_DisableIT_SYNCWARN (void)
 Disable SYNC warning interrupt CR SYNCWARNIE LL_CRS_DisableIT_SYNCWARN.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_SYNCWARN (void)
 Check if SYNC warning interrupt is enabled or not CR SYNCWARNIE LL_CRS_IsEnabledIT_SYNCWARN.
__STATIC_INLINE void LL_CRS_EnableIT_ERR (void)
 Enable Synchronization or trimming error interrupt CR ERRIE LL_CRS_EnableIT_ERR.
__STATIC_INLINE void LL_CRS_DisableIT_ERR (void)
 Disable Synchronization or trimming error interrupt CR ERRIE LL_CRS_DisableIT_ERR.
__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.
__STATIC_INLINE void LL_CRS_EnableIT_ESYNC (void)
 Enable Expected SYNC interrupt CR ESYNCIE LL_CRS_EnableIT_ESYNC.
__STATIC_INLINE void LL_CRS_DisableIT_ESYNC (void)
 Disable Expected SYNC interrupt CR ESYNCIE LL_CRS_DisableIT_ESYNC.
__STATIC_INLINE uint32_t LL_CRS_IsEnabledIT_ESYNC (void)
 Check if Expected SYNC interrupt is enabled or not CR ESYNCIE LL_CRS_IsEnabledIT_ESYNC.
ErrorStatus LL_CRS_DeInit (void)
 De-Initializes CRS peripheral registers to their default reset values.

Detailed Description

CRS LL module driver.

Header file of CRS LL module.

Author:
MCD Application Team
Version:
V1.5.1
Date:
31-May-2016
Attention:

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32l4xx_ll_crs.h.