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 &lt;revolution/wpad.h&gt;
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 <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 err member holds WPAD_ERR_NONE; &nbsp;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>.</P>
51
52<H2>See Also</H2>
53<p>
54<A href="./toc.html" target="contents"><CODE>WPAD</CODE> Functions</A><br> <A href="./WPADSetAutoSamplingBuf.html"><CODE>WPADSetAutoSamplingBuf</CODE></A><br> <A href="./WPADStatus.html"><CODE>WPADStatus</CODE></A><br> <A href="./WPADFSStatus.html"><CODE>WPADFSStatus</CODE></A><br> <A href="./WPADCLStatus.html"><CODE>WPADCLStatus</CODE></A><br> <A href="./WPADStatusEx.html"><CODE>WPADStatusEx</CODE></A><br>
55</p>
56
57
58<H2>Revision History</H2>
59<P>
60Changed API specs.<br>08/01/2005 Initial version.
61</p>
62<hr>
63<P>CONFIDENTIAL</p>
64</BODY>
65</HTML>