1<html> 2 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<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7<title>HIDSetupHandler</title> 8</head> 9 10<body> 11 12<h1>HIDSetupHandler</h1> 13 14<h2>Syntax</h2> 15 16<dl> 17<dd> 18<pre><code>#include <revolution/hid.h></code></pre> 19</dd> 20<dd> 21<pre><code>typedef void (*HIDSetupHandler)(HIDError he, u32 user);</code></pre> 22</dd> 23</dl> 24 25<h2>Arguments</h2> 26 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 29<tr> 30<TD width="120" bgcolor="#ffffe8"><code><em><strong>HIDError</strong></em></code></TD> 31<TD width="520"> 32 33The asynchronous result of the call to <code>HIDOpenAsync</code> or <code>HIDCloseAsync</code>. 34 35These are the return values for <code>HIDOpenAsync</code>: 36<ul> 37<li><code>HID_ERROR_OK</code> 38<li><code>HID_ERROR_FIRMWARE_VERSION</code> 39<li><code>HID_ERROR_FIRMWARE_MALFUNCTION</code> 40</ul> 41 42These are the return values for <code>HIDCloseAsync</code>: 43<ul> 44<li><code>HID_ERROR_OK</code> 45<li><code>HID_ERROR_FIRMWARE_MALFUNCTION</code> 46<li><code>HID_ERROR_BUSY</code> 47</ul> 48 49 50For explanations of the error codes, see <code>HIDError</code>. 51</TD> 52</tr> 53 54<tr> 55<TD width="120" bgcolor="#ffffe8"><code><em><strong>u32 user</strong></em></code></TD> 56<TD width="520"> 57User-defined parameter. This is the value specified when <code>HIDOpenAsync</code> and <code>HIDCloseAsync</code> are called. 58</TD> 59</tr> 60 61</TABLE> 62 63<h2>Description</h2> 64 65<p>An asynchronous user-defined callback function for the <code>HIDOpenAsync</code> and <code>HIDCloseAsync</code> functions. 66 67<h2>See Also</h2> 68<p><a href="HIDOpenAsync.html">HIDOpenAsync</a><BR><a href="HIDCloseAsync.html">HIDCloseAsync</a><BR><a href="HIDError.html">HIDError</a> 69 70<h2>Revision History</h2><p></p> 71 72<P>2008/09/24 Initial version.</p> 73 74<hr> 75 76<hr><p>CONFIDENTIAL</p></body> 77</HTML> 78