Go to the source code of this file.
RTC driver API definitions.
This file provides data structures and APIs for controlling the RTC peripheral on the EfxSapphireSoC platform.
Definition in file rtc.h.
Data Structures | |
| struct | rtc_data_t |
| RTC time data structure. More... | |
| struct | rtc_api_t |
| RTC API structure. More... | |
| struct | rtc_instance |
| RTC instance structure. More... | |
Typedefs | |
| typedef struct rtc_instance | rtc_instance_t |
| Forward declaration of RTC instance. | |
Enumerations | |
Callback Enums | |
Enums used for driver callback handling.
| |
| enum | rtc_status_t { RTC_OK = 0 , RTC_ERR = 1 , RTC_USER_ERR = 2 , RTC_SKIP = 3 } |
| RTC Status List. More... | |
Functions | |
| u8 | convert_hour_register (u8 old_reg_val, u8 to_12h) |
| Convert hour register between 12-hour and 24-hour format. | |
RTC (Internal Functions) | |
Helper function. | |
RTC (Public API - String Based Functions) | |
Helper function. | |
| const char * | Day_ordinal [] |
| Get ordinal suffix for a given day. | |
| const char *const | DayStrings [] |
| Get string representations for Sunday,Monday ,etc.. | |
| const char *const | MonthStrings [] |
| Get string representations for months. | |
| const char *const | meridiem [] |
| Get string representations for meridiem (AM/PM). | |
| const char * | get_ordinal (u8 day) |
| Get ordinal suffix for a given day. | |