HIO2EnumDevices

C Specification

Target:

#include <revolution/hio2.h>
BOOL    HIO2EnumDevices( HIO2EnumCallback callback );

Host:

#include <revolution/hio2.h>
s32     HIO2EnumDevices( HIO2EnumCallback callback, void* param );

Arguments

Target:

callback    Callback function to call if a connected HIO2 device is detected.

Host:

callback    Callback function to call if a connected HIO2 device is detected.
param    Parameters used with the callback function callback.

Return Values

Target:

Returns TRUE if enumeration succeeds and FALSE if enumeration fails.

Host:

Returns the number of HIO2 devices connected. Returns -1 if an error occurs.

Description

Target: The HIO2EnumDevices function enumerates the HIO2 devices connected to the target EXI port. If a device is detected, the callback function callback is called using the detected EXI device type as an argument. Devices are enumerated in this order: HIO2_DEVICE_EXI2USB_0HIO2_DEVICE_EXI2USB_1HIO2_DEVICE_MrEXI.

Host: The HIO2EnumDevices function enumerates the HIO2 devices connected to the host. If a device is detected, the callback function callback is called using the detected device path names and arguments that param specifies as parameters.

See Also

HIO2Init
HIO2EnumCallback

Revision History

2006/12/21 Corrected mistake in the type of the return value on the host side.

2006/07/18 Revised mistake in the description of the return value on the host side.

2006/05/29 Added link to HIO2EnumCallback

2006/03/01 Initial version.


CONFIDENTIAL