Accurate RTC with integrated quartz crystal for industrial applications
Dependencies: mbed
PCF2129AT.h
00001 #define PCF2129AT_ADDR 0xA2 00002 00003 #define Control_1 0x00 00004 #define Control_2 0x01 00005 #define Control_3 0x02 00006 #define Seconds 0x03 00007 #define Minutes 0x04 00008 #define Hours 0x05 00009 #define Days 0x06 00010 #define Weekdays 0x07 00011 #define Months 0x08 00012 #define Years 0x09 00013 #define Second_alarm 0x0a 00014 #define Minute_alarm 0x0b 00015 #define Hour_alarm 0x0c 00016 #define Day_alarm 0x0d 00017 #define Weekday_alarm 0x0e 00018 #define CLKOUT_ctl 0x0f 00019 #define Watchdg_tim_ctl 0x10 00020 #define Watchdg_tim_val 0x11 00021 #define Timestp_ctl 0x12 00022 #define Sec_timestp 0x13 00023 #define Min_timestp 0x14 00024 #define Hour_timestp 0x15 00025 #define Day_timestp 0x16 00026 #define Mon_timestp 0x17 00027 #define Year_timestp 0x18 00028 #define Aging_offset 0x19 00029 #define Internal_reg 0x1a 00030 00031 typedef struct 00032 { 00033 char s; // 秒 00034 char m; // 分 00035 char h; // 時間 00036 char d; // 日 00037 char wd; // 曜日 00038 char mm; // 月 00039 short y; // 年 00040 } dt_dat, *pdt_dat; 00041
Generated on Tue Jul 12 2022 19:26:15 by 1.7.2