HAL_RTC_SetTime() function
Sets RTC current time.
Arguments
hrtc
pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
sTime
Pointer to Time 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
DayLightSaving and StoreOperation interfaces are deprecated. To manage Daylight Saving Time, please use HAL_RTC_DST_xxx functions.
Examples
HAL_RTC_SetTime() is referenced by
38 libraries and example projects.
Functions called by HAL_RTC_SetTime()
HAL_RTC_SetTime()
assert_failed() all items filtered out
Data read by HAL_RTC_SetTime()
Data written by HAL_RTC_SetTime()
HAL_RTC_SetTime()::tmpreg HAL_RTC_SetTime()::status all items filtered out
HAL_RTC_SetTime()
HAL_RTC_SetTime()::tmpreg HAL_RTC_SetTime()::status all items filtered out
Type of HAL_RTC_SetTime()
HAL_RTC_SetTime()
uint32_t all items filtered out