HIO2EnumDevices

Syntax

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 be called if a connected HIO2 device is detected.

Host:

callback Callback function to be called if a connected HIO2 device is detected.
param Argument used with the callback function callback.

Return Values

Target:

Returns TRUE if enumeration succeeds and FALSE if enumeration fails.

Host:

Returns the number of connected HIO2 devices. 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 the following 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 the arguments specified by param as parameters.

See Also

HIO2Init, HIO2EnumCallback

Revision History

2006/12/21 Corrected an error in the type of the return value on the host side.
2006/07/18 Corrected an error in the description of the return value on the host side.
2006/05/29 Added link to HIO2EnumCallback.
2006/03/01 Initial version.


CONFIDENTIAL