

#include <nitro/rtc.h>RTCResult RTC_GetDateAsync(
RTCDate* date,
RTCCallback callback,
void* arg );
| date | Pointer to the buffer where date information will be stored. |
| callback | Pointer to the callback function. This callback is called from within the interrupt handler. |
| arg | Argument to pass to the callback function. |
If the request succeeds, it returns 0. If the request fails, it returns a numeric value other than 0.
This function asynchronously reads date data from the real-time clock. It queries ARM7 for date data and returns those values without waiting for a response from the processor. To get the result from the processor, you must use the result argument. If this function fails, no operation is performed and no user callback function is called.
Values are written to the variable specified by the date argument asynchronously with respect to the function. Do not use this variable for anything else until a user callback function confirms the completion of this asynchronous operation.
RTC_GetDate, RTC_SetDate, RTC_SetDateAsync, RTCResult, RTCDate, RTCCallback
2005/06/27 Added text indicating that the callback is invoked from the interrupt handler.
2004/05/18 Initial version.
CONFIDENTIAL