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_WaitBusy</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">TP_WaitBusy <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>void TP_WaitBusy( 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 for which command to wait</TD> 28 </TR> 29 </TBODY> 30</TABLE> 31<h2>Return Values</h2> 32<p>None.</p> 33<H2>Description</H2> 34<P>Waits until processing is finished for touch panel request instructions that have been sent to ARM7. 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 one round of sampling. 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. 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. 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 the chattering parameter. 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>Note</H2> 66<P>This function uses an interrupt to wait for a completion response from ARM7. If it is called while FIFO receive interrupts from ARM7 are prohibited, it may not be possible to return from wait.</P> 67<h2>See Also</h2> 68<P><CODE><A href="TP_RequestAutoSamplingStart.html">TP_RequestAutoSamplingStart</A>, <A href="TP_RequestAutoSamplingStop.html">TP_RequestAutoSamplingStop</A>,<A href="TP_RequestSetStability.html">TP_RequestSetStability</A>, <A href="TP_CheckError.html">TP_CheckError</A></CODE></P> 69<H2>Revision History</H2> 70<P>2004/04/19 Added argument. <BR>2004/04/16 Initial version.</P> 71<hr><p>CONFIDENTIAL</p></body> 72</html> 73