|
libws libws
WSwan hardware library for the Wonderful toolchain
|
Go to the source code of this file.
Data Structures | |
| struct | ws_cart_rtc_date_t |
| Structure containing the date read from the RTC, BCD-encoded. More... | |
| struct | ws_cart_rtc_time_t |
| Structure containing the time read from the RTC, BCD-encoded. More... | |
| struct | ws_cart_rtc_datetime_t |
Macros | |
| #define | WS_CART_RTC_HOUR_AMPM 0x80 |
| #define | WS_CART_RTC_HOUR_AM 0x00 |
| #define | WS_CART_RTC_HOUR_PM 0x80 |
| #define | WS_CART_RTC_STATUS_POWER_LOST 0x80 |
| #define | WS_CART_RTC_STATUS_12_HOUR 0x00 |
| #define | WS_CART_RTC_STATUS_24_HOUR 0x40 |
| #define | WS_CART_RTC_STATUS_INTAE 0x20 |
| #define | WS_CART_RTC_STATUS_INTME 0x08 |
| #define | WS_CART_RTC_STATUS_INTFE 0x02 |
| #define | WS_CART_RTC_STATUS_INT_OFF 0 |
| #define | WS_CART_RTC_STATUS_INT_FREQ_STEADY (WS_CART_RTC_STATUS_INTFE) |
| #define | WS_CART_RTC_STATUS_INT_MINUTE_EDGE (WS_CART_RTC_STATUS_INTME) |
| #define | WS_CART_RTC_STATUS_INT_MINUTE_STEADY (WS_CART_RTC_STATUS_INTME | WS_CART_RTC_STATUS_INTFE) |
| #define | WS_CART_RTC_STATUS_INT_ALARM (WS_CART_RTC_STATUS_INTAE) |
Functions | |
| bool | ws_cart_rtc_wait_ready (void) |
| Wait until the RTC is ready. | |
| uint16_t | ws_cart_rtc_read (uint8_t command, void __wf_cram *buffer, uint16_t length) |
| Send command and read from RTC. | |
| uint16_t | ws_cart_rtc_write (uint8_t command, const void __wf_cram *buffer, uint16_t length) |
| Send command and write to RTC. | |
| static bool | ws_cart_rtc_reset (void) |
| static bool | ws_cart_rtc_read_status (uint8_t __wf_cram *result) |
| static bool | ws_cart_rtc_write_status (uint8_t result) |
| static bool | ws_cart_rtc_read_datetime (ws_cart_rtc_datetime_t __wf_cram *result) |
| static bool | ws_cart_rtc_write_datetime (ws_cart_rtc_datetime_t __wf_cram *result) |
| static bool | ws_cart_rtc_read_time (ws_cart_rtc_time_t __wf_cram *result) |
| static bool | ws_cart_rtc_write_time (ws_cart_rtc_time_t __wf_cram *result) |
| static bool | ws_cart_rtc_write_alarm (uint16_t alarm) |
Functionality related to the cartridge RTC.
Definition in file rtc.h.