RTC configuration structure.
Configuration structure for the RTC instance. This structure should be initialized using the rtc_calendar_get_config_defaults() before any user configurations are set.
#include <rtc_calendar.h>
Data Fields | |
struct rtc_calendar_alarm_time | alarm [RTC_NUM_OF_ALARMS] |
Alarm values. More... | |
bool | clear_on_match |
If true , clears the clock on alarm match. More... | |
bool | clock_24h |
If true , time is represented in 24 hour mode. More... | |
enum rtc_calendar_prescaler | prescaler |
Input clock prescaler for the RTC module. More... | |
uint16_t | year_init_value |
Initial year for counter value 0. More... | |
struct rtc_calendar_alarm_time rtc_calendar_config::alarm[RTC_NUM_OF_ALARMS] |
Alarm values.
Referenced by _rtc_calendar_set_config(), configure_rtc_calendar(), and rtc_calendar_get_config_defaults().
bool rtc_calendar_config::clear_on_match |
If true
, clears the clock on alarm match.
Referenced by _rtc_calendar_set_config(), and rtc_calendar_get_config_defaults().
bool rtc_calendar_config::clock_24h |
If true
, time is represented in 24 hour mode.
Referenced by _rtc_calendar_set_config(), configure_rtc_calendar(), rtc_calendar_get_config_defaults(), rtc_calendar_init(), and run_rtc_calendar_test().
enum rtc_calendar_prescaler rtc_calendar_config::prescaler |
Input clock prescaler for the RTC module.
Referenced by _rtc_calendar_set_config(), and rtc_calendar_get_config_defaults().
uint16_t rtc_calendar_config::year_init_value |
Initial year for counter value 0.
Referenced by rtc_calendar_get_config_defaults(), and rtc_calendar_init().