RTC APIs
This topic provides details for the RTC APIs.
rtc_read_time
| Synopsis |
|
| Description | Reads RTC time information from a specific RTC device. |
| Parameter |
|
| Return |
|
rtc_set_time
| Synopsis |
|
| Description | Sets RTC time information on a specific RTC device. |
| Parameter |
|
| Return |
|
rtc_read_alarm
| Synopsis |
|
| Description | Reads alarm time from a specific RTC device. |
| Parameter |
|
| Return |
|
rtc_set_alarm
| Synopsis |
|
| Description | Sets alarm time on a specific RTC device. |
| Parameter |
|
| Return |
|
rtc_read_offset
| Synopsis |
|
| Description | Reads the count of RTC offset in parts per billion. |
| Parameter |
|
| Return |
|
rtc_set_offset
| Synopsis |
|
| Description | Sets the RTC offset in parts per billion. |
| Parameter |
|
| Return |
|
rtc_update_irq
| Synopsis |
|
| Description | Clears the outdated alarms when an RTC interrupt occurs. |
| Parameter |
|
| Return | None |
rtc_allocate_device
| Synopsis |
|
| Description | Allocates an RTC device and then initializes the RTC device. |
| Parameter | None |
| Return |
|
dvem_rtc_allocate_device
| Synopsis |
|
| Description | Allocates an RTC device with the devm method
and then initializes the RTC device. |
| Parameter |
|
| Return |
|
dvem_rtc_register_device
| Synopsis |
|
| Description | Registers an RTC device. |
| Parameter |
|
| Return |
|
dvem_rtc_device_register
| Synopsis |
|
| Description | Re-allocates an RTC device and then registers the RTC device. |
| Parameter |
|
| Return |
|