HAL_RTC_GetDate() function
Gets RTC current date.
Arguments
hrtc
pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
sDate
Pointer to Date structure
Specifies the format of the entered parameters. This parameter can be one of the following values: @arg RTC_FORMAT_BIN: Binary data format @arg RTC_FORMAT_BCD: BCD data format
Return value
HAL status
Notes
You must call HAL_RTC_GetDate() after HAL_RTC_GetTime() to unlock the values in the higher-order calendar shadow registers to ensure consistency between the time and date values. Reading RTC current time locks the values in calendar shadow registers until current date is read to ensure consistency between the time and date values.
Examples
HAL_RTC_GetDate() is referenced by
38 libraries and example projects.
Functions called by HAL_RTC_GetDate()
HAL_RTC_GetDate()
assert_failed() all items filtered out
Data read by HAL_RTC_GetDate()
Data written by HAL_RTC_GetDate()
HAL_RTC_GetDate()::datetmpreg all items filtered out
HAL_RTC_GetDate()
HAL_RTC_GetDate()::datetmpreg all items filtered out
Type of HAL_RTC_GetDate()
HAL_RTC_GetDate()
uint32_t all items filtered out