#include <revolution/os/OSExpansion.h> #define EXI_MEMORY_CARD_59 0x00000004 #define EXI_MEMORY_CARD_123 0x00000008 #define EXI_MEMORY_CARD_251 0x00000010 #define EXI_MEMORY_CARD_507 0x00000020 #define EXI_MEMORY_CARD_1019 0x00000040 #define EXI_MEMORY_CARD_2043 0x00000080 #define EXI_USB_ADAPTER 0x01010000 #define EXI_IS_VIEWER 0x05070000 #define EXI_MODEM 0x02020000 #define EXI_ETHER 0x04020200 s32 EXIGetType(s32 chan, u32 dev, u32* type);
| chan | EXI channel number. |
|---|---|
| dev | EXI device number. (If Slot A or Slot B, specify zero). |
| type | Pointer to the EXI device type to retrieve. |
The following table shows the relationships between the GameCube extended interface, EXI channel, and device number.
| Extended Interface | Channel Number | Device Number |
| Slot A | 0 | 0 |
| Slot B | 1 | 0 |
| Serial Port 2 | 2 | 0 |
Returns 0 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).
Returns a non-zero if the device type is active. The non-zero return value is unchanged until the current device is replaced.
Returns the current EXI device type.
OS Functions, EXIGetTypeString
2006/03/01 Initial version.
CONFIDENTIAL