Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rtc_driver_api Struct Reference

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.

Detailed Description

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.

See also
DEVICE_DT_INST_DEFINE()
DEVICE_DT_DEFINE()
DEVICE_API()

Field Documentation

◆ alarm_get_supported_fields

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.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_ALARM.

◆ alarm_get_time

rtc_api_alarm_get_time rtc_driver_api::alarm_get_time

OPT API for getting RTC alarm time.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_ALARM.

◆ alarm_is_pending

rtc_api_alarm_is_pending rtc_driver_api::alarm_is_pending

OPT API for testing if RTC alarm is pending.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_ALARM.

◆ alarm_set_callback

rtc_api_alarm_set_callback rtc_driver_api::alarm_set_callback

OPT API for setting alarm callback.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_ALARM.

◆ alarm_set_time

rtc_api_alarm_set_time rtc_driver_api::alarm_set_time

OPT API for setting RTC alarm time.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_ALARM.

◆ get_calibration

rtc_api_get_calibration rtc_driver_api::get_calibration

OPT API for getting RTC calibration.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_CALIBRATION.

◆ get_time

rtc_api_get_time rtc_driver_api::get_time

REQ API for getting RTC time.

◆ set_calibration

rtc_api_set_calibration rtc_driver_api::set_calibration

OPT API for setting RTC calibration.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_CALIBRATION.

◆ set_time

rtc_api_set_time rtc_driver_api::set_time

REQ API for setting RTC time.

◆ update_set_callback

rtc_api_update_set_callback rtc_driver_api::update_set_callback

OPT API for setting update callback.

Attention
Available only when the following Kconfig option is enabled: CONFIG_RTC_UPDATE.

The documentation for this struct was generated from the following file: