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 http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
7<title>KPADEnableDPD</title>
8</head>
9
10<body>
11
12<h1>KPADEnableDPD</h1>
13
14<h2>Syntax</h2>
15<dl><dd><pre class="construction">
16#include &lt;revolution/kpad.h&gt;
17
18void KPADEnableDPD( s32 chan );
19</pre></dd></dl>
20
21<h2>Arguments</h2>
22<TABLE class="arguments" border="1" >
23  <TBODY>
24    <TR>
25<TH>chan</TH>
26<TD>One of the <code>WPAD_CHAN<i>n</i></code> values.</TD>
27    </TR>
28  </TBODY>
29</TABLE>
30
31<h2>Return Values</h2>
32<p>
33None.
34</p>
35
36<H2>Description</H2>
37<p>
38This function internally calls the <a href="../wpad/WPADControlDpd.html"><code>WPADControlDpd</code></a> and <a href="../wpad/WPADSetDataFormat.html"><code>WPADSetDataFormat</code></a> functions, and issues requests to turn on the DPD module for the Wii remote and to change the data format.
39</p>
40<p>
41The library attempts to issue requests when data is received from the Wii Remote. If issuing a request fails, the system tries again the next time data is received. If issuing a request succeeds, the timer in the WPAD library for automatically disconnecting is reset because the data format changes.
42</p>
43
44<h2>See Also</h2>
45<p class="reference">
46<a href="./KPADDisableDPD.html">KPADDisableDPD</a><br>
47<a href="../wpad/WPADControlDpd.html">WPADControlDpd</a><br>
48<a href="../wpad/WPADSetDataFormat.html">WPADSetDataFormat</a>
49</p>
50
51<H2>Revision History</H2>
52<p>
532008/03/17 Added mention that the data format changes and that the timer for automatic disconnection is reset.<br>2006/09/07 Initial version.<br>
54</p>
55
56<hr><p>CONFIDENTIAL</p></body>
57</html>
58