HAL
LL_RTC_CAL_ConfigCoarseDigital() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALLL_RTC_CAL_ConfigCoarseDigital()

LL_RTC_CAL_ConfigCoarseDigital() function

Set the coarse digital calibration

Syntax

__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital(RTC_TypeDef *RTCx,     uint32_t Sign,     uint32_t Value);

Arguments

RTCx

RTC Instance

Sign

This parameter can be one of the following values: @arg LL_RTC_CALIB_SIGN_POSITIVE @arg LL_RTC_CALIB_SIGN_NEGATIVE

Value

value of coarse calibration expressed in ppm (coded on 5 bits)

Return value

None

Notes

Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before. It can be written in initialization mode only (LL_RTC_EnableInitMode function) CALIBR DC LL_RTC_CAL_ConfigCoarseDigital 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.

References

LocationText
stm32f4xx_ll_rtc.h:3055
__STATIC_INLINE void LL_RTC_CAL_ConfigCoarseDigital(RTC_TypeDef *RTCx, uint32_t Sign, uint32_t Value)

Data Use

Data read by LL_RTC_CAL_ConfigCoarseDigital()
LL_RTC_CAL_ConfigCoarseDigital()