R_RTC_Get_CalendarCounterValue


Gets the calendar and time values.

[Syntax]

#include    "r_cg_rtc.h"
void    R_RTC_Get_CalendarCounterValue ( rtc_calendarcounter_value_t * const counter_read_val );

[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 (year, month, date, day-of-week, time, minute, and second) are to be stored

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.