Everything

Realtime clock (RTC)

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

 

Table 3.22 API Functions: [Realtime Clock]

API Function Name

Function

R_RTC_Create

Performs initialization necessary to control the realtime clock.

R_RTC_Create_UserInit

Performs user-defined initialization relating to the realtime clock.

r_rtc_alm_interrupt

Performs processing in response to the alarm interrupt (ALM).

r_rtc_prd_interrupt

Performs processing in response to the periodic interrupt (PRD).

r_rtc_cup_interrupt

Performs processing in response to the carry interrupt (CUP).

R_RTC_Set_CalendarAlarm

Sets the condition for the alarm interrupt (ALM) and allows detection of ALM (calendar count mode).

R_RTC_Set_BinaryAlarm

Sets the condition for the alarm interrupt (ALM) and allows detection of ALM (binary count mode).

R_RTC_Set_ConstPeriodInterruptOn

Sets the period of the periodic interrupt (PRD) and allows detection of PRD.

R_RTC_Set_ConstPeriodInterruptOff

Prohibits detection of the periodic interrupt (PRD).

R_RTC_Set_CarryInterruptOn

Allows detection of the carry interrupt (CUP).

R_RTC_Set_CarryInterruptOff

Prohibits detection of the carry interrupt (CUP).

R_RTC_Set_RTCOUTOn

Set the RTCOUT output period and starts RTCOUT output.

R_RTC_Set_RTCOUTOff

Ends the RTCOUT output.

R_RTC_Start

Starts counting.

R_RTC_Stop

Ends counting.

R_RTC_Restart

Initializes the counter then starts counting.

R_RTC_Set_CalendarCounterValue

Sets the values of the calendar and time counters.

R_RTC_Get_CalendarCounterValue

Gets the values of the calendar and time counters.

R_RTC_Set_BinaryCounterValue

Sets the value of the binary counter.

R_RTC_Get_BinaryCounterValue

Gets the value of the binary counter.

R_RTC_Get_CalendarTimeCaptureValuen

Gets the captured calendar time value.

R_RTC_Get_BinaryTimeCaptureValuen

Gets the captured binary time value.