38#define RTC_REFERENCE_YEAR (2020)
52typedef enum rtc_alarm_match_t {
53 ALARM_MATCH_DISABLED = 0,
59typedef void (*rtc_cb_t)(uint16_t intflag);
void rtc_disable_alarm_interrupt(void)
Disables the alarm callback.
Definition rtc.c:111
void rtc_set_date_time(rtc_date_time_t date_time)
Sets the date and time.
Definition rtc.c:79
bool rtc_is_enabled(void)
Checks if the RTC is enabled.
Definition rtc.c:37
rtc_date_time_t rtc_get_date_time(void)
Returns the date and time.
Definition rtc.c:86
void rtc_enable_alarm_interrupt(rtc_date_time_t alarm_time, rtc_alarm_match_t mask)
Enables the alarm interrupt.
Definition rtc.c:98
void rtc_configure_callback(rtc_cb_t callback)
Configures the RTC alarm callback.
Definition rtc.c:107
void rtc_enable(void)
Enables the RTC.
Definition rtc.c:73
void rtc_init(void)
Initializes the RTC.
Definition rtc.c:49