STM32L486xx HAL User Manual
Functions
Calibration
RTC Exported Functions

Functions

__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq (RTC_TypeDef *RTCx, uint32_t Frequency)
 Set Calibration output frequency (1 Hz or 512 Hz)
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq (RTC_TypeDef *RTCx)
 Get Calibration output frequency (1 Hz or 512 Hz)
__STATIC_INLINE void LL_RTC_CAL_SetPulse (RTC_TypeDef *RTCx, uint32_t Pulse)
 Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)
__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted (RTC_TypeDef *RTCx)
 Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm)
__STATIC_INLINE void LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period)
 Set the calibration cycle period.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx)
 Get the calibration cycle period.
__STATIC_INLINE void LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus)
 Set Calibration minus.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx)
 Get Calibration minus.

Function Documentation

__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus ( RTC_TypeDef *  RTCx)

Get Calibration minus.

Reference Manual to LL API cross reference:
CALR CALM LL_RTC_CAL_GetMinus
Parameters:
RTCxRTC Instance
Return values:
Valuebetween Min_Data=0x00 and Max_Data= 0x1FF

Definition at line 3242 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq ( RTC_TypeDef *  RTCx)

Get Calibration output frequency (1 Hz or 512 Hz)

Reference Manual to LL API cross reference:
CR COE LL_RTC_CAL_GetOutputFreq
CR COSEL LL_RTC_CAL_GetOutputFreq
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 3157 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod ( RTC_TypeDef *  RTCx)

Get the calibration cycle period.

Reference Manual to LL API cross reference:
CALR CALW8 LL_RTC_CAL_GetPeriod
CALR CALW16 LL_RTC_CAL_GetPeriod
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 3217 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted ( RTC_TypeDef *  RTCx)

Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm)

Reference Manual to LL API cross reference:
CALR CALP LL_RTC_CAL_IsPulseInserted
Parameters:
RTCxRTC Instance
Return values:
Stateof bit (1 or 0).

Definition at line 3184 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_SetMinus ( RTC_TypeDef *  RTCx,
uint32_t  CalibMinus 
)

Set Calibration minus.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
Bit can be written only when RECALPF is set to 0 in RTC_ISR
Reference Manual to LL API cross reference:
CALR CALM LL_RTC_CAL_SetMinus
Parameters:
RTCxRTC Instance
CalibMinusValue between Min_Data=0x00 and Max_Data=0x1FF
Return values:
None

Definition at line 3231 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq ( RTC_TypeDef *  RTCx,
uint32_t  Frequency 
)

Set Calibration output frequency (1 Hz or 512 Hz)

Note:
Bits are write-protected. LL_RTC_DisableWriteProtection function should be called before.
Reference Manual to LL API cross reference:
CR COE LL_RTC_CAL_SetOutputFreq
CR COSEL LL_RTC_CAL_SetOutputFreq
Parameters:
RTCxRTC Instance
FrequencyThis parameter can be one of the following values:
Return values:
None

Definition at line 3142 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_SetPeriod ( RTC_TypeDef *  RTCx,
uint32_t  Period 
)

Set the calibration cycle period.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
Bit can be written only when RECALPF is set to 0 in RTC_ISR
Reference Manual to LL API cross reference:
CALR CALW8 LL_RTC_CAL_SetPeriod
CALR CALW16 LL_RTC_CAL_SetPeriod
Parameters:
RTCxRTC Instance
PeriodThis parameter can be one of the following values:
Return values:
None

Definition at line 3202 of file stm32l4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_SetPulse ( RTC_TypeDef *  RTCx,
uint32_t  Pulse 
)

Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
Bit can be written only when RECALPF is set to 0 in RTC_ISR
Reference Manual to LL API cross reference:
CALR CALP LL_RTC_CAL_SetPulse
Parameters:
RTCxRTC Instance
PulseThis parameter can be one of the following values:
Return values:
None

Definition at line 3173 of file stm32l4xx_ll_rtc.h.