STM32F439xx 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_EnableCoarseDigital (RTC_TypeDef *RTCx)
 Enable Coarse digital calibration.
__STATIC_INLINE void LL_RTC_CAL_DisableCoarseDigital (RTC_TypeDef *RTCx)
 Disable Coarse digital calibration.
__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital (RTC_TypeDef *RTCx, uint32_t Sign, uint32_t Value)
 Set the coarse digital calibration.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue (RTC_TypeDef *RTCx)
 Get the coarse digital calibration value.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign (RTC_TypeDef *RTCx)
 Get the coarse digital calibration sign.
__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 void LL_RTC_CAL_ConfigCoarseDigital ( RTC_TypeDef *  RTCx,
uint32_t  Sign,
uint32_t  Value 
)

Set the coarse digital calibration.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
It can be written in initialization mode only (LL_RTC_EnableInitMode function)
Reference Manual to LL API cross reference:
CALIBR DCS LL_RTC_CAL_ConfigCoarseDigital
CALIBR DC LL_RTC_CAL_ConfigCoarseDigital
Parameters:
RTCxRTC Instance
SignThis parameter can be one of the following values:
Valuevalue of coarse calibration expressed in ppm (coded on 5 bits)
Note:
This Calibration value should be between 0 and 63 when using negative sign with a 2-ppm step.
This Calibration value should be between 0 and 126 when using positive sign with a 4-ppm step.
Return values:
None

Definition at line 3236 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_DisableCoarseDigital ( RTC_TypeDef *  RTCx)

Disable Coarse digital calibration.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
It can be written in initialization mode only (LL_RTC_EnableInitMode function)
Reference Manual to LL API cross reference:
CR DCE LL_RTC_CAL_DisableCoarseDigital
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 3216 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE void LL_RTC_CAL_EnableCoarseDigital ( RTC_TypeDef *  RTCx)

Enable Coarse digital calibration.

Note:
Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
It can be written in initialization mode only (LL_RTC_EnableInitMode function)
Reference Manual to LL API cross reference:
CR DCE LL_RTC_CAL_EnableCoarseDigital
Parameters:
RTCxRTC Instance
Return values:
None

Definition at line 3203 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign ( RTC_TypeDef *  RTCx)

Get the coarse digital calibration sign.

Reference Manual to LL API cross reference:
CALIBR DCS LL_RTC_CAL_GetCoarseDigitalSign
Parameters:
RTCxRTC Instance
Return values:
Returnedvalue can be one of the following values:

Definition at line 3260 of file stm32f4xx_ll_rtc.h.

__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue ( RTC_TypeDef *  RTCx)

Get the coarse digital calibration value.

Reference Manual to LL API cross reference:
CALIBR DC LL_RTC_CAL_GetCoarseDigitalValue
Parameters:
RTCxRTC Instance
Return values:
valueof coarse calibration expressed in ppm (coded on 5 bits)

Definition at line 3247 of file stm32f4xx_ll_rtc.h.

__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 3345 of file stm32f4xx_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 3190 of file stm32f4xx_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 3320 of file stm32f4xx_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 3287 of file stm32f4xx_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 3334 of file stm32f4xx_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 3175 of file stm32f4xx_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 3305 of file stm32f4xx_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 3276 of file stm32f4xx_ll_rtc.h.