* * $Log: pcf8563.c,v $ * Revision 1.3 2006/10/05 17:18:49 haraldkipp * Hardware independant RTC layer added. * * Revision 1.2 2006/06/28 17:23:47 haraldkipp * Bugfix. PcfRtcGetClock() returned wrong century. * * Revision 1.1 2006/04/07 13:54:17 haraldkipp * PCF8563 RTC driver added. * * *
Defines | |
| #define | I2C_SLA_RTC 0x51 |
Functions | |
| int | PcfRtcReadRegs (u_char reg, u_char *buff, size_t cnt) |
| Read RTC registers. | |
| int | PcfRtcWrite (int nv, CONST u_char *buff, size_t cnt) |
| Write to RTC registers. | |
| int | PcfRtcGetClock (struct _tm *tm) |
| Get date and time from an PCF8563 hardware clock. | |
| int | PcfRtcSetClock (CONST struct _tm *tm) |
| Set an PCF8563 hardware clock. | |
| int | PcfRtcGetAlarm (int idx, struct _tm *tm, int *aflgs) |
| Get alarm date and time of an PCF8563 hardware clock. | |
| int | PcfRtcSetAlarm (int idx, CONST struct _tm *tm, int aflgs) |
| Set alarm of an PCF8563 hardware clock. | |
| int | PcfRtcGetStatus (u_long *sflgs) |
| Query RTC status flags. | |
| int | PcfRtcClearStatus (u_long sflgs) |
| Clear RTC status flags. | |
| int | PcfRtcInit (void) |
| Initialize the interface to an Intersil PCF8563 hardware clock. | |
Variables | |
| NUTRTC | rtcPcf8563 |
|
||||||||||||||||
|
Read RTC registers.
|
|
||||||||||||||||
|
Write to RTC registers.
|
|
|
Get date and time from an PCF8563 hardware clock.
|
|
|
Set an PCF8563 hardware clock. New time will be taken over at the beginning of the next second.
|
|
||||||||||||||||
|
Get alarm date and time of an PCF8563 hardware clock. Not implemented.
|
|
||||||||||||||||
|
Set alarm of an PCF8563 hardware clock. Not implemented.
|
|
|
Query RTC status flags.
|
|
|
Clear RTC status flags.
|
|
|
Initialize the interface to an Intersil PCF8563 hardware clock.
|
|
|
Initial value: {
PcfRtcInit,
PcfRtcGetClock,
PcfRtcSetClock,
PcfRtcGetAlarm,
PcfRtcSetAlarm,
PcfRtcGetStatus,
PcfRtcClearStatus
}
|