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 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>TP_WaitRawResult</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">TP_WaitRawResult <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <nitro/spi.h></CODE><BR> 20 <PRE><CODE>u32 TP_WaitRawResult( <A href="TPData.html">TPData</A> * result );</CODE></PRE> 21 </dd> 22</dl><h2>Arguments</h2> 23<TABLE border="1" width="100%"> 24 <TBODY> 25 <TR> 26 <TD width="300"><em><strong><font face="Courier New">result</font></strong></em></TD> 27 <TD width="700">Pointer to the variable to obtain touch-panel values.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<h2>Return Values</h2> 32<p>0 if touch-panel value is obtained successfully.<br>Non-zero value if task fails due to some error.</p> 33<H2>Description</H2> 34<P>This function waits until the ARM7 sets the touch panel values that were requested using the <CODE><A href="TP_RequestSamplingAsync.html">TP_RequestSamplingAsync</A></CODE> function. It then reads the raw, uncalibrated values (x and y values range from 0 to 4095). With this, you can obtain values for which chattering measures have been taken.</P> 35<H2>Note</H2> 36<P><FONT color="#ff0000">If this function is called before a response is received from ARM7, it will use an interrupt to wait for a completion response. Therefore, if it is called while FIFO receive interrupts from ARM7 are prohibited, it may not be possible to return from wait. Calling it during a touch panel callback will not cause a problem since the completion response has already been received.</FONT></P> 37<h2>See Also</h2> 38<P><CODE><A href="TP_RequestSamplingAsync.html">TP_RequestSamplingAsync</A>, <A href="TP_WaitCalibratedResult.html">TP_WaitCalibratedResult</A>,<A href="TPData.html">TPData</A></CODE></P> 39<H2>Revision History</H2> 40<P>2004/04/16 Initial version.</P> 41<hr><p>CONFIDENTIAL</p></body> 42</html> 43