STM32H735xx HAL User Manual
|
CRS LL module driver. More...
#include "stm32h7xx.h"
Go to the source code of this file.
Defines | |
#define | LL_CRS_ISR_SYNCOKF CRS_ISR_SYNCOKF |
#define | LL_CRS_ISR_SYNCWARNF CRS_ISR_SYNCWARNF |
#define | LL_CRS_ISR_ERRF CRS_ISR_ERRF |
#define | LL_CRS_ISR_ESYNCF CRS_ISR_ESYNCF |
#define | LL_CRS_ISR_SYNCERR CRS_ISR_SYNCERR |
#define | LL_CRS_ISR_SYNCMISS CRS_ISR_SYNCMISS |
#define | LL_CRS_ISR_TRIMOVF CRS_ISR_TRIMOVF |
#define | LL_CRS_CR_SYNCOKIE CRS_CR_SYNCOKIE |
#define | LL_CRS_CR_SYNCWARNIE CRS_CR_SYNCWARNIE |
#define | LL_CRS_CR_ERRIE CRS_CR_ERRIE |
#define | LL_CRS_CR_ESYNCIE CRS_CR_ESYNCIE |
#define | LL_CRS_SYNC_DIV_1 0x00000000U |
#define | LL_CRS_SYNC_DIV_2 CRS_CFGR_SYNCDIV_0 |
#define | LL_CRS_SYNC_DIV_4 CRS_CFGR_SYNCDIV_1 |
#define | LL_CRS_SYNC_DIV_8 (CRS_CFGR_SYNCDIV_1 | CRS_CFGR_SYNCDIV_0) |
#define | LL_CRS_SYNC_DIV_16 CRS_CFGR_SYNCDIV_2 |
#define | LL_CRS_SYNC_DIV_32 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_0) |
#define | LL_CRS_SYNC_DIV_64 (CRS_CFGR_SYNCDIV_2 | CRS_CFGR_SYNCDIV_1) |
#define | LL_CRS_SYNC_DIV_128 CRS_CFGR_SYNCDIV |
#define | LL_CRS_SYNC_SOURCE_GPIO 0x00000000U |
#define | LL_CRS_SYNC_SOURCE_LSE CRS_CFGR_SYNCSRC_0 |
#define | LL_CRS_SYNC_SOURCE_USB CRS_CFGR_SYNCSRC_1 |
#define | LL_CRS_SYNC_POLARITY_RISING 0x00000000U |
#define | LL_CRS_SYNC_POLARITY_FALLING CRS_CFGR_SYNCPOL |
#define | LL_CRS_FREQ_ERROR_DIR_UP 0x00000000U |
#define | LL_CRS_FREQ_ERROR_DIR_DOWN CRS_ISR_FEDIR |
#define | LL_CRS_RELOADVALUE_DEFAULT 0x0000BB7FU |
Reset value of the RELOAD field. | |
#define | LL_CRS_ERRORLIMIT_DEFAULT 0x00000022U |
Reset value of Frequency error limit. | |
#define | LL_CRS_HSI48CALIBRATION_DEFAULT 0x00000020U |
Reset value of the HSI48 Calibration field. | |
#define | LL_CRS_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__)) |
Write a value in CRS register. | |
#define | LL_CRS_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__) |
Read a value in CRS register. | |
#define | __LL_CRS_CALC_CALCULATE_RELOADVALUE(__FTARGET__, __FSYNC__) (((__FTARGET__) / (__FSYNC__)) - 1U) |
Macro to calculate reload value to be set in CRS register according to target and sync frequencies. | |
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. | |
__STATIC_INLINE void | LL_CRS_GenerateEvent_SWSYNC (void) |
Generate software SYNC event. | |
__STATIC_INLINE uint32_t | LL_CRS_GetFreqErrorDirection (void) |
Get the frequency error direction latched in the time of the last SYNC event. | |
__STATIC_INLINE uint32_t | LL_CRS_GetFreqErrorCapture (void) |
Get the frequency error counter value latched in the time of the last SYNC event. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_SYNCOK (void) |
Check if SYNC event OK signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_SYNCWARN (void) |
Check if SYNC warning signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_ERR (void) |
Check if Synchronization or trimming error signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_ESYNC (void) |
Check if Expected SYNC signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_SYNCERR (void) |
Check if SYNC error signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_SYNCMISS (void) |
Check if SYNC missed error signal occurred or not. | |
__STATIC_INLINE uint32_t | LL_CRS_IsActiveFlag_TRIMOVF (void) |
Check if Trimming overflow or underflow occurred or not. | |
__STATIC_INLINE void | LL_CRS_ClearFlag_SYNCOK (void) |
Clear the SYNC event OK flag. | |
__STATIC_INLINE void | LL_CRS_ClearFlag_SYNCWARN (void) |
Clear the SYNC warning flag. | |
__STATIC_INLINE void | LL_CRS_ClearFlag_ERR (void) |
Clear TRIMOVF, SYNCMISS and SYNCERR bits and consequently also the ERR flag. | |
__STATIC_INLINE void | LL_CRS_ClearFlag_ESYNC (void) |
Clear Expected SYNC flag. | |
__STATIC_INLINE void | LL_CRS_EnableIT_SYNCOK (void) |
Enable SYNC event OK interrupt. | |
__STATIC_INLINE void | LL_CRS_DisableIT_SYNCOK (void) |
Disable SYNC event OK interrupt. | |
__STATIC_INLINE uint32_t | LL_CRS_IsEnabledIT_SYNCOK (void) |
Check if SYNC event OK interrupt is enabled or not. | |
__STATIC_INLINE void | LL_CRS_EnableIT_SYNCWARN (void) |
Enable SYNC warning interrupt. | |
__STATIC_INLINE void | LL_CRS_DisableIT_SYNCWARN (void) |
Disable SYNC warning interrupt. | |
__STATIC_INLINE uint32_t | LL_CRS_IsEnabledIT_SYNCWARN (void) |
Check if SYNC warning interrupt is enabled or not. | |
__STATIC_INLINE void | LL_CRS_EnableIT_ERR (void) |
Enable Synchronization or trimming error interrupt. | |
__STATIC_INLINE void | LL_CRS_DisableIT_ERR (void) |
Disable Synchronization or trimming error interrupt. | |
__STATIC_INLINE uint32_t | LL_CRS_IsEnabledIT_ERR (void) |
Check if Synchronization or trimming error interrupt is enabled or not. | |
__STATIC_INLINE void | LL_CRS_EnableIT_ESYNC (void) |
Enable Expected SYNC interrupt. | |
__STATIC_INLINE void | LL_CRS_DisableIT_ESYNC (void) |
Disable Expected SYNC interrupt. | |
__STATIC_INLINE uint32_t | LL_CRS_IsEnabledIT_ESYNC (void) |
Check if Expected SYNC interrupt is enabled or not. | |
ErrorStatus | LL_CRS_DeInit (void) |
De-Initializes CRS peripheral registers to their default reset values. |
CRS LL module driver.
Header file of CRS LL module.
Copyright (c) 2017 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file stm32h7xx_ll_crs.h.