Functions | |
HAL_StatusTypeDef | HAL_RTC_SetTime (RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format) |
Sets RTC current time. More... | |
HAL_StatusTypeDef | HAL_RTC_GetTime (RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format) |
Gets RTC current time. More... | |
HAL_StatusTypeDef | HAL_RTC_SetDate (RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) |
Sets RTC current date. More... | |
HAL_StatusTypeDef | HAL_RTC_GetDate (RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) |
Gets RTC current date. More... | |
HAL_StatusTypeDef | HAL_RTC_IncOneSecond (RTC_HandleTypeDef *hrtc, int32_t increase) |
Increase/Decrease RTC by 1 second.. More... | |
HAL_StatusTypeDef HAL_RTC_GetDate | ( | RTC_HandleTypeDef * | hrtc, |
RTC_DateTypeDef * | sDate, | ||
uint32_t | Format | ||
) |
Gets RTC current date.
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sDate | Pointer to Date structure |
Format | Specifies the format of the entered parameters. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_RTC_GetTime | ( | RTC_HandleTypeDef * | hrtc, |
RTC_TimeTypeDef * | sTime, | ||
uint32_t | Format | ||
) |
Gets RTC current time.
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sTime | Pointer to Time structure |
Format | Specifies the format of the entered parameters. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_RTC_IncOneSecond | ( | RTC_HandleTypeDef * | hrtc, |
int32_t | increase | ||
) |
Increase/Decrease RTC by 1 second..
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
increase | >0: increase, <0:decrease, 0 no change |
HAL | status |
HAL_StatusTypeDef HAL_RTC_SetDate | ( | RTC_HandleTypeDef * | hrtc, |
RTC_DateTypeDef * | sDate, | ||
uint32_t | Format | ||
) |
Sets RTC current date.
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sDate | Pointer to date structure |
Format | specifies the format of the entered parameters. This parameter can be one of the following values:
|
HAL | status |
HAL_StatusTypeDef HAL_RTC_SetTime | ( | RTC_HandleTypeDef * | hrtc, |
RTC_TimeTypeDef * | sTime, | ||
uint32_t | Format | ||
) |
Sets RTC current time.
hrtc | pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC. |
sTime | Pointer to Time structure |
Format | Specifies the format of the entered parameters. This parameter can be one of the following values:
|
HAL | status |