Go to the source code of this file.
pcf8523 RTC driver implementation.
Implements the functions defined in pcf8523.h for controlling pcf8523 RTC input/output and interrupts on the EfxSapphireSoC platform.
Definition in file PCF8523.c.
Macros | |
| #define | RTC_CONTROL_1 0X00 |
| #define | RTC_CONTROL_2 0X01 |
| #define | RTC_CONTROL_3 0X02 |
| #define | RTC_SECONDS 0X03 |
| #define | RTC_MINUTES 0X04 |
| #define | RTC_HOURS 0X05 |
| #define | RTC_DAYS 0X06 |
| #define | RTC_WEEKDAYS 0X07 |
| #define | RTC_MONTH 0X08 |
| #define | RTC_YEAR 0X09 |
| #define | TIMER_A_FREQ_CTRL 0x10 |
| #define | TIMER_A_REG 0x11 |
| #define | TIMER_B_FREQ_CTRL 0x12 |
| #define | TIMER_B_REG 0x13 |
| #define | SECONDS_DATA 0X7F |
| #define | MINUTES_DATA 0X7F |
| #define | HOURS_DATA 0X3F |
| #define | DAYS_DATA 0X3F |
| #define | WEEKDAYS_DATA 0X07 |
| #define | MONTHS_DATA 0X1F |
| #define | YEARS_DATA 0XFF |
Functions | |
| rtc_status_t | PCF8523_getTime (rtc_instance_t *rtc) |
| Get time from PCF8523 RTC. | |
| rtc_status_t | PCF8523_setTime (rtc_instance_t *rtc) |
| Set time on PCF8523 RTC. | |
| rtc_status_t | PCF8523_setTimeSystem (rtc_instance_t *rtc, u8 use_12hour_mode) |
| Set time system (12-hour or 24-hour) on PCF8523 RTC. | |
| rtc_status_t | PCF8523_softreset (rtc_instance_t *rtc) |
| rtc_status_t | PCF8523_getCSR (rtc_instance_t *rtc) |
| Get control/status register from PCF8523 RTC. | |
Variables | |
| const rtc_api_t | PCF8523_DRIVER |
| PCF8523 Driver Instance. Point your generic RTC pointer to this structure to use the PCF8523 hardware. | |
| rtc_status_t PCF8523_softreset | ( | rtc_instance_t * | rtc | ) |