# rtc\_if.h - [Overview](#section468934416165628) - [Summary](#section1696974119165628) - [Data Structures](#nested-classes) - [Typedefs](#typedef-members) - [Enumerations](#enum-members) - [Functions](#func-members) ## **Overview** **Related Modules:** [RTC](RTC.md) **Description:** Declares the standard RTC APIs. **Since:** 1.0 ## **Summary** ## Data Structures
RtcAlarmCallback) (enum RtcAlarmIndex) |
Defines a callback that will be invoked when an alarm is generated at the specified time. |
RtcAlarmIndex { RTC_ALARM_INDEX_A = 0, RTC_ALARM_INDEX_B = 1 } |
RtcOpen (void) |
|
RtcReadTime (DevHandle handle, struct RtcTime *time) |
|
RtcWriteTime (DevHandle handle, const struct RtcTime *time) |
|
RtcReadAlarm (DevHandle handle, enum RtcAlarmIndex alarmIndex, struct RtcTime *time) |
|
RtcWriteAlarm (DevHandle handle, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time) |
|
RtcRegisterAlarmCallback (DevHandle handle, enum RtcAlarmIndex alarmIndex, RtcAlarmCallback cb) |
Registers RtcAlarmCallback that will be invoked when an alarm is generated at the specified time. |
RtcAlarmInterruptEnable (DevHandle handle, enum RtcAlarmIndex alarmIndex, uint8_t enable) |
|
RtcGetFreq (DevHandle handle, uint32_t *freq) |
|
RtcSetFreq (DevHandle handle, uint32_t freq) |
Sets the frequency of the external crystal oscillator connected to the RTC driver. |
RtcReadReg (DevHandle handle, uint8_t usrDefIndex, uint8_t *value) |
Reads the configuration of a custom RTC register based on the register index. |
RtcWriteReg (DevHandle handle, uint8_t usrDefIndex, uint8_t value) |
Writes the configuration of a custom RTC register based on the register index. |