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<H2>C Specification</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#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);</CODE></PRE>
30</DL>
31<H2>Arguments</H2>
32<TABLE border="1" cellpadding="3" cellspacing="0.1">
33  <TBODY>
34    <TR>
35<TD valign="top" width="120" bgcolor="#ffffe8"><STRONG><EM><CODE>chan</CODE></EM></STRONG></TD>
36<TD width="520">EXI channel number.</TD>
37    </TR>
38    <TR>
39<TD valign="top" width="120" bgcolor="#ffffe8"><STRONG><EM><CODE>dev</CODE></EM></STRONG></TD>
40<TD width="520">EXI device number. (If Slot A or Slot B, specify zero).</TD>
41    </TR>
42    <TR>
43<TD valign="top" width="120" bgcolor="#ffffe8"><STRONG><EM><CODE>type</CODE></EM></STRONG></TD>
44<TD width="520">Pointer to the EXI device type to retrieve.</TD>
45    </TR>
46  </TBODY>
47</TABLE>
48<P>The following table shows the relationships between the Revolution extended interface, EXI channel, and device number.</P>
49<table border="1" cellpadding="3" cellspacing="0.1">
50  <tr>
51<td bgcolor="#C0C0C0">Extended Interface</td>
52<td bgcolor="#C0C0C0">Channel Number</td>
53<td bgcolor="#C0C0C0">Device Number</td>
54  </tr>
55  <tr>
56<td>Slot A</td>
57    <td>0</td>
58    <td>0</td>
59  </tr>
60  <tr>
61<td>Slot B</td>
62    <td>1</td>
63    <td>0</td>
64  </tr>
65  <tr>
66<td>Serial Port 2</td>
67    <td>2</td>
68    <td>0</td>
69  </tr>
70
71
72</table>
73<H2>Return Values</H2>
74<P>Returns <CODE>0</CODE> if the device ID is still inactive. (In other words, the OS is still checking whether the device is inserted in the slot.) Returns a non-zero if the device type is active. The non-zero return value remains the same until the current device is replaced.</P>
75<H2>Description</H2>
76<P>Returns current EXI device type.</P>
77
78<H2>See Also</H2>
79<P><A href="../os/toc.html" target="contents">OS Functions</A>, <CODE><A href="EXIGetTypeString.html">EXIGetTypeString</A></CODE></P>
80<H2>Revision History</H2>
81<P>2006/03/01 Initial version.</P>
82<hr>
83<P>CONFIDENTIAL</p>
84</BODY>
85</HTML>