ds1307_internal.h¶
Register definitions for DS1307 RTC.
-
DS1307_REG_SEC¶ seconds
1
(0x00)
-
DS1307_REG_MIN¶ minutes
1
(0x01)
-
DS1307_REG_HOUR¶ hours
1
(0x02)
-
DS1307_REG_DOW¶ day of week (1-7, 1 == sunday)
1
(0x03)
-
DS1307_REG_DOM¶ day of month
1
(0x04)
-
DS1307_REG_MON¶ month
1
(0x05)
-
DS1307_REG_YEAR¶ year
1
(0x06)
-
DS1307_REG_SQW_CTL¶ SQW control.
1
(0x07)
-
DS1307_REG_RAM_FIRST¶ NVRAM start.
1
(0x08)
-
DS1307_REG_RAM_LAST¶ NVRAM end.
1
(0x3F)
-
DS1307_REG_SEC_CH¶ clock halt bit
1
(0x80)
-
DS1307_REG_SEC_MASK¶ seconds mask
1
(0x7f)
-
DS1307_REG_MIN_MASK¶ minutes mask
1
(0x7f)
-
DS1307_REG_HOUR_12H¶ 12-hour (0) / 24-hour (1) mode
1
(0x40)
-
DS1307_REG_HOUR_PM¶ AM (0) / PM (1) in 12-hour mode.
1
(0x20)
-
DS1307_REG_HOUR_12H_MASK¶ hour (12-hour mode)
1
(0x2f)
-
DS1307_REG_HOUR_24H_MASK¶ hour (24-hour mode)
1
(0x3f)
-
DS1307_REG_DOW_MASK¶ day of week mask
1
(0x07)
-
DS1307_REG_DOM_MASK¶ day of month mask
1
(0x3f)
-
DS1307_REG_MON_MASK¶ month mask
1
(0x1f)
-
DS1307_DOW_OFFSET¶ offset in days from sunday
1
(1)
-
DS1307_MON_OFFSET¶ offset in month from January
1
(1)
-
DS1307_YEAR_OFFSET¶ offset in years from 1900
1
(-100)