HAL_RTCEx_SetCoarseCalib() function
Sets the Coarse calibration parameters.
Arguments
hrtc
pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
CalibSign
Specifies the sign of the coarse calibration value. This parameter can be one of the following values: @arg RTC_CALIBSIGN_POSITIVE: The value sign is positive @arg RTC_CALIBSIGN_NEGATIVE: The value sign is negative
Value
value of coarse calibration expressed in ppm (coded on 5 bits).
Return value
HAL status
Notes
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.
Functions called by HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()
assert_failed() all items filtered out
Data read by HAL_RTCEx_SetCoarseCalib()
Data written by HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()::status all items filtered out
HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()::status all items filtered out
Type of HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()