1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>WPADRead</TITLE> 9</HEAD> 10<BODY> 11 12<H1>WPADRead</H1> 13 14 15<H2>C Specification</H2> 16<DL> 17 <DD> 18 <PRE> 19 <code> 20#include <revolution/wpad.h> 21 22#define WPAD_CHAN0 0 23#define WPAD_CHAN1 1 24#define WPAD_CHAN2 2 25#define WPAD_CHAN3 3 26 27void WPADRead( s32 chan, void *status ); 28 </code> 29 </PRE> 30 </DD> 31</DL> 32 33<H2>Arguments</H2> 34<TABLE border="1"> 35 <TBODY> 36 <TR> 37 <TD><code><b><i>chan</i></b></code></TD> 38 <TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD> 39 </TR> 40 <TR> 41 <TD><CODE><b><i>status</i></b></CODE></TD> 42 <TD>Pointer to the <code><a href="./WPADStatus.html">WPADStatus</a></code> structure. This structure must correspond to the data format specified by the <a href="./WPADSetDataFormat.html"><code>WPADSetDataFormat</code></a> function. If the status of the Wii Remote is valid, the <CODE>err</CODE> member holds <CODE>WPAD_ERR_NONE</CODE>; otherwise it holds another error status.</TD> 43 </TR> 44 </TBODY> 45</TABLE> 46<H2>Return Values</H2> 47<P>None.</P> 48 49<H2>Description</H2> 50<P>Obtains the most recent status of the Wii Remote on the specified channel. This can be used together with <code><a href="./WPADSetAutoSamplingBuf.html">WPADSetAutoSamplingBuf</a></code>. It can be called when the <font color="red"><a href="./WPADProbe.html"><code>WPADProbe</code></a> function returns anything other than <code>WPAD_ERR_NO_CONTROLLER</code>.</P> 51 52<H2>See Also</H2> 53<p> 54<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADSetAutoSamplingBuf.html"><CODE>WPADSetAutoSamplingBuf</CODE></A>, <A href="./WPADStatus.html"><CODE>WPADStatus</CODE></A>, <A href="./WPADFSStatus.html"><CODE>WPADFSStatus</CODE></A>, <A href="./WPADCLStatus.html"><CODE>WPADCLStatus</CODE></A>, <A href="./WPADStatusEx.html"><CODE>WPADStatusEx</CODE></A><br> 55</p> 56 57 58<H2>Revision History</H2> 59<P> 602007/12/10 Added a description about the return value of the <a href="./WPADProbe.html"><code>WPADProbe</code></a> function.<br> 2005/10/20 Changed the API specifications.<br> 2005/08/01 Initial version.<br> 61</p> 62<hr><p>CONFIDENTIAL</p></body> 63</HTML>