38#ifndef STM32F401RE_RTC_H__
39#define STM32F401RE_RTC_H__
System-wide error code definitions.
ERR_te
Standard return type used by all public API functions.
void rtc_get_time(TIME_ts *time)
Reads the current time from the RTC.
void rtc_set_calendar(CALENDAR_ts const *date)
Sets the RTC calendar (date and weekday).
void rtc_set_time(TIME_ts const *time)
Sets the RTC time (hours, minutes, seconds).
ERR_te rtc_init(void)
Initializes the RTC peripheral.
WEEK_DAYS_te
Day of the week.
MONTHS_te
Month of the year.
Holds a calendar date (year, month, day, weekday).
Holds a time-of-day value (hours, minutes, seconds).