Everything

R_RTC_Restart

Initializes the counter then starts counting.

Remark 1.      When the realtime clock is operating in the calendar counting mode, this API function initializes the counters to the values specified by the argument counter_write_val.

Remark 2.      When the realtime clock is operating in the binary counting mode, this API function ignores the value specified by the argument counter_write_val and clears the counter to zero.

 

[Syntax]

#include       "r_cg_rtc.h"

void    R_RTC_Restart ( rtc_calendarcounter_value_t counter_write_val );

 

[Argument(s)]

I/O

Argument

Description

I

rtc_calendarcounter_value_t

 counter_write_val;

Initial value (year, month, date, day-of-week, time, minute, and

second)

Remark         The configuration of the initial value 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.