* * $Log: rtc.c,v $ * Revision 1.2 2006/10/08 16:48:09 haraldkipp * Documentation fixed * * Revision 1.1 2006/10/05 17:18:49 haraldkipp * Hardware independant RTC layer added. * * *
Functions | |
| int | NutRegisterRtc (NUTRTC *rtc) |
| Register a specified RTC. | |
| int | NutRtcGetTime (struct _tm *tm) |
| Get date and time from the registered RTC. | |
| int | NutRtcSetTime (CONST struct _tm *tm) |
| Set date and time of the registered RTC. | |
| int | NutRtcGetAlarm (int idx, struct _tm *tm, int *aflags) |
| Get alarm date and time from the registered RTC. | |
| int | NutRtcSetAlarm (int idx, CONST struct _tm *tm, int aflags) |
| Set alarm date and time of the registered RTC. | |
| int | NutRtcGetStatus (u_long *sflags) |
| Query status flags from the registered RTC. | |
| int | NutRtcClearStatus (u_long sflags) |
| Clear status flags of the registered RTC. | |
|
|
Register a specified RTC. This will also initialize any hardware, if required.
|
|
|
Get date and time from the registered RTC. Portable applications should use standard C functions.
|
|
|
Set date and time of the registered RTC. Portable applications should stime().
|
|
||||||||||||||||
|
Get alarm date and time from the registered RTC.
|
|
||||||||||||||||
|
Set alarm date and time of the registered RTC.
|
|
|
Query status flags from the registered RTC.
|
|
|
Clear status flags of the registered RTC.
|