#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 Revolution 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, 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.
Returns current EXI device type.
OS Functions, EXIGetTypeString
03/01/2006 Initial version.