R_RTC_Set_CalendarCounterValue

Sets the calendar and time values.

[Syntax]

#include "r_cg_rtc.h"

void R_RTC_Set_CalendarCounterValue ( rtc_calendarcounter_value_t counter_write_val );

[Argument(s)]

I/O

Argument

Description

I

rtc_calendarcounter_value_t

counter_write_val;

Calendar and time values (year, month, date, day-of-week, time, minute, and second)

Remark The configuration of the calendar and time values rtc_calendarcounter_value_t is shown below.

typedef struct {

uint8_t rseccnt; /* second */

uint8_t rmincnt; /* Minute */

uint8_t rhrcnt; /* Time */

uint8_t rdaycnt; /* Date */

uint8_t rwkcnt; /* Day-of-week (0: Sunday, 6: Saturday) */

uint8_t rmoncnt; /* Month */

uint16_t ryrcnt; /* Year */

} rtc_calendarcounter_value_t;

[Return value]

None.