wut/hid_8h.html
2020-03-26 16:49:18 +11:00

151 lines
15 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: /home/ash/Code/wut2/include/nsyshid/hid.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-beta9</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_aa7b4105f8f352642a35fbab8db37b7b.html">nsyshid</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">hid.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="wut_8h_source.html">wut.h</a>&gt;</code><br />
</div>
<p><a href="hid_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structHIDDevice"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#structHIDDevice">HIDDevice</a></td></tr>
<tr class="separator:structHIDDevice"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:structHIDClient"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#structHIDClient">HIDClient</a></td></tr>
<tr class="separator:structHIDClient"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga26f9ce29d0bf4bb782919e78756dfbdf"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__nsyshid__hid.html#structHIDClient">HIDClient</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga26f9ce29d0bf4bb782919e78756dfbdf">HIDClient</a></td></tr>
<tr class="separator:ga26f9ce29d0bf4bb782919e78756dfbdf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa80ad69f23fd454a293cd606a6d9d953"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__nsyshid__hid.html#structHIDDevice">HIDDevice</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gaa80ad69f23fd454a293cd606a6d9d953">HIDDevice</a></td></tr>
<tr class="separator:gaa80ad69f23fd454a293cd606a6d9d953"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga65cc258229855ef8ce38591eb21db806"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="group__nsyshid__hid.html#ga01cfa0df94f3e3870562d1d4f8d35005">HIDAttachEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga65cc258229855ef8ce38591eb21db806">HIDAttachEvent</a></td></tr>
<tr class="separator:ga65cc258229855ef8ce38591eb21db806"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2907c52bbbb78a84b675425097ec55cf"><td class="memItemLeft" align="right" valign="top">typedef int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga2907c52bbbb78a84b675425097ec55cf">HIDAttachCallback</a>) (<a class="el" href="group__nsyshid__hid.html#structHIDClient">HIDClient</a> *client, <a class="el" href="group__nsyshid__hid.html#structHIDDevice">HIDDevice</a> *device, <a class="el" href="group__nsyshid__hid.html#ga01cfa0df94f3e3870562d1d4f8d35005">HIDAttachEvent</a> attach)</td></tr>
<tr class="separator:ga2907c52bbbb78a84b675425097ec55cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4f843e0018e8f49785d5c8db103228f8"><td class="memItemLeft" align="right" valign="top">typedef void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a>) (uint32_t handle, int32_t error, uint8_t *buffer, uint32_t bytesTransferred, void *userContext)</td></tr>
<tr class="separator:ga4f843e0018e8f49785d5c8db103228f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga01cfa0df94f3e3870562d1d4f8d35005"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga01cfa0df94f3e3870562d1d4f8d35005">HIDAttachEvent</a> { <br />
&#160;&#160;<a class="el" href="group__nsyshid__hid.html#gga01cfa0df94f3e3870562d1d4f8d35005a1eafdd0a8215fb85f364425fc5115ca2">HID_DEVICE_DETACH</a> = 0,
<br />
&#160;&#160;<a class="el" href="group__nsyshid__hid.html#gga01cfa0df94f3e3870562d1d4f8d35005a507069db7a30c1b0e383fce3a51604bf">HID_DEVICE_ATTACH</a> = 1
<br />
}</td></tr>
<tr class="separator:ga01cfa0df94f3e3870562d1d4f8d35005"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa81b1b19467d27b76d689490bfe1c65f"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gaa81b1b19467d27b76d689490bfe1c65f">HIDSetup</a> ()</td></tr>
<tr class="separator:gaa81b1b19467d27b76d689490bfe1c65f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga514782cac13a1d21579abedfb94b16af"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga514782cac13a1d21579abedfb94b16af">HIDTeardown</a> ()</td></tr>
<tr class="separator:ga514782cac13a1d21579abedfb94b16af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4bd8a1a2fce63c49cbd79e17d569ae38"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga4bd8a1a2fce63c49cbd79e17d569ae38">HIDAddClient</a> (<a class="el" href="group__nsyshid__hid.html#structHIDClient">HIDClient</a> *client, <a class="el" href="group__nsyshid__hid.html#ga2907c52bbbb78a84b675425097ec55cf">HIDAttachCallback</a> attachCallback)</td></tr>
<tr class="separator:ga4bd8a1a2fce63c49cbd79e17d569ae38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga87122a013c0c0acfd54059902b514e0c"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga87122a013c0c0acfd54059902b514e0c">HIDDelClient</a> (<a class="el" href="group__nsyshid__hid.html#structHIDClient">HIDClient</a> *client)</td></tr>
<tr class="separator:ga87122a013c0c0acfd54059902b514e0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12113ad83015db2e70ba5c342a4e2e17"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga12113ad83015db2e70ba5c342a4e2e17">HIDGetDescriptor</a> (uint32_t handle, uint8_t descriptorType, uint8_t descriptorIndex, uint16_t languageId, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:ga12113ad83015db2e70ba5c342a4e2e17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafbc73f057275c70cfacd8203bbe026d9"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gafbc73f057275c70cfacd8203bbe026d9">HIDSetDescriptor</a> (uint32_t handle, uint8_t descriptorType, uint8_t descriptorIndex, uint16_t languageId, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:gafbc73f057275c70cfacd8203bbe026d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5f524c938237c23b3c8c1b4e21613ba9"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga5f524c938237c23b3c8c1b4e21613ba9">HIDGetReport</a> (uint32_t handle, uint8_t reportType, uint8_t reportId, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:ga5f524c938237c23b3c8c1b4e21613ba9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3039149a2bb4b95ac00dac07f08224cd"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga3039149a2bb4b95ac00dac07f08224cd">HIDSetReport</a> (uint32_t handle, uint8_t reportType, uint8_t reportId, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:ga3039149a2bb4b95ac00dac07f08224cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8812a717621f2122e5d8cd5fb87126bd"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga8812a717621f2122e5d8cd5fb87126bd">HIDSetIdle</a> (uint32_t handle, uint8_t interfaceIndex, uint8_t duration, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:ga8812a717621f2122e5d8cd5fb87126bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaffb543d582fe46701c450049962ec6b2"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gaffb543d582fe46701c450049962ec6b2">HIDSetProtocol</a> (uint32_t handle, uint8_t interfaceIndex, uint8_t protocol, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:gaffb543d582fe46701c450049962ec6b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae29f4d9f222de91b19f9d2c43c8b27b7"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gae29f4d9f222de91b19f9d2c43c8b27b7">HIDGetProtocol</a> (uint32_t handle, uint8_t interfaceIndex, uint8_t *protocol, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:gae29f4d9f222de91b19f9d2c43c8b27b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa274a2eafa9e8dc2658ddc778a992c21"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#gaa274a2eafa9e8dc2658ddc778a992c21">HIDRead</a> (uint32_t handle, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> callback, void *userContext)</td></tr>
<tr class="separator:gaa274a2eafa9e8dc2658ddc778a992c21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7913fc0a9551c55ea2f38534acc1eaa9"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__nsyshid__hid.html#ga7913fc0a9551c55ea2f38534acc1eaa9">HIDWrite</a> (uint32_t handle, uint8_t *buffer, uint32_t bufferLength, <a class="el" href="group__nsyshid__hid.html#ga4f843e0018e8f49785d5c8db103228f8">HIDCallback</a> hc, void *userContext)</td></tr>
<tr class="separator:ga7913fc0a9551c55ea2f38534acc1eaa9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>