Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
RTC8564.h
00001 extern I2C i2c; 00002 00003 #define RTC8564NB_ADR 0xA2 00004 00005 #define CONTROL1 0x00 00006 #define CONTROL2 0x01 00007 #define SECONDS 0x02 00008 #define MINUTES 0x03 00009 #define HOURS 0x04 00010 #define DAYS 0x05 00011 #define WEEKDAYS 0x06 00012 #define MONTHS 0x07 00013 #define YEARS 0x08 00014 #define MINUTE_ALARM 0x09 00015 #define HOUR_ALARM 0x0A 00016 #define DAY_ALARM 0x0B 00017 #define WEEKDAY_ALARM 0x0C 00018 #define CLOCKOUT_FREQ 0x0D 00019 #define TIMER_CONTROL 0x0E 00020 #define TIMER 0x0F 00021 #define _READ 0x01 00022 00023 00024 void rtc_write(char address, char value); 00025 char rtc_read(char address); 00026 void time_just(); 00027 void rtc_setdaytime(char y[3], char m[3], char d[3], char h[3], char min[3], char s[3], char week_val[2]);
Generated on Wed Jul 27 2022 08:01:45 by
 1.7.2