Everything

R_RTC_Set_AlarmValue


Sets the alarm conditions (weekday, hour, minute).

[Syntax]

#include    "r_cg_macrodriver.h"
#include    "r_cg_rtc.h"
void    R_RTC_Set_AlarmValue ( rtc_alarm_value_t alarm_val );

[Argument(s)]

I/O

Argument

Description

I

rtc_alarm_value_t alarm_val;

Alarm conditions (weekday, hour, minute)

Remark

Below is shown the structure rtc_alarm_value_t (alarm conditions).

typedef struct {
    uint8_t alarmwm;    /* Minute */
    uint8_t alarmwh;    /* Hour */
    uint8_t alarmww;    /* Weekday */
} rtc_alarm_value_t;

 

-

alarmwm (Minute)

Below are shown the meanings of each bit of the structure member alarmwm.

 

-

alarmwh (Hour)

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.

0: AM

1: PM

 

-

alarmww (Weekday)

Below are shown the meanings of each bit of the structure member alarmww.

[Return value]

None.