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<H2>C Specification</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#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</CODE></PRE>
21  <DD>
22  <PRE><CODE>BOOL PADReset(u32 mask);</CODE></PRE>
23</DL>
24<H2>Arguments</H2>
25<TABLE border="1" cellpadding="3" cellspacing="0.1">
26  <TBODY>
27    <TR>
28<TD width="120" bgcolor="#ffffe8"><FONT face="Courier New"><EM><STRONG>mask</STRONG></EM></FONT></TD>
29<TD width="520"><SPAN>OR bit mask for the controller to be reset.</SPAN></TD>
30    </TR>
31  </TBODY>
32</TABLE>
33<H2>Return Values</H2>
34<P><CODE>TRUE</CODE> if reset sequence is successfully started. Otherwise, <CODE>FALSE</CODE>.</P>
35<P><code>PADReset</code> may return <CODE>FALSE</CODE> if the controller port interface was busy performing other processes. In that case, <code>PADReset</code> should be called repeatedly until <code><a href="PADRead.html">PADRead</a></code> detects a return other than an error. Note that if <code><a href="PADRead.html">PADRead</a></code> is called immediately after the <code>PADRecalibrate</code> succeeds, the returned <code><a href="PADStatus.html">PADStatus</a></code> of the specified ports may contain an error code, either <code>PAD_ERR_NOT_READY</code> or <code>PAD_ERR_TRANSFER</code>. </P>
36<H2>Description</H2>
37<P>This function resets a specific controller. This function returns <CODE>FALSE</CODE> if the controller port interface is busy carrying out another process. If this happens, <CODE>PADReset</CODE> must be called again until <A href="PADRead.html"><CODE>PADRead</CODE></A> detects something other than the <CODE>PAD_ERR_NO_CONTROLLER</CODE> error code. </P>
38
39<P></P>
40<H2>See Also</H2>
41<P><A href="toc.html" target="contents">Controller Functions</A>, <CODE><A href="PADButtonDown.html">PADButtonDown</A></CODE>, <CODE><A href="PADButtonUp.html">PADButtonUp</A></CODE>, <CODE><A href="PADInit.html">PADInit</A></CODE>, <CODE><A href="PADRead.html">PADRead</A></CODE>, <CODE><A href="PADStatus.html">PADStatus</A></CODE></P>
42<H2>Revision History</H2>
43<P>2006/03/01 Initial version.</p>
44<hr>
45<P>CONFIDENTIAL</p>
46</BODY>
47</HTML>