User`s manual

RX62N Group, RX621 Group 4. Library Reference
2) R_RTC_Control
Synopsis
Modify the Real-time clock operation.
Prototype
bool R_RTC_Control(
uint32_t data1,
// Control selection
uint16_t data2,
// Update selection
uint32_t data3,
// Current time
uint32_t data4,
// Current date
uint32_t data5,
// Alarm time
uint32_t data6
// Alarm date
);
Description (1/2)
Change clock settings and update the time or date.
[data1]
Change the clock operation.
To set multiple options at the same time, use "|" to separate each value.
If no change is required, specify PDL_NO_DATA.
Alarm control
PDL_RTC_ALARM_HOUR_DISABLE or
PDL_RTC_ALARM_HOUR_ENABLE
All three can be controlled using:
PDL_RTC_ALARM_TIME_DISABLE or
PDL_RTC_ALARM_TIME_ENABLE
PDL_RTC_ALARM_MINUTE_DISABLE or
PDL_RTC_ALARM_MINUTE_ENABLE
PDL_RTC_ALARM_SECOND_DISABLE or
PDL_RTC_ALARM_SECOND_ENABLE
PDL_RTC_ALARM_YEAR_DISABLE or
PDL_RTC_ALARM_YEAR_ENABLE
All four can be controlled using:
PDL_RTC_ALARM_DATE_DISABLE or
PDL_RTC_ALARM_DATE_ENABLE
PDL_RTC_ALARM_MONTH_DISABLE or
PDL_RTC_ALARM_MONTH_ENABLE
PDL_RTC_ALARM_DAY_DISABLE or
PDL_RTC_ALARM_DAY_ENABLE
PDL_RTC_ALARM_DOW_DISABLE or
PDL_RTC_ALARM_DOW_ENABLE
Periodic interrupt selection
PDL_RTC_PERIODIC_DISABLE or
PDL_RTC_PERIODIC_256_HZ or
PDL_RTC_PERIODIC_64_HZ or
PDL_RTC_PERIODIC_16_HZ or
PDL_RTC_PERIODIC_4_HZ or
PDL_RTC_PERIODIC_2_HZ or
PDL_RTC_PERIODIC_1_HZ or
PDL_RTC_PERIODIC_2S
The frequency or interval for periodic interrupt
requests.
Clock output control
PDL_RTC_OUTPUT_DISABLE or
PDL_RTC_OUTPUT_ENABLE
Disable or enable the 1 Hz clock output on the
RTCOUT pin.
Clock control
PDL_RTC_CLOCK_STOP or
PDL_RTC_CLOCK_START
Stop or re-start the clock.
30-second adjustment control
PDL_RTC_ADJUST_START
Start the 30-second adjustment process.
Reset control
PDL_RTC_RESET_START
Start the reset process.
R20UT0084EE0112 Rev.1.12 Page 4-158
July. 16, 2014