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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/wpad.h&gt;
19
20#define WPAD_CHAN0               0
21#define WPAD_CHAN1               1
22#define WPAD_CHAN2               2
23#define WPAD_CHAN3               3
24
25#define WPAD_ADDR_LEN            6
26
27void WPADGetAddress( s32 chan, u8 *addr );
28</pre></dd></dl>
29
30<h2>Arguments</h2>
31<TABLE class="arguments" border="1" >
32  <tr>
33<TH>chan</TH>
34<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
35  </tr>
36  <tr>
37<TH>addr</TH>
38<TD>A pointer to the buffer that copies the Wii Remote's unique ID.</TD>
39  </tr>
40</table>
41
42<h2>Return Values</h2>
43<p>None.</p>
44
45<H2>Description</H2>
46<p>
47Gets the unique ID of the Wii Remote for the specified channel. The <SPAN class="argument">addr</SPAN> argument must have at least 6 bytes. If a Wii Remote is not connected to the specified channel, zero is copied to the <SPAN class="argument">addr</SPAN> argument.
48</p>
49
50<h2>See Also</h2>
51<p>
52None.
53</p>
54
55<H2>Revision History</H2>
56<P>
572006/06/19 Initial version.<br>
58</P>
59
60<hr><p>CONFIDENTIAL</p></body>
61</html>