* * $Log: ds1307rtc.c,v $ * Revision 1.1 2006/06/30 22:05:51 christianwelzel * Initial check in. * * *
Defines | |
#define | I2C_SLA_RTC |
Functions | |
int | DS1307RtcReadRegs (u_char reg, u_char *buff, size_t cnt) |
Read RTC registers. | |
int | DS1307RtcWrite (CONST u_char *buff, size_t cnt) |
Write to RTC registers. | |
int | DS1307RtcGetClock (struct _tm *tm) |
Get date and time from an DS1307 hardware clock. | |
int | DS1307RtcSetClock (CONST struct _tm *tm) |
Set the DS1307 hardware clock. | |
int | DS1307RamRead (u_char addr, u_char *buff, size_t cnt) |
Read contents from DS1307 RAM. | |
int | DS1307RamWrite (u_char addr, CONST void *buff, size_t len) |
Store buffer contents in DS1307 RAM. | |
int | DS1307Init (void) |
Initialize the interface to an Dallas DS1307 hardware clock. |
|
Initialize the interface to an Dallas DS1307 hardware clock.
|
|
Read contents from DS1307 RAM.
|
|
Store buffer contents in DS1307 RAM.
|
|
Get date and time from an DS1307 hardware clock.
|
|
Read RTC registers.
|
|
Set the DS1307 hardware clock.
|
|
Write to RTC registers.
|