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>EXIGetType</TITLE>
9</HEAD>
10<BODY>
11<H1>EXIGetType</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/os/OSExpansion.h&gt;
16
17#define EXI_MEMORY_CARD_59      0x00000004
18#define EXI_MEMORY_CARD_123     0x00000008
19#define EXI_MEMORY_CARD_251     0x00000010
20#define EXI_MEMORY_CARD_507     0x00000020
21#define EXI_MEMORY_CARD_1019    0x00000040
22#define EXI_MEMORY_CARD_2043    0x00000080
23
24#define EXI_USB_ADAPTER         0x01010000
25#define EXI_IS_VIEWER           0x05070000
26#define EXI_MODEM               0x02020000
27#define EXI_ETHER               0x04020200
28
29s32 EXIGetType(s32 chan, u32 dev, u32* type);
30</pre></dd></dl>
31
32<H2>Arguments</H2>
33<TABLE class="arguments" border="1" >
34  <TBODY>
35    <TR>
36<TH>chan</TH>
37<TD>EXI channel number.</TD>
38    </TR>
39    <TR>
40<TH>dev</TH>
41<TD>EXI device number. (If Slot A or Slot B, specify zero).</TD>
42    </TR>
43    <TR>
44<TH>type</TH>
45<TD>Pointer to the EXI device type to retrieve.</TD>
46    </TR>
47  </TBODY>
48</TABLE>
49<P>The following table shows the relationships between the GameCube extended interface, EXI channel, and device number.</P>
50<TABLE class="arguments" border="1" >
51  <tr>
52<td bgcolor="#C0C0C0">Extended Interface</td>
53<td bgcolor="#C0C0C0">Channel Number</td>
54<td bgcolor="#C0C0C0">Device Number</td>
55  </tr>
56  <tr>
57<td>Slot A</td>
58    <td>0</td>
59    <td>0</td>
60  </tr>
61  <tr>
62<td>Slot B</td>
63    <td>1</td>
64    <td>0</td>
65  </tr>
66  <tr>
67<td>Serial Port 2</td>
68    <td>2</td>
69    <td>0</td>
70  </tr>
71</table>
72
73<H2>Return Values</H2>
74<P>Returns <CODE>0</CODE> if the device ID is still inactive (in other words, a device is not inserted into the slot or the OS is still checking the device).<BR>Returns a non-zero if the device type is active. The non-zero return value is unchanged until the current device is replaced.</P>
75
76<H2>Description</H2>
77<P>Returns the current EXI device type.</P>
78
79<H2>See Also</H2>
80<P class="reference">
81<A href="../os/toc.html" target="contents">OS Functions</A>, <A href="EXIGetTypeString.html">EXIGetTypeString</A>
82</P>
83
84<H2>Revision History</H2>
85<P>
862006/03/01 Initial version.<br>
87</P>
88
89<hr><p>CONFIDENTIAL</p></body>
90</HTML>