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="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADGetAddress</title>
10</head>
11
12<body>
13
14<h1>WPADGetAddress</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20  <dd><pre><code>#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
27#define WPAD_ADDR_LEN            6
28
29void WPADGetAddress( s32 chan, u8 *addr );</CODE></pre>
30  </dd>
31</dl>
32
33<h2>Arguments</h2>
34
35<TABLE border="1" >
36  <tr>
37<TD width="120" bgcolor="#ffffe8"><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  <tr>
42<TD width="120" bgcolor="#ffffe8"><code><b><i>addr</i></b></code></TD>
43      <TD>A pointer to the buffer that copies the Wii Remote's unique ID.</TD>
44    </tr>
45  <tr>
46</table>
47
48<h2>Return Values</h2>
49
50<p>None.</p>
51
52<H2>Description</H2>
53<p>
54Gets the unique ID of the Wii Remote for the specified channel. The argument <code>addr</code> must have at least 6 bytes. If Wii Remote is not connected to the specified channel, zero is copied to the <code>addr</code> argument.
55</p>
56
57<h2>See Also</h2>
58<p>
59<A href="./toc.html" target="contents">WPAD Functions</A><br>
60</p>
61
62<H2>Revision History</H2>
63<P>
642006/06/19 Initial version.<BR>
65</P>
66
67<hr>
68<P>CONFIDENTIAL</p>
69</BODY>
70</HTML>