| 
    Zephyr Project API
    3.4.0
    
   A Scalable Open Source RTOS 
   | 
 
Public real time clock driver API. More...
Go to the source code of this file.
Data Structures | |
| struct | rtc_time | 
| Structure for storing date and time values with sub-second precision.  More... | |
Macros | |
RTC Alarm Time Mask  | |
| #define | RTC_ALARM_TIME_MASK_SECOND BIT(0) | 
| #define | RTC_ALARM_TIME_MASK_MINUTE BIT(1) | 
| #define | RTC_ALARM_TIME_MASK_HOUR BIT(2) | 
| #define | RTC_ALARM_TIME_MASK_MONTHDAY BIT(3) | 
| #define | RTC_ALARM_TIME_MASK_MONTH BIT(4) | 
| #define | RTC_ALARM_TIME_MASK_YEAR BIT(5) | 
| #define | RTC_ALARM_TIME_MASK_WEEKDAY BIT(6) | 
| #define | RTC_ALARM_TIME_MASK_YEARDAY BIT(7) | 
| #define | RTC_ALARM_TIME_MASK_NSEC BIT(8) | 
Typedefs | |
| typedef void(* | rtc_update_callback) (const struct device *dev, void *user_data) | 
| RTC update event callback.  More... | |
| typedef void(* | rtc_alarm_callback) (const struct device *dev, uint16_t id, void *user_data) | 
| RTC alarm triggered callback.  More... | |
Functions | |
| int | rtc_set_time (const struct device *dev, const struct rtc_time *timeptr) | 
| API for setting RTC time.  More... | |
| int | rtc_get_time (const struct device *dev, struct rtc_time *timeptr) | 
| API for getting RTC time.  More... | |
RTC Interface Alarm  | |
| int | rtc_alarm_get_supported_fields (const struct device *dev, uint16_t id, uint16_t *mask) | 
| API for getting the supported fields of the RTC alarm time.  More... | |
| int | rtc_alarm_set_time (const struct device *dev, uint16_t id, uint16_t mask, const struct rtc_time *timeptr) | 
| API for setting RTC alarm time.  More... | |
| int | rtc_alarm_get_time (const struct device *dev, uint16_t id, uint16_t *mask, struct rtc_time *timeptr) | 
| API for getting RTC alarm time.  More... | |
| int | rtc_alarm_is_pending (const struct device *dev, uint16_t id) | 
| API for testing if RTC alarm is pending.  More... | |
| int | rtc_alarm_set_callback (const struct device *dev, uint16_t id, rtc_alarm_callback callback, void *user_data) | 
| API for setting alarm callback.  More... | |
RTC Interface Update  | |
| int | rtc_update_set_callback (const struct device *dev, rtc_update_callback callback, void *user_data) | 
| API for setting update callback.  More... | |
RTC Interface Calibration  | |
| int | rtc_set_calibration (const struct device *dev, int32_t calibration) | 
| API for setting RTC calibration.  More... | |
| int | rtc_get_calibration (const struct device *dev, int32_t *calibration) | 
| API for getting RTC calibration.  More... | |
RTC Interface Helpers  | |
| static struct tm * | rtc_time_to_tm (struct rtc_time *timeptr) | 
| Convenience function for safely casting a rtc_time pointer to a tm pointer.  More... | |
Public real time clock driver API.