|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Driver Operations RTC driver operations More...
#include <zephyr/drivers/rtc.h>
Data Fields | |
| rtc_api_set_time | set_time |
| REQ API for setting RTC time. | |
| rtc_api_get_time | get_time |
| REQ API for getting RTC time. | |
| rtc_api_alarm_get_supported_fields | alarm_get_supported_fields |
| OPT API for getting the supported fields of the RTC alarm time. | |
| rtc_api_alarm_set_time | alarm_set_time |
| OPT API for setting RTC alarm time. | |
| rtc_api_alarm_get_time | alarm_get_time |
| OPT API for getting RTC alarm time. | |
| rtc_api_alarm_is_pending | alarm_is_pending |
| OPT API for testing if RTC alarm is pending. | |
| rtc_api_alarm_set_callback | alarm_set_callback |
| OPT API for setting alarm callback. | |
| rtc_api_update_set_callback | update_set_callback |
| OPT API for setting update callback. | |
| rtc_api_set_calibration | set_calibration |
| OPT API for setting RTC calibration. | |
| rtc_api_get_calibration | get_calibration |
| OPT API for getting RTC calibration. | |
Driver Operations RTC driver operations
This is the driver API structure any RTC driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| rtc_api_alarm_get_supported_fields rtc_driver_api::alarm_get_supported_fields |
OPT API for getting the supported fields of the RTC alarm time.
CONFIG_RTC_ALARM. | rtc_api_alarm_get_time rtc_driver_api::alarm_get_time |
OPT API for getting RTC alarm time.
CONFIG_RTC_ALARM. | rtc_api_alarm_is_pending rtc_driver_api::alarm_is_pending |
OPT API for testing if RTC alarm is pending.
CONFIG_RTC_ALARM. | rtc_api_alarm_set_callback rtc_driver_api::alarm_set_callback |
OPT API for setting alarm callback.
CONFIG_RTC_ALARM. | rtc_api_alarm_set_time rtc_driver_api::alarm_set_time |
OPT API for setting RTC alarm time.
CONFIG_RTC_ALARM. | rtc_api_get_calibration rtc_driver_api::get_calibration |
OPT API for getting RTC calibration.
CONFIG_RTC_CALIBRATION. | rtc_api_get_time rtc_driver_api::get_time |
REQ API for getting RTC time.
| rtc_api_set_calibration rtc_driver_api::set_calibration |
OPT API for setting RTC calibration.
CONFIG_RTC_CALIBRATION. | rtc_api_set_time rtc_driver_api::set_time |
REQ API for setting RTC time.
| rtc_api_update_set_callback rtc_driver_api::update_set_callback |
OPT API for setting update callback.
CONFIG_RTC_UPDATE.