Struct rtc_calendar_config

Configuration structure for the RTC instance. This structure should be initialized using the rtc_calendar_get_config_defaults() before any user configurations are set.

Table 1. Members
Type Name Description
struct rtc_calendar_alarm_time alarm[]

Alarm values

bool clear_on_match

If true, clears the clock on alarm match

bool clock_24h

If true, time is represented in 24 hour mode

enum rtc_calendar_prescaler prescaler

Input clock prescaler for the RTC module

uint16_t year_init_value

Initial year for counter value 0