Real Time Clock (RTC) Function List

Initialization

RTC_Init Initializes the API.

Date, Time

RTC_GetDate Gets the date.
RTC_GetDateAsync Asynchronously gets the date.
RTC_SetDate Modifies the date.
RTC_SetDateAsync Asynchronously modifies the date.
RTC_GetTime Gets the time.
RTC_GetTimeAsync Asynchronously gets the time.
RTC_SetTime Modifies the time.
RTC_SetTimeAsync Asynchronously modifies the time.
RTC_GetDateTime Gets the date and the time.
RTC_GetDateTimeAsync Asynchronously gets the date and the time.
RTC_SetDateTime Modifies the date and the time.
RTC_SetDateTimeAsync Asynchronously modifies the date and the time.

Alarms

RTC_SetAlarmInterrupt Sets the callback function that runs when an alarm interrupt is generated.
RTC_GetAlarmStatus Gets alarm interrupt permission status.
RTC_GetAlarmStatusAsync Asynchronously gets alarm interrupt permission status.
RTC_SetAlarmStatus Modifies alarm interrupt permission status.
RTC_SetAlarmStatusAsync Asynchronously modifies alarm interrupt permission status.
RTC_GetAlarmParam Gets alarm parameter values.
RTC_GetAlarmParamAsync Asynchronously gets alarm parameter values.
RTC_SetAlarmParam Modifies alarm parameter values.
RTC_SetAlarmParamAsync Asynchronously modifies alarm parameter values.

Conversions

RTC_ConvertDateTimeToSecond Converts date and time to elapsed seconds since the year 2000.
RTC_ConvertSecondToDateTime Converts elapsed seconds since year 2000 to date and time.
RTC_ConvertDateToDay Converts the date to elapsed days since the year 2000.
RTC_ConvertDayToDate Converts elapsed days since the year 2000 to the date.
RTC_GetDayOfWeek Gets the day of the week for the specified date.

Software Clock

RTC_InitSWClock Initializes the software clock.
RTC_SyncSWClock Synchronizes the software clock with the real-time clock.
RTC_GetSWClockTick Gets the total number of ticks that have elapsed since 2000 from the software clock.
RTC_GetDateTimeExFromSWClock Gets the date and time from the software clock.
RTC_GetLastSyncSWClockResult Gets errors when synchronizing the software and real-time clock.

Types and Structures

RTCDate Date structure.
RTCWeek Day of the week enumeration.
RTCTime Time structure.
RTCTimeEx Extended time structure
RTCAlarmChan Alarm channel enumeration.
RTCAlarmStatus RTC alarm interrupt permission status enumeration.
RTCAlarmParam Alarm parameter structure.
RTCCallback Callback function type for asynchronous functions.
RTCInterrupt Callback function type for RTC alarm interrupts.
RTCResult Enumeration of the process results that are common to the RTC function group.

CONFIDENTIAL