Sets the alarm conditions (weekday, hour, minute).
#include "r_cg_macrodriver.h" #include "r_cg_rtc.h" void R_RTC_Set_AlarmValue ( rtc_alarm_value_t alarm_val ); |
typedef struct { uint8_t alarmwm; /* Minute */ uint8_t alarmwh; /* Hour */ uint8_t alarmww; /* Weekday */ } rtc_alarm_value_t; |
Below are shown the meanings of each bit of the structure member alarmwm.
Below are shown the meanings of each bit of the structure member alarmwh.
If the real-time clock is set to the 12-hour clock, then bit 5 has the following meaning.
Below are shown the meanings of each bit of the structure member alarmww.