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 name="GENERATOR" content="Microsoft FrontPage 5.0">
6<META http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>PADReset</TITLE>
9</HEAD>
10<BODY>
11<H1>PADReset</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/pad.h&gt;
16
17#define PAD_CHAN0_BIT           0x80000000
18#define PAD_CHAN1_BIT           0x40000000
19#define PAD_CHAN2_BIT           0x20000000
20#define PAD_CHAN3_BIT           0x10000000
21
22BOOL PADReset(u32 mask);
23</pre></dd></dl>
24
25<H2>Arguments</H2>
26<TABLE class="arguments" border="1" >
27  <TBODY>
28    <TR>
29<TH>mask</TH>
30<TD>OR bitmask of the controller(s) to be reset.</TD>
31    </TR>
32  </TBODY>
33</TABLE>
34
35<H2>Return Values</H2>
36<P><CODE>TRUE</CODE> if the reset sequence is successfully started. Otherwise, <CODE>FALSE</CODE>.</P>
37<P><CODE>PADReset</CODE> may return a value of <CODE>FALSE</CODE> if the controller port interface was busy performing other transactions. In that case, <CODE>PADReset</CODE> should be called repeatedly until <A href="PADRead.html"><CODE>PADRead</CODE></A> detects a return value other than an error. Be aware that if <A href="PADRead.html"><CODE>PADRead</CODE></A> is called immediately after <CODE>PADRecalibrate</CODE> has succeeded, the returned <A href="PADStatus.html"><CODE>PADStatus</CODE></A> for the specified ports may contain either a <CODE>PAD_ERR_NOT_READY</CODE> or <CODE>PAD_ERR_TRANSFER</CODE> error code.</P>
38
39<H2>Description</H2>
40<P>Resets the specified controller(s). This function returns <CODE>FALSE</CODE> if the controller port interface is busy carrying out other processing. If this happens, <CODE>PADReset</CODE> must be called again until <A href="PADRead.html"><CODE>PADRead</CODE></A> detects a return value other than the <CODE>PAD_ERR_NO_CONTROLLER</CODE> error code.</P>
41
42<H2>See Also</H2>
43<P class="reference">
44<A href="PADButtonDown.html">PADButtonDown</A>,
45<A href="PADButtonUp.html">PADButtonUp</A>,
46<A href="PADInit.html">PADInit</A>,
47<A href="PADRead.html">PADRead</A>,
48<A href="PADStatus.html">PADStatus</A>
49</P>
50
51<H2>Revision History</H2>
52<P>
532006/03/01 Initial version.<br>
54</p>
55
56<hr><p>CONFIDENTIAL</p></body>
57</HTML>