STM32F4xx_HAL_Driver  1.8.3
+ Collaboration diagram for Calibration:

Functions

__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq (RTC_TypeDef *RTCx, uint32_t Frequency)
 Set Calibration output frequency (1 Hz or 512 Hz) More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq (RTC_TypeDef *RTCx)
 Get Calibration output frequency (1 Hz or 512 Hz) @rmtoll CR COE LL_RTC_CAL_GetOutputFreq
CR COSEL LL_RTC_CAL_GetOutputFreq. More...
 
__STATIC_INLINE void LL_RTC_CAL_EnableCoarseDigital (RTC_TypeDef *RTCx)
 Enable Coarse digital calibration. More...
 
__STATIC_INLINE void LL_RTC_CAL_DisableCoarseDigital (RTC_TypeDef *RTCx)
 Disable Coarse digital calibration. More...
 
__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital (RTC_TypeDef *RTCx, uint32_t Sign, uint32_t Value)
 Set the coarse digital calibration. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue (RTC_TypeDef *RTCx)
 Get the coarse digital calibration value @rmtoll CALIBR DC LL_RTC_CAL_GetCoarseDigitalValue. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign (RTC_TypeDef *RTCx)
 Get the coarse digital calibration sign @rmtoll CALIBR DCS LL_RTC_CAL_GetCoarseDigitalSign. More...
 
__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) More...
 
__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) @rmtoll CALR CALP LL_RTC_CAL_IsPulseInserted. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period)
 Set smooth calibration cycle period. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx)
 Get smooth calibration cycle period @rmtoll CALR CALW8 LL_RTC_CAL_GetPeriod
CALR CALW16 LL_RTC_CAL_GetPeriod. More...
 
__STATIC_INLINE void LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus)
 Set smooth Calibration minus. More...
 
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx)
 Get smooth Calibration minus @rmtoll CALR CALM LL_RTC_CAL_GetMinus. More...
 

Detailed Description

Function Documentation

◆ LL_RTC_CAL_ConfigCoarseDigital()

__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) @rmtoll CALIBR DCS LL_RTC_CAL_ConfigCoarseDigital
CALIBR DC LL_RTC_CAL_ConfigCoarseDigital
Parameters
RTCxRTC Instance
SignThis parameter can be one of the following values:
  • LL_RTC_CALIB_SIGN_POSITIVE
  • LL_RTC_CALIB_SIGN_NEGATIVE
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 3055 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_DisableCoarseDigital()

__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) @rmtoll CR DCE LL_RTC_CAL_DisableCoarseDigital
Parameters
RTCxRTC Instance
Return values
None

Definition at line 3035 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_EnableCoarseDigital()

__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) @rmtoll CR DCE LL_RTC_CAL_EnableCoarseDigital
Parameters
RTCxRTC Instance
Return values
None

Definition at line 3022 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_GetCoarseDigitalSign()

__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalSign ( RTC_TypeDef *  RTCx)

Get the coarse digital calibration sign @rmtoll CALIBR DCS LL_RTC_CAL_GetCoarseDigitalSign.

Parameters
RTCxRTC Instance
Return values
Returnedvalue can be one of the following values:
  • LL_RTC_CALIB_SIGN_POSITIVE
  • LL_RTC_CALIB_SIGN_NEGATIVE

Definition at line 3079 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_GetCoarseDigitalValue()

__STATIC_INLINE uint32_t LL_RTC_CAL_GetCoarseDigitalValue ( RTC_TypeDef *  RTCx)

Get the coarse digital calibration value @rmtoll CALIBR DC LL_RTC_CAL_GetCoarseDigitalValue.

Parameters
RTCxRTC Instance
Return values
valueof coarse calibration expressed in ppm (coded on 5 bits)

Definition at line 3066 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_GetMinus()

__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus ( RTC_TypeDef *  RTCx)

Get smooth Calibration minus @rmtoll CALR CALM LL_RTC_CAL_GetMinus.

Parameters
RTCxRTC Instance
Return values
Valuebetween Min_Data=0x00 and Max_Data= 0x1FF

Definition at line 3164 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_GetOutputFreq()

__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq ( RTC_TypeDef *  RTCx)

Get Calibration output frequency (1 Hz or 512 Hz) @rmtoll 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:
  • LL_RTC_CALIB_OUTPUT_NONE
  • LL_RTC_CALIB_OUTPUT_1HZ
  • LL_RTC_CALIB_OUTPUT_512HZ

Definition at line 3009 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_GetPeriod()

__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod ( RTC_TypeDef *  RTCx)

Get smooth calibration cycle period @rmtoll 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:
  • LL_RTC_CALIB_PERIOD_32SEC
  • LL_RTC_CALIB_PERIOD_16SEC
  • LL_RTC_CALIB_PERIOD_8SEC

Definition at line 3139 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_IsPulseInserted()

__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) @rmtoll CALR CALP LL_RTC_CAL_IsPulseInserted.

Parameters
RTCxRTC Instance
Return values
Stateof bit (1 or 0).

Definition at line 3106 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_SetMinus()

__STATIC_INLINE void LL_RTC_CAL_SetMinus ( RTC_TypeDef *  RTCx,
uint32_t  CalibMinus 
)

Set smooth 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 @rmtoll CALR CALM LL_RTC_CAL_SetMinus
Parameters
RTCxRTC Instance
CalibMinusValue between Min_Data=0x00 and Max_Data=0x1FF
Return values
None

Definition at line 3153 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_SetOutputFreq()

__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. @rmtoll CR COE LL_RTC_CAL_SetOutputFreq
CR COSEL LL_RTC_CAL_SetOutputFreq
Parameters
RTCxRTC Instance
FrequencyThis parameter can be one of the following values:
  • LL_RTC_CALIB_OUTPUT_NONE
  • LL_RTC_CALIB_OUTPUT_1HZ
  • LL_RTC_CALIB_OUTPUT_512HZ
Return values
None

Definition at line 2993 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_SetPeriod()

__STATIC_INLINE void LL_RTC_CAL_SetPeriod ( RTC_TypeDef *  RTCx,
uint32_t  Period 
)

Set smooth 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 @rmtoll CALR CALW8 LL_RTC_CAL_SetPeriod
CALR CALW16 LL_RTC_CAL_SetPeriod
Parameters
RTCxRTC Instance
PeriodThis parameter can be one of the following values:
  • LL_RTC_CALIB_PERIOD_32SEC
  • LL_RTC_CALIB_PERIOD_16SEC
  • LL_RTC_CALIB_PERIOD_8SEC
Return values
None

Definition at line 3124 of file stm32f4xx_ll_rtc.h.

◆ LL_RTC_CAL_SetPulse()

__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 @rmtoll CALR CALP LL_RTC_CAL_SetPulse
Parameters
RTCxRTC Instance
PulseThis parameter can be one of the following values:
  • LL_RTC_CALIB_INSERTPULSE_NONE
  • LL_RTC_CALIB_INSERTPULSE_SET
Return values
None

Definition at line 3095 of file stm32f4xx_ll_rtc.h.