You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
796 B
31 lines
796 B
2 years ago
|
#### RTC
|
||
|
|
||
|
HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
|
||
|
HAL_StatusTypeDef HAL_RTC_GetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format);
|
||
|
HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
|
||
|
HAL_StatusTypeDef HAL_RTC_GetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format);
|
||
|
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
uint8_t Hours;
|
||
|
uint8_t Minutes;
|
||
|
uint8_t Seconds;
|
||
|
uint8_t TimeFormat;
|
||
|
uint32_t SubSeconds;
|
||
|
|
||
|
uint32_t SecondFraction;
|
||
|
|
||
|
uint32_t DayLightSaving;
|
||
|
|
||
|
uint32_t StoreOperation;
|
||
|
} RTC_TimeTypeDef;
|
||
|
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
uint8_t WeekDay;
|
||
|
uint8_t Month;
|
||
|
uint8_t Date;
|
||
|
uint8_t Year;
|
||
|
} RTC_DateTypeDef;
|