Last active
December 12, 2022 22:47
-
-
Save reefwing/90c6bfb7ef24ae598f7052375cc05f2d to your computer and use it in GitHub Desktop.
TWatch RTC API Extract from header file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PCF8563_Class(I2CBus &bus, uint8_t addr = PCF8563_SLAVE_ADDRESS); | |
| void check(); // Compares compile time with RTC | |
| void setDateTime(uint16_t year, | |
| uint8_t month, | |
| uint8_t day, | |
| uint8_t hour, | |
| uint8_t minute, | |
| uint8_t second); | |
| void setDateTime(RTC_Date date); | |
| RTC_Date getDateTime(); | |
| RTC_Alarm getAlarm(); | |
| void enableAlarm(); | |
| void disableAlarm(); | |
| bool alarmActive(); | |
| void resetAlarm(); | |
| void setAlarm(RTC_Alarm alarm); | |
| void setAlarm(uint8_t hour, uint8_t minute, uint8_t day, uint8_t weekday); | |
| bool isValid(); | |
| void setAlarmByWeekDay(uint8_t weekday); | |
| void setAlarmByHours(uint8_t hour); | |
| void setAlarmByDays(uint8_t day); | |
| void setAlarmByMinutes(uint8_t minute); | |
| bool isTimerEnable(); | |
| bool isTimerActive(); | |
| void enableTimer(); | |
| void disableTimer(); | |
| void setTimer(uint8_t val, uint8_t freq, bool enInterrupt); | |
| void clearTimer(); | |
| bool enableCLK(uint8_t freq); | |
| void disableCLK(); | |
| void syncToSystem(); | |
| void syncToRtc(); | |
| const char *formatDateTime(uint8_t style = PCF_TIMEFORMAT_HMS); | |
| uint32_t getDayOfWeek(uint32_t day, uint32_t month, uint32_t year); | |
| uint8_t status2(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment