STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
RCCEx CRS Extended Features
Collaboration diagram for RCCEx CRS Extended Features:

Macros

#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE()
 Enable the oscillator clock for frequency error counter.
#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE()
 Disable the oscillator clock for frequency error counter.
#define __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE()
 Enable the automatic hardware adjustment of TRIM bits.
#define __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE()
 Enable or disable the automatic hardware adjustment of TRIM bits.
#define __HAL_RCC_CRS_RELOADVALUE_CALCULATE(__FTARGET__, __FSYNC__)
 Macro to calculate reload value to be set in CRS register according to target and sync frequencies.

Detailed Description

Macro Definition Documentation

◆ __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE

#define __HAL_RCC_CRS_AUTOMATIC_CALIB_DISABLE ( )
Value:
#define CLEAR_BIT(REG, BIT)
Definition stm32h7xx.h:209
#define CRS_CR_AUTOTRIMEN
Automatic trimming enable.
#define CRS

Enable or disable the automatic hardware adjustment of TRIM bits.

Return values
None

Definition at line 3868 of file stm32h7xx_hal_rcc_ex.h.

◆ __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE

#define __HAL_RCC_CRS_AUTOMATIC_CALIB_ENABLE ( )
Value:
#define SET_BIT(REG, BIT)
Definition stm32h7xx.h:207

Enable the automatic hardware adjustment of TRIM bits.

Note
When the AUTOTRIMEN bit is set the CRS_CFGR register becomes write-protected.
Return values
None

Definition at line 3862 of file stm32h7xx_hal_rcc_ex.h.

◆ __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE

#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_DISABLE ( )
Value:
#define CRS_CR_CEN
Frequency error counter enable.

Disable the oscillator clock for frequency error counter.

Return values
None

Definition at line 3855 of file stm32h7xx_hal_rcc_ex.h.

◆ __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE

#define __HAL_RCC_CRS_FREQ_ERROR_COUNTER_ENABLE ( )
Value:

Enable the oscillator clock for frequency error counter.

Note
when the CEN bit is set the CRS_CFGR register becomes write-protected.
Return values
None

Definition at line 3849 of file stm32h7xx_hal_rcc_ex.h.

◆ __HAL_RCC_CRS_RELOADVALUE_CALCULATE

#define __HAL_RCC_CRS_RELOADVALUE_CALCULATE ( __FTARGET__,
__FSYNC__ )
Value:
(((__FTARGET__) / (__FSYNC__)) - 1U)

Macro to calculate reload value to be set in CRS register according to target and sync frequencies.

Note
The RELOAD value should be selected according to the ratio between the target frequency and the frequency of the synchronization source after pre-scaling. It is then decreased by one in order to reach the expected synchronization on the zero value. The formula is the following: RELOAD = (fTARGET / fSYNC) -1
Parameters
__FTARGET__Target frequency (value in Hz)
__FSYNC__Synchronization signal frequency (value in Hz)
Return values
None

Definition at line 3880 of file stm32h7xx_hal_rcc_ex.h.