3.2.23 Real-Time Clock

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

Table 3.23

API Functions: [Real-Time Clock]

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_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_HourSystem

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

R_RTC_Set_CounterValue

Sets the counter value (year, month, weekday, day, hour, minute, second) of the real-time clock.

R_RTC_Get_CounterValue

Reads the counter value (year, month, weekday, day, hour, minute, second) of the real-time clock.

R_RTC_Set_AlarmOn

Starts the alarm interrupt function.

R_RTC_Set_AlarmOff

Ends the alarm interrupt function.

R_RTC_Set_AlarmValue

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

R_RTC_Get_AlarmValue

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

R_RTC_Set_ConstPeriodInterruptOn

Sets the cycle of the periodic interrupts, then starts the periodic interrupt function.

R_RTC_Set_ConstPeriodInterruptOff

Ends the periodic interrupt function.

R_RTC_Set_1secondInterruptOn

Starts the 1 second interrupt function.

R_RTC_Set_1secondInterruptOff

Ends the 1 second interrupt function.

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_interrupt_periodic

Performs processing in response to the periodic interrupt.

r_rtc_interrupt_alarm

Performs processing in response to the alarm interrupt.

r_rtc_interrupt_1second

Performs processing in response to the 1 second interrupt.