1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>RTC_SetTimeAsync</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">RTC_SetTimeAsync <img src="../image/NTR.gif" align="middle"><img src="../image/TWL.gif" align="middle"></h1>
15
16<h2>Syntax</h2>
17
18<dl>
19  <dd>
20<CODE>#include &lt;nitro/rtc.h&gt;</CODE><BR>
21  <PRE><CODE><A href="RTCResult.html">RTCResult</A> RTC_SetTimeAsync(
22            const <A href="RTCTime.html">RTCTime</A>*    time,
23            <A href="RTCCallback.html">RTCCallback</A>       callback,
24            void*             arg );</CODE></PRE>
25  </dd>
26
27</dl><h2>Arguments</h2>
28<TABLE border="1" width="100%">
29  <TBODY>
30    <TR>
31<TD width="300"><em><strong><font face="Courier New">time</font></strong></em></TD>
32<TD width="700">Pointer to the buffer storing time data.</TD>
33    </TR>
34    <TR>
35<TD><em><strong><font face="Courier New">callback</font></strong></em></TD>
36<TD>Pointer to the callback function. This callback is called from inside the interrupt handler.</TD>
37    </TR>
38    <TR>
39<TD><em><strong><font face="Courier New">arg</font></strong></em></TD>
40<TD>Argument to pass to the callback function.</TD>
41    </TR>
42  </TBODY>
43</TABLE>
44
45<h2>Return Values</h2>
46<P>If the request succeeds, it returns 0. If the request fails, it returns a numeric value other than 0.</P>
47
48<H2>Description</H2>
49<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 <SPAN class="argument">result</SPAN> argument. If this function fails, no operation is performed, and no user callback function is called.</P>
50
51<h2>Note</h2>
52<P><FONT color=red>Do not specify nonexistent hour:minute:second times in the time data to write. <BR>Also, the values in the buffer specified by the <SPAN class="argument">time</SPAN> argument are referenced in a manner that is not synchronous with this function. Do not modify the buffer contents until a user callback function confirms the completion of the asynchronous process.</FONT><BR><FONT color=red>Because it is prohibited for applications to change the system time, use this API only for debugging during development.<br /> In FINALROM builds, this function always fails and <CODE>RTC_RESULT_INVALID_COMMAND</CODE> is returned.</FONT></P>
53
54<h2>See Also</h2>
55<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>
56
57<H2>Revision History</H2>
58<P>
592009/07/29 Explained that the time setting command always fails in FINALROM builds.<br />
60 2005/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.</P>
61<hr><p>CONFIDENTIAL</p></body>
62</html>
63