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_CheckBusy</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">TP_CheckBusy <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_CheckBusy( TPRequestCommandFlag command_flgs );</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">command_flgs</font></strong></em></TD> 27 <TD width="700">Specifies the command on which to perform a busy check.</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<h2>Return Values</h2> 32<p>Returns 0 if a request is not being executed. Returns a non-zero value if a request is being executed.</p> 33<H2>Description</H2> 34<P>Checks to see if a touch panel request that has been transmitted to ARM7 is being executed. You can check more than one request simultaneously if you provide the argument with the bitwise OR of multiple flags. 35</P> 36<TABLE border="1"> 37 <TBODY> 38 <TR> 39 <TD width="30%"><CODE>TP_REQUEST_COMMAND_FLAG_SAMPLING</CODE></TD> 40 <TD width="70%">Requests sampling one time. It is sent with a <CODE><A href="TP_RequestSamplingAsync.html">TP_RequestSampling*</A></CODE> function.</TD> 41 </TR> 42 <TR> 43 <TD width="30%"><CODE>TP_REQUEST_COMMAND_FLAG_AUTO_ON</CODE></TD> 44 <TD width="70%">Requests to start autosampling. It is sent with the <CODE><A href="TP_RequestAutoSamplingStart.html">TP_RequestAutoSamplingStart</A></CODE> function.</TD> 45 </TR> 46 <TR> 47 <TD width="30%"><CODE>TP_REQUEST_COMMAND_FLAG_AUTO_OFF</CODE></TD> 48 <TD width="70%">Requests to stop autosampling. It is sent with the <CODE><A href="TP_RequestAutoSamplingStart.html">TP_RequestAutoSamplingStop</A></CODE> function.</TD> 49 </TR> 50 <TR> 51 <TD width="30%"><CODE>TP_REQUEST_COMMAND_FLAG_SET_STABILITY</CODE></TD> 52 <TD width="70%">Requests to set chattering provision parameters. It is sent with the <CODE><A href="TP_RequestSetStability.html">TP_RequestSetStability</A></CODE> function.</TD> 53 </TR> 54 </TBODY> 55</TABLE> 56<P>The following describes the enumerated type definitions of the arguments.</P> 57<PRE><CODE>// Type of instruction issued to the touch panel 58typedef enum { 59 TP_REQUEST_COMMAND_FLAG_SAMPLING = 1 << TP_REQUEST_COMMAND_SAMPLING , 60 TP_REQUEST_COMMAND_FLAG_AUTO_ON = 1 << TP_REQUEST_COMMAND_AUTO_ON , 61 TP_REQUEST_COMMAND_FLAG_AUTO_OFF = 1 << TP_REQUEST_COMMAND_AUTO_OFF , 62 TP_REQUEST_COMMAND_FLAG_SET_STABILITY = 1 << TP_REQUEST_COMMAND_SET_STABILITY 63} TPRequestCommandFlag;</code> 64</CODE></PRE> 65<h2>See Also</h2> 66<H2>Revision History</H2> 67<P>2004/04/19 Initial version.</P> 68<hr><p>CONFIDENTIAL</p></body> 69</html> 70