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<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_SYNC_TYPE_STD       0
26#define WPAD_SYNC_TYPE_SMP       1
27
28s32 WPADGetSyncType( s32 chan, u8 *type );
29</pre></dd></dl>
30
31<h2>Arguments</h2>
32<TABLE class="arguments" border="1" >
33  <tr>
34<TH>chan</TH>
35<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
36  </tr>
37  <tr>
38<TH>type</TH>
39<TD>A pointer to the variable that copies the pairing type of the Wii Remote.</TD>
40  </tr>
41</table>
42
43<h2>Return Values</h2>
44
45<p>Returns the error status.</p>
46
47<blockquote>
48Error statuses are defined with the following macro constants.
49      <TABLE class="arguments" border="1" >
50        <TBODY>
51          <TR>
52<TH>WPAD_ERR_NONE</TH>
53<TD>The pairing type has been retrieved normally. </TD>
54          </TR>
55          <TR>
56<TH>WPAD_ERR_NO_CONTROLLER</TH>
57<TD>The Wii Remote is not connected. The <SPAN class="argument">type</SPAN> variable does not store a valid pairing type (undefined).</TD>
58          </TR>
59        </TBODY>
60      </TABLE>
61</blockquote>
62
63<H2>Description</H2>
64<p>
65Gets the pairing type of the Wii Remote on the specified channel.
66</p>
67<blockquote>
68Registration types are defined using the following macro constants.
69      <TABLE class="arguments" border="1" >
70        <TBODY>
71          <TR>
72<TH>WPAD_SYNC_TYPE_STD</TH>
73<TD>Device paired with the Wii console.</TD>
74          </TR>
75          <TR>
76<TH>WPAD_SYNC_TYPE_SMP</TH>
77<TD>Simple-paired device. Pairing information is deleted when the game restarts. </TD>
78          </TR>
79        </TBODY>
80      </TABLE>
81</blockquote>
82
83<h2>See Also</h2>
84<p>
85None.
86</p>
87
88<H2>Revision History</H2>
89<P>
902006/09/06 Initial version.<br>
91</P>
92
93<hr><p>CONFIDENTIAL</p></body>
94</html>