ReadTime
- |
-host: structure pointer to the RTC controller at the core layer.
- |
-time: structure pointer to the output time value.
- |
-HDF_STATUS
- |
-Reads the RTC time information.
- |
-
-WriteTime
- |
-host: structure pointer to the RTC controller at the core layer.
-time: structure pointer to the input time.
- |
-–
- |
-HDF_STATUS
- |
-Writes the RTC time information (from milliseconds to years).
- |
-
-ReadAlarm
- |
-host: structure pointer to the RTC controller at the core layer.
-alarmIndex: clock alarm index, which is an enumerated value.
- |
-time: structure pointer to the output time.
- |
-HDF_STATUS
- |
-Reads the RTC alarm time.
- |
-
-WriteAlarm
- |
-host: structure pointer to the RTC controller at the core layer.
-alarmIndex: clock alarm index, which is an enumerated value.
-time: structure pointer to the input time.
- |
-–
- |
-HDF_STATUS
- |
-Writes the RTC alarm time.
- |
-
-RegisterAlarmCallback
- |
-host: structure pointer to the RTC controller at the core layer.
-alarmIndex: clock alarm index, which is an enumerated value.
-cb: pointer to the callback.
- |
-–
- |
-HDF_STATUS
- |
-Registers RtcAlarmCallback that will be invoked when an alarm is generated at the specified time.
- |
-
-AlarmInterruptEnable
- |
-host: structure pointer to the RTC controller at the core layer.
-alarmIndex: clock alarm index, which is an enumerated value.
-enable: specifies whether to enable the RTC alarm interrupt.
- |
-–
- |
-HDF_STATUS
- |
-Enables or disables the RTC alarm interrupt.
- |
-
-GetFreq
- |
-host: structure pointer to the RTC controller at the core layer.
- |
-freq: pointer to the output frequency, which is of the uint32_t type.
- |
-HDF_STATUS
- |
-Reads the frequency of the external crystal oscillator connected to the RTC driver.
- |
-
-SetFreq
- |
-host: structure pointer to the RTC controller at the core layer.
-freq: input frequency, which is of the uint32_t type.
- |
-–
- |
-HDF_STATUS
- |
-Sets the frequency of the external crystal oscillator connected to the RTC driver.
- |
-
-Reset
- |
-host: structure pointer to the RTC controller at the core layer.
- |
-–
- |
-HDF_STATUS
- |
-Resets the RTC.
- |
-
-ReadReg
- |
-host: structure pointer to the RTC controller at the core layer.
-usrDefIndex: structure defining the index of a custom register.
- |
-value: pointer to the output register value, which is of the uint8_t type.
- |
-HDF_STATUS
- |
-Reads the configuration of a custom RTC register based on the register index. One index corresponds to one byte of the configuration value.
- |
-
-WriteReg
- |
-host: structure pointer to the RTC controller at the core layer.
-usrDefIndex: structure defining the index of a custom register.
-value: input register value, which is of the uint8_t type.
- |
-–
- |
-HDF_STATUS
- |
-Configures the RTC register based on the register index. One index corresponds to one byte of the configuration value.
- |
-
-
-