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<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<TITLE>SIProbe</TITLE>
9</HEAD>
10<BODY>
11<H1>SIProbe</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15<PRE><CODE>#include &lt;revolution/os/OSSerial.h&gt;</CODE></PRE>
16  <DD>
17<PRE><CODE>#define SI_CHAN0                0
18#define SI_CHAN1                1
19#define SI_CHAN2                2
20#define SI_CHAN3                3
21
22#define SI_N64_CONTROLLER       (SI_TYPE_N64 | 0x05000000)
23#define SI_N64_MIC              (SI_TYPE_N64 | 0x00010000)
24#define SI_N64_KEYBOARD         (SI_TYPE_N64 | 0x00020000)
25#define SI_N64_MOUSE            (SI_TYPE_N64 | 0x02000000)
26#define SI_GBA                  (SI_TYPE_N64 | 0x00040000)
27#define SI_GC_CONTROLLER        (SI_TYPE_GC | SI_GC_STANDARD)
28#define SI_GC_RECEIVER          (SI_TYPE_GC | SI_GC_WIRELESS)
29#define SI_GC_WAVEBIRD          (SI_TYPE_GC | SI_GC_WIRELESS | SI_GC_STANDARD | SI_WIRELESS_STATE | SI_WIRELESS_FIX_ID)
30#define SI_GC_KEYBOARD          (SI_TYPE_GC | 0x00200000)
31#define SI_GC_STEERING          (SI_TYPE_GC | 0x00000000)
32
33#define SI_ERROR_NO_RESPONSE    0x0008    // Nothing is attached
34#define SI_ERROR_UNKNOWN        0x0040    // Unknown device is attached
35#define SI_ERROR_BUSY           0x0080    // Still detecting
36
37u32 SIProbe(s32 <B><I>chan</I></B>);</CODE></PRE>
38</DL>
39<H2>Arguments</H2>
40<TABLE border="1" cellpadding="3" cellspacing="0.1">
41  <TBODY>
42    <TR>
43<TD width="120" bgcolor="#ffffe8"><STRONG><EM><CODE>chan</CODE></EM></STRONG></TD>
44<TD width="520">One of the <code>SI_CHAN<em>n</em></code> channels.</TD>
45    </TR>
46  </TBODY>
47</TABLE>
48<H2>Return Values</H2>
49<P>Returns one of the following: <code>SI_N64_*</code>, <code>SI_GBA</code>, <code>SI_GC_*</code>, <code>SI_ERROR_UNKNOWN</code>, <code>SI_ERROR_BUSY</code>, or <code>SI_ERROR_NO_RESPONSE</code>.</P>
50<H2>Description</H2>
51<P>Determines the type of Controller attached to the specified GameCube Controller Port.</P>
52
53<P></P>
54<H2>See Also</H2>
55<P><A href="../os/toc.html" target="contents">OS Functions</A>, <CODE><A href="SIGetTypeString.html">SIGetTypeString</A></CODE></P>
56<H2>Revision History</H2>
57<P>2006/03/01 Initial version.</p>
58<hr>
59<P>CONFIDENTIAL</p>
60</BODY>
61</HTML>