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