32 #if (HAL_USE_RTC == TRUE) || defined(__DOXYGEN__) 45 #define RTC_BASE_YEAR 1980U 51 #define RTC_FAT_TIME_SECONDS_MASK 0x0000001FU 52 #define RTC_FAT_TIME_MINUTES_MASK 0x000007E0U 53 #define RTC_FAT_TIME_HOURS_MASK 0x0000F800U 54 #define RTC_FAT_DATE_DAYS_MASK 0x001F0000U 55 #define RTC_FAT_DATE_MONTHS_MASK 0x01E00000U 56 #define RTC_FAT_DATE_YEARS_MASK 0xFE000000U 63 #define RTC_DAY_CATURDAY 0U 64 #define RTC_DAY_MONDAY 1U 65 #define RTC_DAY_TUESDAY 2U 66 #define RTC_DAY_WEDNESDAY 3U 67 #define RTC_DAY_THURSDAY 4U 68 #define RTC_DAY_FRIDAY 5U 69 #define RTC_DAY_SATURDAY 6U 70 #define RTC_DAY_SUNDAY 7U 98 uint32_t dayofweek: 3;
100 uint32_t millisecond: 27;
127 #if RTC_SUPPORTS_CALLBACKS == TRUE PLATFORM RTC subsystem low level driver header.
void rtcSetAlarm(RTCDriver *rtcp, rtcalarm_t alarm, const RTCAlarm *alarmspec)
Set alarm time.
void rtcGetAlarm(RTCDriver *rtcp, rtcalarm_t alarm, RTCAlarm *alarmspec)
Get current alarm.
void rtcObjectInit(RTCDriver *rtcp)
Initializes a generic RTC driver object.
uint32_t rtcConvertDateTimeToFAT(const RTCDateTime *timespec)
Get current time in format suitable for usage in FAT file system.
Type of a structure representing an RTC alarm time stamp.
void rtcSetCallback(RTCDriver *rtcp, rtccb_t callback)
Enables or disables RTC callbacks.
void rtcGetTime(RTCDriver *rtcp, RTCDateTime *timespec)
Get current time.
void rtcInit(void)
RTC Driver initialization.
uint32_t rtcalarm_t
Type of an RTC alarm number.
Type of a structure representing an RTC date/time stamp.
Structure representing an RTC driver.
void rtcConvertStructTmToDateTime(const struct tm *timp, uint32_t tv_msec, RTCDateTime *timespec)
Convert broken-down time structure to RTCDateTime.
void(* rtccb_t)(RTCDriver *rtcp, rtcevent_t event)
Type of a generic RTC callback.
void rtcSetTime(RTCDriver *rtcp, const RTCDateTime *timespec)
Set current time.
void rtcConvertDateTimeToStructTm(const RTCDateTime *timespec, struct tm *timp, uint32_t *tv_msec)
Convert RTCDateTime to broken-down time structure.