HAL
HAL_RTCEx_SetCoarseCalib() is only used within HAL.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesHALHAL_RTCEx_SetCoarseCalib()

HAL_RTCEx_SetCoarseCalib() function

Sets the Coarse calibration parameters.

Syntax

HAL_StatusTypeDef HAL_RTCEx_SetCoarseCalib(RTC_HandleTypeDef *hrtc,     uint32_t CalibSign,     uint32_t Value);
Implemented in stm32f4xx_hal_rtc_ex.c:1302

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.

References

LocationText
stm32f4xx_hal_rtc_ex.c:1302
HAL_StatusTypeDef HAL_RTCEx_SetCoarseCalib(RTC_HandleTypeDef *hrtc, uint32_t CalibSign, uint32_t Value)
stm32f4xx_hal_rtc_ex.h:889
HAL_StatusTypeDef HAL_RTCEx_SetCoarseCalib(RTC_HandleTypeDef *hrtc, uint32_t CalibSign, uint32_t Value);

Call Tree

Functions called by HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()
assert_failed()
all items filtered out
Type of HAL_RTCEx_SetCoarseCalib()
HAL_RTCEx_SetCoarseCalib()