Real-time clock

Below is a list of API functions output by the Code Generator for real-time clock use.

Table 3.13 API Functions: [Real-time Clock] (1)

API Function Name

Function

R_RTC_Create

Performs initialization necessary to control the real-time clock.

R_RTC_Create_UserInit

Performs user-defined initialization relating to the real-time clock.

r_rtc_interrupt

Performs processing in response to the real-time clock interrupt INTRTC.

R_RTC_Start

Starts the count of the real-time clock (year, month, weekday, day, hour, minute, second).

R_RTC_Stop

Ends the count of the real-time clock (year, month, weekday, day, hour, minute, second).

R_RTC_Set_PowerOff

Halts the clock supplied to the real-time clock.

R_RTC_Set_HourSystem

Sets the clock type (12-hour or 24-hour clock) of the real-time clock.

R_RTC_Set_CounterValue

Sets the counter value of the real-time clock.

R_RTC_Set_CalendarCounterValue

Sets the counter value of the real-time clock.(in the case of the calendar mode setting)

R_RTC_Set_BinaryCounterValue

Sets the counter value of the real-time clock.(in the case of the binary mode setting)

R_RTC_Get_CounterValue

Reads the counter value of the real-time clock.

R_RTC_Get_CalendarCounterValue

Reads the counter value of the real-time clock.(in the case of the calendar mode setting)

R_RTC_Get_BinaryCounterValue

Reads the counter value of the real-time clock.(in the case of the binary mode setting)

R_RTC_Set_ConstPeriodInterruptOn

Sets the cycle of the interrupts INTRTC, then starts the cyclic interrupt function.

R_RTC_Set_ConstPeriodInterruptOff

Ends the cyclic interrupt function.

r_rtc_callback_constperiod

Performs processing in response to the cyclic interrupt INTRTC.

R_RTC_Set_AlarmOn

Starts the alarm interrupt function.

R_RTC_Set_CalendarAlarmOn

Starts the alarm interrupt function.(in the case of the calendar mode setting)

R_RTC_Set_BinaryAlarmOn

Starts the alarm interrupt function.(in the case of the binary mode setting)

R_RTC_Set_AlarmOff

Ends the alarm interrupt function.

R_RTC_Set_AlarmValue

Sets the alarm conditions (weekday, hour, minute).

R_RTC_Get_CalenderAlarmValue

Sets the alarm conditions (year, month, weekday, day, hour, minute, second).(in the case of the calendar mode setting)

R_RTC_Set_BinaryAlarmValue

Sets the alarm conditions.(in the case of the binary mode setting)

R_RTC_Get_AlarmValue

Reads the alarm conditions (weekday, hour, minute).

Table 3.14 API Functions: [Real-time Clock] (2)

API Function Name

Function

R_RTC_Get_CalenderAlarmValue

Reads the alarm conditions (year, month, weekday, day, hour, minute, second).(in the case of the calendar mode setting)

R_RTC_Get_BinaryAlarmValue

Reads the alarm conditions.(in the case of the binary mode setting)

r_rtc_callback_alarm

Performs processing in response to the alarm interrupt INTRTC.

R_RTC_Set_RTC1HZOn

Enables output of the correction clock (1 Hz) to the RTC1HZ pin.

R_RTC_Set_RTC1HZOff

Disables output of the correction clock (1 Hz) to the RTC1HZ pin.

R_RTC_Set_RTCOUTOn

Enables output of the RTCOUT.

R_RTC_Set_RTCOUTOff

Disables output of the RTCOUT.

r_rtc_alarminterrupt

Performs processing in response to the alarm interrupt INTRTCALM.

r_rtc_periodinterrupt

Performs processing in response to the periodic interrupt INTRTCPRD.

r_rtc_callback_periodic

Performs processing in response to the cyclic interrupt INTRTC.