1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3<head> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<title>RTC_SetTimeAsync</title> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</head> 10<body> 11<h1 align="left">RTC_SetTimeAsync <img src="../image/NTR.gif" align="middle"><img src="../image/TWL.gif" align="middle"></h1> 12<h2>Syntax</h2> 13<dl> 14 <dd> 15<CODE>#include <nitro/rtc.h></CODE><BR> 16 <PRE><CODE><A href="RTCResult.html">RTCResult</A> RTC_SetTimeAsync( 17 const <A href="RTCTime.html">RTCTime</A>* time, 18 <A href="RTCCallback.html">RTCCallback</A> callback, 19 void* arg );</CODE></PRE> 20 </dd> 21</dl><h2>Arguments</h2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25 <TD width="300"><CODE>time</CODE></TD> 26 <TD width="700">Pointer to the buffer storing time data.</TD> 27 </TR> 28 <TR> 29 <TD><CODE>callback</CODE></TD> 30 <TD>Pointer to the callback function. This callback is called from within the interrupt handler.</TD> 31 </TR> 32 <TR> 33 <TD><CODE>arg</CODE></TD> 34 <TD>Argument to pass to the callback function.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38<h2>Return Values</h2> 39<P>If the request succeeds, it returns 0. If the request fails, it returns a numeric value other than 0.</P> 40<H2>Description</H2> 41<P>Asynchronously writes time data to the real-time clock. It sends time data to ARM7 and returns the process result without waiting for a response from the processor. To get the result from the processor, you must use the <code>result</code> argument. If this function fails, no operation is performed and no user callback function is called.</P> 42<h2>Note</h2> 43<P><FONT color=red>Do not define parameter values of nonexistent times. Values are set to the RTC as specified by the <code>time</code> argument asynchronously. Do not use this variable for anything else until a user callback function confirms the completion of this asynchronous operation. Because applications cannot change the date, use this API only for debugging during development.</FONT></P> 44<h2>See Also</h2> 45<P><a href="RTC_SetTime.html"><CODE>RTC_SetTime</CODE></a><br> <a href="RTC_GetTime.html"><CODE>RTC_GetTime</CODE></a><br> <a href="RTC_GetTimeAsync.html"><CODE>RTC_GetTimeAsync</CODE></a><br> <a href="RTCResult.html"><CODE>RTCResult</CODE></a><br> <a href="RTCTime.html"><CODE>RTCTime</CODE></a><br> <a href="RTCCallback.html"><CODE>RTCCallback</CODE></a></P> 46<H2>Revision History</H2> 47<P> 482005/06/27 Added additional text indicating that callbacks are called from interrupt handlers. <br> 2004/07/01 Updated descriptions to standardize the time notation.<BR> 2004/05/18 Initial version. 49</P> 50<hr><p>CONFIDENTIAL</p></body> 51</html> 52