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="IBM WebSphere Studio Homepage Builder Version 6.5.0.0 for Windows"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>HIO2EnumDevices</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">HIO2EnumDevices</H1> 12 13<H2>Syntax</H2> 14<P><STRONG>Target:</STRONG></P> 15<dl><dd><pre class="construction"> 16#include <revolution/hio2.h> 17 18BOOL HIO2EnumDevices( HIO2EnumCallback callback ); 19</pre></dd></dl> 20 21<P><STRONG>Host:</STRONG></P> 22<dl><dd><pre class="construction"> 23#include <revolution/hio2.h> 24 25s32 HIO2EnumDevices( HIO2EnumCallback callback, void* param ); 26</pre></dd></dl> 27 28<H2>Arguments</H2> 29<P><STRONG>Target:</STRONG></P> 30<TABLE class="arguments" border="1" > 31 <TBODY> 32 <TR> 33<TH>callback</TH> 34<TD>Callback function to be called if a connected HIO2 device is detected.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38<P><STRONG>Host:</STRONG></P> 39<TABLE class="arguments" border="1" > 40 <TBODY> 41 <TR> 42<TH>callback</TH> 43<TD>Callback function to be called if a connected HIO2 device is detected.</TD> 44 </TR> 45 <TR> 46<TH>param</TH> 47<TD>Argument used with the callback function <SPAN class="argument">callback</SPAN>.</TD> 48 </TR> 49 </TBODY> 50</TABLE> 51 52<H2>Return Values</H2> 53<P><STRONG>Target:</STRONG></P> 54<P>Returns <CODE>TRUE</CODE> if enumeration succeeds and <CODE>FALSE</CODE> if enumeration fails.</P> 55<P><STRONG>Host:</STRONG></P> 56<p>Returns the number of connected HIO2 devices. Returns -1 if an error occurs.</p> 57 58<H2>Description</H2> 59<P><STRONG>Target:</STRONG> The <CODE>HIO2EnumDevices</CODE> function enumerates the HIO2 devices connected to the target EXI port. If a device is detected, the callback function <SPAN class="argument">callback</SPAN> is called using the detected EXI device type as an argument. Devices are enumerated in the following order: <CODE>HIO2_DEVICE_EXI2USB_0</CODE> → <CODE>HIO2_DEVICE_EXI2USB_1</CODE> → <CODE>HIO2_DEVICE_MrEXI</CODE>.</P> 60<P><STRONG>Host:</STRONG> The <CODE>HIO2EnumDevices</CODE> function enumerates the HIO2 devices connected to the host. If a device is detected, the callback function <SPAN class="argument">callback</SPAN> is called using the detected device path names and the arguments specified by <SPAN class="argument">param</SPAN> as parameters.</P> 61 62<H2>See Also</H2> 63<P class="reference"> 64<A href="HIO2Init.html">HIO2Init</A>, 65<A href="HIO2EnumCallback.html">HIO2EnumCallback</A> 66</P> 67 68<H2>Revision History</H2> 69<P> 702006/12/21 Corrected an error in the type of the return value on the host side.<br>2006/07/18 Corrected an error in the description of the return value on the host side.<br>2006/05/29 Added link to <CODE>HIO2EnumCallback</CODE>.<br>2006/03/01 Initial version.<br> 71</P> 72 73<hr><p>CONFIDENTIAL</p></body> 74</HTML>