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>TPRequestResult</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">TPRequestResult <img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1> 15 16<h2>Definition</h2> 17 18<dl> 19 <dd> 20<CODE>#include <nitro/spi.h></CODE><BR> 21<PRE><CODE>typedef enum 22{ 23 TP_RESULT_SUCCESS = 0 , // Success 24 TP_RESULT_INVALID_PARAMETER , // Invalid parameter 25 TP_RESULT_ILLEGAL_STATUS , // Cannot accept instructions in current status 26 TP_RESULT_EXCLUSIVE , // SPI device is busy 27 TP_RESULT_PXI_BUSY // PXI communication with ARM7 is busy 28} 29TPRequestResult;</CODE></PRE> 30</dd> 31 32</dl><h2>Elements</h2> 33<TABLE border="1" width="100%"> 34 <TBODY> 35 <TR> 36<TD width="300"><CODE>TP_RESULT_SUCCESS</CODE></TD> 37<TD width="700">The process completed normally.</TD> 38 </TR> 39 <TR> 40<TD><CODE>TP_RESULT_INVALID_PARAMETER</CODE></TD> 41<TD>The request was not executed because the specified parameter was illegal.</TD> 42 </TR> 43 <TR> 44<TD><CODE>TP_RESULT_ILLEGAL_STATUS</CODE></TD> 45<TD>The request could not be executed because of the internal state of the TP library. For example, this could result from a call to the <code>TP_RequestAutoSamplingStop</code> function while sampling is not in progress.<br>This could also indicate that processing was suspended because a synchronous function was called from inside an interrupt handler.</TD> 46 </TR> 47 <TR> 48<TD width="300"><CODE>MIC_RESULT_EXCLUSIVE</CODE></TD> 49<TD width="700">A request to start or stop sampling failed.</TD> 50 </TR> 51 <TR> 52<TD><CODE>TP_RESULT_PXI_BUSY</CODE></TD> 53<TD>A PXI command failed to be sent to the ARM7.</TD> 54 </TR> 55 </TBODY> 56</TABLE> 57 58<H2>Description</H2> 59<P>This is a common enumerated type that shows the results of functions that manipulate the Touch Screen. It is used as a return value for synchronous and asynchronous functions, and as the <SPAN class="argument">result</SPAN> argument that is passed to the user callback in an asynchronous function.</P> 60 61<h2>See Also</h2> 62<P><A href="TPRecvCallback.html"><CODE>TPRecvCallback</CODE></A></P> 63 64<H2>Revision History</H2> 65<P>2009/06/17 Corrected errors.<BR> 2009/04/28 Initial version.</P> 66<hr><p>CONFIDENTIAL</p></body> 67</html> 68