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>WPADGetSyncType</title>
10</head>
11
12<body>
13
14<h1>WPADGetSyncType</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_SYNC_TYPE_STD       0
28#define WPAD_SYNC_TYPE_SMP       1
29
30s32 WPADGetSyncType( s32 chan, u8 *type );</CODE></pre>
31  </dd>
32</dl>
33
34<h2>Arguments</h2>
35
36<TABLE border="1" >
37  <tr>
38<TD width="120" bgcolor="#ffffe8"><code><b><i>chan</i></b></code></TD>
39<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
40    </tr>
41  <tr>
42  <tr>
43<TD width="120" bgcolor="#ffffe8"><code><b><i>type</i></b></code></TD>
44      <TD>A pointer to the variable that copies the pairing type of the Wii Remote.</TD>
45    </tr>
46  <tr>
47</table>
48
49<h2>Return Values</h2>
50
51<p>Returns the error status.</p>
52
53<blockquote>
54Error statuses are defined with the following macro constants.
55      <TABLE border="1" width="500" cellspacing="0.1">
56        <TBODY>
57          <TR>
58<TD width="150"><CODE>WPAD_ERR_NONE</CODE></TD>
59            <TD width="350">The pairing type has been retrieved normally.
60          </TR>
61          <TR>
62<TD width="150"><CODE>WPAD_ERR_NO_CONTROLLER</CODE></TD>
63<TD width="350">The Wii Remote is not connected. The type variable does not store a valid pairing type (undefined).
64            </TD>
65
66          </TR>
67        </TBODY>
68      </TABLE>
69</blockquote>
70<H2>Description</H2>
71<p>
72Gets the pairing type of the Wii Remote on the specified channel.
73</p>
74<blockquote>
75Registration types are defined using the following macro constants.
76      <TABLE border="1" width="500" cellspacing="0.1">
77        <TBODY>
78          <TR>
79            <TD width="150"><CODE>WPAD_SYNC_xTYPE_STD</CODE></TD>
80            <TD width="350">Device paired with the Wii console.</TD>
81          </TR>
82          <TR>
83            <TD width="150"><CODE>WPAD_SYNC_TYPE_SMP</CODE></TD>
84            <TD width="350">Simple-paired device. Pairing information is deleted when the game restarts. </TD>
85          </TR>
86        </TBODY>
87      </TABLE>
88</blockquote>
89
90
91<h2>See Also</h2>
92<p>
93<A href="./toc.html" target="contents">WPAD Functions</A><br>
94</p>
95
96<H2>Revision History</H2>
97<P>
982006/09/06 Initial version.
99</P>
100
101<hr>
102<P>CONFIDENTIAL</p>
103</BODY>
104</HTML>