USB_Host_Shield_2.0/hid_8h_source.html

302 lines
47 KiB
HTML
Raw Normal View History

2013-01-30 22:00:18 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.3.1"/>
<title>USB Host Shield 2.0: hid.h Source File</title>
2013-01-30 22:00:18 +01:00
<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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="imageStyle.css" rel="stylesheet" type="text/css"/>
2013-01-30 22:00:18 +01:00
</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 style="padding-left: 0.5em;">
<div id="projectname">USB Host Shield 2.0
2013-01-30 22:00:18 +01:00
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></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_e5fbe6d2783ccd4c93c7856d92d7be6e.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_397a095372f04465e811d0ee219bbf8f.html">USB_Host_Shield_2.0</a></li> </ul>
2013-01-30 22:00:18 +01:00
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">hid.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="hid_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">This software may be distributed and modified under the terms of the GNU</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">General Public License version 2 (GPL2) as published by the Free Software</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">Foundation and appearing in the file GPL2.TXT included in the packaging of</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">this file. Please note that GPL2 Section 2[b] requires that all works based</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">on this software must also be made publicly available under the terms of</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">the GPL2 (&quot;Copyleft&quot;).</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">Contact information</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">-------------------</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">Circuits At Home, LTD</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">Web : http://www.circuitsathome.com</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">e-mail : support@circuitsathome.com</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#if !defined(__HID_H__)</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __HID_H__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &lt;inttypes.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &lt;avr/pgmspace.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="avrpins_8h.html">avrpins.h</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="max3421e_8h.html">max3421e.h</a>&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="usbhost_8h.html">usbhost.h</a>&quot;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="usb__ch9_8h.html">usb_ch9.h</a>&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_usb_8h.html">Usb.h</a>&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#if defined(ARDUINO) &amp;&amp; ARDUINO &gt;=100</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;Arduino.h&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &lt;WProgram.h&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="printhex_8h.html">printhex.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="hexdump_8h.html">hexdump.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">message.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="confdescparser_8h.html">confdescparser.h</a>&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="hidusagestr_8h.html">hidusagestr.h</a>&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="code" href="hid_8h.html#a80a14b35dd7216f368201bbdc1cb101c"> 41</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_MASK 0x03</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="hid_8h.html#aff17a6771d3319ab64930cd2b937d6cf"> 42</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TYPE_MASK 0x0C</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="hid_8h.html#a5bf2f9f7270f2a399d2a2621fc111fef"> 43</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_MASK 0xF0</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="code" href="hid_8h.html#ac4c40e44b6ef0e020230df304a75f8c7"> 45</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_0 0x00</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="hid_8h.html#a81e8f549407197122ec10d84b8c42794"> 46</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DATA_SIZE_1 0x01</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="hid_8h.html#afe89ca0c78d174017905ca74606e7917"> 47</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DATA_SIZE_2 0x02</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="code" href="hid_8h.html#a6fa5c717ec22c6281adf163d0dc4a1fb"> 48</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define DATA_SIZE_4 0x03</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="hid_8h.html#ae10440ac2324170ae0b1d3b0e3aa767f"> 50</a></span>&#160;<span class="preprocessor">#define TYPE_MAIN 0x00</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="hid_8h.html#a765b65914273505c0f53f4aff43a8124"> 51</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TYPE_GLOBAL 0x04</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="code" href="hid_8h.html#a2520712de518edfc55a2897ecf7faaec"> 52</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TYPE_LOCAL 0x08</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="code" href="hid_8h.html#a967854f388f55aaadfa5a07967e338a8"> 54</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_INPUT 0x80</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="code" href="hid_8h.html#a8d2abc629c107c06d019529822536057"> 55</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_MAIN_OUTPUT 0x90</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="hid_8h.html#aa03120f934f69e4e543e42ecc2c48542"> 56</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_MAIN_COLLECTION 0xA0</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="code" href="hid_8h.html#add8764d1be0e197bf0014add5cd0e5c3"> 57</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_MAIN_FEATURE 0xB0</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="code" href="hid_8h.html#ae3646aed7eada251138358475fc07568"> 58</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_MAIN_ENDCOLLECTION 0xC0</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="hid_8h.html#a97f5f77e22b386e3c1bd6db9152d8f10"> 60</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_USAGEPAGE 0x00</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="hid_8h.html#afc4b9bd4728c551a2632bdb8adc6726b"> 61</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_LOGICALMIN 0x10</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="hid_8h.html#ab626df6886a8a1fb2e9fcaf7cbce5f46"> 62</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_LOGICALMAX 0x20</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="hid_8h.html#a4cd6b210dc464605163af1a3e1965ab6"> 63</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_PHYSMIN 0x30</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="hid_8h.html#a166b5d338fee5bc456fad49a4f0130f4"> 64</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_PHYSMAX 0x40</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="hid_8h.html#aac7c7c715577b60dfc5cdf8c44f561ee"> 65</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_UNITEXP 0x50</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="hid_8h.html#aa7b5cfc69c6bf86a11181ce7d57ad307"> 66</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_UNIT 0x60</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="hid_8h.html#a337c4f4bdeeb44713eb218380b53c829"> 67</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_REPORTSIZE 0x70</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="hid_8h.html#a1c175bc4e216046159a2848456496e4f"> 68</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_REPORTID 0x80</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="hid_8h.html#a06b93bdd561b801f45b29014a5fda1b6"> 69</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_REPORTCOUNT 0x90</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="hid_8h.html#a55fe29097369768aaf9d5b27d39e11e3"> 70</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_PUSH 0xA0</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="hid_8h.html#aeae2d9a0a91e33d97a49285f8cc6294c"> 71</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_GLOBAL_POP 0xB0</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="hid_8h.html#a69cf38b0d771c29c23b533de1235ef80"> 73</a></span>&#160;<span class="preprocessor">#define TAG_LOCAL_USAGE 0x00</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="hid_8h.html#ae6b21bd3b0804cf4afcbc982658238e4"> 74</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_LOCAL_USAGEMIN 0x10</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="hid_8h.html#ab80d05a68a36596bfd81e87cb7aa14d2"> 75</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define TAG_LOCAL_USAGEMAX 0x20</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="comment">/* HID requests */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="hid_8h.html#a264e2a54e5ef95976daa14a8ba9f2f93"> 78</a></span>&#160;<span class="preprocessor">#define bmREQ_HIDOUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="hid_8h.html#ab73db1dfbfe4bf3e203c1980da72eda3"> 79</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmREQ_HIDIN USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE </span></div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="hid_8h.html#a06186a720fca492fb03e8c5fd58934c8"> 80</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmREQ_HIDREPORT USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_STANDARD|USB_SETUP_RECIPIENT_INTERFACE</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="comment">/* HID constants. Not part of chapter 9 */</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="comment">/* Class-Specific Requests */</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="hid_8h.html#a73dbc093cd8c096054332fde410cd9ed"> 84</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_GET_REPORT 0x01</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="hid_8h.html#a83087478087d308095e2d40225e3bc8d"> 85</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_REQUEST_GET_IDLE 0x02</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="code" href="hid_8h.html#a5a5af41fcad0684bb2a1f69ffa053521"> 86</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_REQUEST_GET_PROTOCOL 0x03</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="code" href="hid_8h.html#aee05d40a014750b24a7e9967f6f389f4"> 87</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_REQUEST_SET_REPORT 0x09</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="hid_8h.html#ad5c09f0330516b99cfd6e125ca5a877b"> 88</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_REQUEST_SET_IDLE 0x0A</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="hid_8h.html#a98e797920e119fe3e77d9d4181750b42"> 89</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_REQUEST_SET_PROTOCOL 0x0B</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="comment">/* Class Descriptor Types */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="code" href="hid_8h.html#a90140ca7ead37fd62faeb395f0942a67"> 92</a></span>&#160;<span class="preprocessor">#define HID_DESCRIPTOR_HID 0x21</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="hid_8h.html#a0e317fe63190a7be08676fcc92258902"> 93</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_DESCRIPTOR_REPORT 0x22</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="hid_8h.html#a4c0f76c9856d874ad38fe898aa753d28"> 94</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_DESRIPTOR_PHY 0x23</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;<span class="comment">/* Protocol Selection */</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="hid_8h.html#a41258c5dd55e5ae0378ec8ded892ce37"> 97</a></span>&#160;<span class="preprocessor">#define HID_BOOT_PROTOCOL 0x00</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="hid_8h.html#a5153bc7974af5cfead6daea72b8b2f6a"> 98</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_RPT_PROTOCOL 0x01</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;<span class="comment">/* HID Interface Class Code */</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="hid_8h.html#af5c77c554d065e04ff5b343c05a53fe6"> 101</a></span>&#160;<span class="preprocessor">#define HID_INTF 0x03</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="comment">/* HID Interface Class SubClass Codes */</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="hid_8h.html#af36d3643d6fb5f552eac19c356d9baf0"> 104</a></span>&#160;<span class="preprocessor">#define HID_BOOT_INTF_SUBCLASS 0x01</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;<span class="comment">/* HID Interface Class Protocol Codes */</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="code" href="hid_8h.html#a050926404254a7fa1d6b5253a79abc59"> 107</a></span>&#160;<span class="preprocessor">#define HID_PROTOCOL_NONE 0x00</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="hid_8h.html#a059227938fbd1b45ce693d91d2856ca9"> 108</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_PROTOCOL_KEYBOARD 0x01</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="hid_8h.html#aeabcfc288ffa25ac6896d19e0642b104"> 109</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_PROTOCOL_MOUSE 0x02</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="struct_hid_item_prefix.html"> 111</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_hid_item_prefix.html">HidItemPrefix</a></div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;{</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="struct_hid_item_prefix.html#a4b0af0a3d7ac50bdbedcd5fae929200d"> 113</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a4b0af0a3d7ac50bdbedcd5fae929200d">bSize</a> : 2;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="struct_hid_item_prefix.html#a16874c73fdb809e4c46407ca83684927"> 114</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a16874c73fdb809e4c46407ca83684927">bType</a> : 2;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="struct_hid_item_prefix.html#a9c8a256ca8e493adfce8772445fef01e"> 115</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a9c8a256ca8e493adfce8772445fef01e">bTag</a> : 4;</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="hid_8h.html#a9a71248c522943951b5af70ec9c14c02"> 118</a></span>&#160;<span class="preprocessor">#define HID_ITEM_TYPE_MAIN 0</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="code" href="hid_8h.html#a8e56e8090f1af7aae473e8a8b6832fb8"> 119</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_ITEM_TYPE_GLOBAL 1</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="code" href="hid_8h.html#a0bfb0e326d9a01072c029cba788d6456"> 120</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_ITEM_TYPE_LOCAL 2</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="code" href="hid_8h.html#ae492b86b9ff1e40dfcccc904e9a30a13"> 121</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_ITEM_TYPE_RESERVED 3</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="code" href="hid_8h.html#a574c9762fdcc2eea83be135ae54a52a1"> 123</a></span>&#160;<span class="preprocessor">#define HID_LONG_ITEM_PREFIX 0xfe // Long item prefix value</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="code" href="hid_8h.html#a0c5cd5d30f7be0479ac6dbcb5e41f99a"> 125</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_TAG 0xfc // Main item tag mask</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="hid_8h.html#ab0c161ec8da9a2d5b4234efc6e66e1ab"> 127</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_INPUT 0x80 // Main item Input tag value</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="code" href="hid_8h.html#a16de52cc993408e12b019895d9676812"> 128</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHID_MAIN_ITEM_OUTPUT 0x90 // Main item Output tag value</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="code" href="hid_8h.html#a814680d5ac9f4928107ef8e551ea2a0f"> 129</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHID_MAIN_ITEM_FEATURE 0xb0 // Main item Feature tag value</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="code" href="hid_8h.html#a457b69fda34dfaa82e266bd93f094e13"> 130</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHID_MAIN_ITEM_COLLECTION 0xa0 // Main item Collection tag value</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="code" href="hid_8h.html#a31f12a2a73c8fb9303e8d05fe35dbdae"> 131</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define bmHID_MAIN_ITEM_END_COLLECTION 0xce // Main item End Collection tag value</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="hid_8h.html#a11681fe3d0edf3f376786e301bc77ac1"> 133</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_PHYSICAL 0</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="code" href="hid_8h.html#af406e4017fe65e288e3be1f4d9a77348"> 134</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_APPLICATION 1</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="code" href="hid_8h.html#a6fc76c6d37f89a2ac571e1c76bf19ae0"> 135</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_LOGICAL 2</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="hid_8h.html#aa9a82c8196c0fe8ba4a891c9d9126e3e"> 136</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_REPORT 3</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="code" href="hid_8h.html#a9a69ff65a363bb0ef246c9f840312edf"> 137</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_NAMED_ARRAY 4</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="hid_8h.html#af6e75ab2e524eafad8f6481ba5b3f1b2"> 138</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_USAGE_SWITCH 5</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="hid_8h.html#ac9a63c95debeb34fc5ea25921d93c099"> 139</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_USAGE_MODIFIER 6</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html"> 141</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_main_item_i_o_feature.html">MainItemIOFeature</a></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;{</div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#a5d578c79399be5da63790c7396fc5336"> 143</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#a5d578c79399be5da63790c7396fc5336">bmIsConstantOrData</a> : 1;</div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#adaf8eafeb85f6aff94e211601e76ee8f"> 144</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#adaf8eafeb85f6aff94e211601e76ee8f">bmIsArrayOrVariable</a> : 1;</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#aeb93d03989043229774d2a6832e48628"> 145</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#aeb93d03989043229774d2a6832e48628">bmIsRelativeOrAbsolute</a> : 1;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#a7acdfbb4a6b53046205cccae67fa26d4"> 146</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#a7acdfbb4a6b53046205cccae67fa26d4">bmIsWrapOrNoWrap</a> : 1;</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#abbe00a271ed4f5200399dd2ec5d18795"> 147</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#abbe00a271ed4f5200399dd2ec5d18795">bmIsNonLonearOrLinear</a> : 1;</div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#afd8eca62fe742513103795799d960d01"> 148</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#afd8eca62fe742513103795799d960d01">bmIsNoPreferedOrPrefered</a> : 1;</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#a9673a5c3415a2f43b488aa32181b1f4c"> 149</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#a9673a5c3415a2f43b488aa32181b1f4c">bmIsNullOrNoNull</a> : 1;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="struct_main_item_i_o_feature.html#aaa20e71b24fe2de818a85b0cbdcba33e"> 150</a></span>&#160; uint8_t <a class="code" href="struct_main_item_i_o_feature.html#aaa20e71b24fe2de818a85b0cbdcba33e">bmIsVolatileOrNonVolatile</a> : 1;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;};</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;<span class="keyword">class </span><a class="code" href="class_h_i_d.html">HID</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="class_h_i_d_report_parser.html"> 155</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_h_i_d_report_parser.html">HIDReportParser</a></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;{</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_h_i_d_report_parser.html#ad2837f3d78c7ac3f1c2b3a4815420d97">Parse</a>(<a class="code" href="class_h_i_d.html">HID</a> *hid, <span class="keywordtype">bool</span> is_rpt_id, uint8_t len, uint8_t *buf) = 0;</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;};</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="code" href="hid_8h.html#aeeb08a8b14bc04296f1c839872abc8af"> 161</a></span>&#160;<span class="preprocessor">#define MAX_REPORT_PARSERS 2</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="hid_8h.html#a9901c86718db1fefe5d116aa254361cf"> 162</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define HID_MAX_HID_CLASS_DESCRIPTORS 5</span></div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="class_h_i_d.html"> 164</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_h_i_d.html">HID</a> : <span class="keyword">public</span> <a class="code" href="class_u_s_b_device_config.html">USBDeviceConfig</a>, <span class="keyword">public</span> <a class="code" href="class_usb_config_xtracter.html">UsbConfigXtracter</a></div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;{</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="class_h_i_d.html#a1583e665c2b930e8683c10dc271f013f"> 167</a></span>&#160; <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_h_i_d.html#a1583e665c2b930e8683c10dc271f013f">pUsb</a>; <span class="comment">// USB class instance pointer</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="class_h_i_d.html#a525edb36c2cd8470eae703d3b236e4a7"> 168</a></span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a525edb36c2cd8470eae703d3b236e4a7">bAddress</a>; <span class="comment">// address</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="class_h_i_d.html#a845b9961830a6778c296e8571759dd38"> 171</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_h_i_d.html#a845b9961830a6778c296e8571759dd38">epInterruptInIndex</a> = 1; <span class="comment">// InterruptIN endpoint index</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="class_h_i_d.html#aeb7fc07fe6dbc98d518967fdbc441ab3"> 172</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_h_i_d.html#aeb7fc07fe6dbc98d518967fdbc441ab3">epInterruptOutIndex</a> = 2; <span class="comment">// InterruptOUT endpoint index</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="class_h_i_d.html#afe5186f46ac7b580bb3dc289e3f237b2"> 174</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_h_i_d.html#afe5186f46ac7b580bb3dc289e3f237b2">maxHidInterfaces</a> = 3; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="class_h_i_d.html#acd92969682030cd5cac310dd7746c7c7"> 175</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_h_i_d.html#acd92969682030cd5cac310dd7746c7c7">maxEpPerInterface</a> = 2;</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="class_h_i_d.html#a884aa67312324e7d23a052a6dc80337e"> 176</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_h_i_d.html#a884aa67312324e7d23a052a6dc80337e">totalEndpoints</a> = (<a class="code" href="class_h_i_d.html#afe5186f46ac7b580bb3dc289e3f237b2">maxHidInterfaces</a> * <a class="code" href="class_h_i_d.html#acd92969682030cd5cac310dd7746c7c7">maxEpPerInterface</a> + 1); </div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_h_i_d.html#a9e2e57ffd2701ebd171842fa9a3f54bd">PrintEndpointDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html">USB_ENDPOINT_DESCRIPTOR</a>* ep_ptr);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_h_i_d.html#a733e3944b51dced26ef257f047c227dc">PrintHidDescriptor</a>(<span class="keyword">const</span> <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html">USB_HID_DESCRIPTOR</a> *pDesc);</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keyword">virtual</span> <a class="code" href="class_h_i_d_report_parser.html">HIDReportParser</a>* <a class="code" href="class_h_i_d.html#ac51c88a0be514a748598008d312adc1d">GetReportParser</a>(uint8_t <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="code" href="class_h_i_d.html#acea6b13146dc6fb351a912382ce806fd"> 184</a></span>&#160; <a class="code" href="class_h_i_d.html#acea6b13146dc6fb351a912382ce806fd">HID</a>(<a class="code" href="class_u_s_b.html">USB</a> *pusb) : <a class="code" href="class_h_i_d.html#a1583e665c2b930e8683c10dc271f013f">pUsb</a>(pusb) {};</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="code" href="class_h_i_d.html#afd4bcb073a263f662dd5433139d6ebf3"> 186</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_u_s_b.html">USB</a>* <a class="code" href="class_h_i_d.html#afd4bcb073a263f662dd5433139d6ebf3">GetUsb</a>() { <span class="keywordflow">return</span> <a class="code" href="class_h_i_d.html#a1583e665c2b930e8683c10dc271f013f">pUsb</a>; };</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_h_i_d.html#ae3b964d20c828fb27076f50d220fe275">SetReportParser</a>(uint8_t <span class="keywordtype">id</span>, <a class="code" href="class_h_i_d_report_parser.html">HIDReportParser</a> *prs);</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;</div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a276ec67d360b59c3144d7ea2e2f5149e">SetProtocol</a>( uint8_t iface, uint8_t protocol );</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a70be6b7ad992954b8648d7d06e2d4e2b">GetProtocol</a>( uint8_t iface, uint8_t* dataptr );</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a52f9c963ffe4715829ff1b84a9eac24c">GetIdle</a>( uint8_t iface, uint8_t reportID, uint8_t* dataptr );</div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a6b27ed48d16c6ab09a5ea9a97a628149">SetIdle</a>( uint8_t iface, uint8_t reportID, uint8_t duration );</div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a343e92e353615fab16f639b016c214a6">GetReportDescr</a>( uint8_t ep, <a class="code" href="class_u_s_b_read_parser.html">USBReadParser</a> *parser = NULL);</div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160;</div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a13dccfb3aa8144626ba587969e3ef3b0">GetHidDescr</a>( uint8_t ep, uint16_t nbytes, uint8_t* dataptr );</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a4b59be9ba5dbdc09d2e47cf734c02fdc">GetReport</a>( uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t* dataptr );</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; uint8_t <a class="code" href="class_h_i_d.html#a58ca963ba0f12d2a457cb247595f38e9">SetReport</a>( uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t* dataptr );</div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160;};</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160;<span class="preprocessor">#endif // __HID_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
2013-01-30 22:00:18 +01:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>