STM32L4xx_HAL_Driver  1.14.0

Functions

__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...
 

Detailed Description

Function Documentation

◆ LL_CRS_GenerateEvent_SWSYNC()

__STATIC_INLINE void LL_CRS_GenerateEvent_SWSYNC ( void  )

Generate software SYNC event CR SWSYNC LL_CRS_GenerateEvent_SWSYNC.

Return values
None

Definition at line 477 of file stm32l4xx_ll_crs.h.

478 {
479  SET_BIT(CRS->CR, CRS_CR_SWSYNC);
480 }

◆ LL_CRS_GetFreqErrorCapture()

__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.

Return values
Anumber between Min_Data = 0x0000 and Max_Data = 0xFFFF

Definition at line 500 of file stm32l4xx_ll_crs.h.

501 {
502  return (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FECAP) >> CRS_ISR_FECAP_Pos);
503 }

◆ LL_CRS_GetFreqErrorDirection()

__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.

Return values
Returnedvalue can be one of the following values:
  • LL_CRS_FREQ_ERROR_DIR_UP
  • LL_CRS_FREQ_ERROR_DIR_DOWN

Definition at line 490 of file stm32l4xx_ll_crs.h.

491 {
492  return (uint32_t)(READ_BIT(CRS->ISR, CRS_ISR_FEDIR));
493 }