R_RTC_Get_CalendarTimeCaptureValuen

Gets the captured calendar time value.

[Syntax]

#include "r_cg_rtc.h"

void R_RTC_Get_CalendarTimeCaptureValuen ( rtc_calendarcounter_value_t * const

counter_read_val );

Remark n is the channel number.

[Argument(s)]

I/O

Argument

Description

O

rtc_calendarcounter_value_t * const

counter_read_val;

Pointer to the area where the obtained calendar and time values.

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.