USB_Host_Shield_2.0/usbhid_8h_source.html
2022-12-15 10:52:18 +00:00

308 lines
57 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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>USB Host Shield 2.0: usbhid.h Source File</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" />
<link href="imageStyle.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">USB Host Shield 2.0
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<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','.html');
/* @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>
</div><!-- top -->
<!-- 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 class="header">
<div class="headertitle">
<div class="title">usbhid.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="usbhid_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(__USBHID_H__)</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#define __USBHID_H__</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</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="l00021"></a><span class="lineno"> 21</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="l00022"></a><span class="lineno"> 22</span>&#160; </div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aeeb08a8b14bc04296f1c839872abc8af"> 23</a></span>&#160;<span class="preprocessor">#define MAX_REPORT_PARSERS 2</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a9901c86718db1fefe5d116aa254361cf"> 24</a></span>&#160;<span class="preprocessor">#define HID_MAX_HID_CLASS_DESCRIPTORS 5</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a80a14b35dd7216f368201bbdc1cb101c"> 26</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_MASK 0x03</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aff17a6771d3319ab64930cd2b937d6cf"> 27</a></span>&#160;<span class="preprocessor">#define TYPE_MASK 0x0C</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a5bf2f9f7270f2a399d2a2621fc111fef"> 28</a></span>&#160;<span class="preprocessor">#define TAG_MASK 0xF0</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ac4c40e44b6ef0e020230df304a75f8c7"> 30</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_0 0x00</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a81e8f549407197122ec10d84b8c42794"> 31</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_1 0x01</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="usbhid_8h.html#afe89ca0c78d174017905ca74606e7917"> 32</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_2 0x02</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a6fa5c717ec22c6281adf163d0dc4a1fb"> 33</a></span>&#160;<span class="preprocessor">#define DATA_SIZE_4 0x03</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ae10440ac2324170ae0b1d3b0e3aa767f"> 35</a></span>&#160;<span class="preprocessor">#define TYPE_MAIN 0x00</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a765b65914273505c0f53f4aff43a8124"> 36</a></span>&#160;<span class="preprocessor">#define TYPE_GLOBAL 0x04</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a2520712de518edfc55a2897ecf7faaec"> 37</a></span>&#160;<span class="preprocessor">#define TYPE_LOCAL 0x08</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a967854f388f55aaadfa5a07967e338a8"> 39</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_INPUT 0x80</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a8d2abc629c107c06d019529822536057"> 40</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_OUTPUT 0x90</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aa03120f934f69e4e543e42ecc2c48542"> 41</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_COLLECTION 0xA0</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="usbhid_8h.html#add8764d1be0e197bf0014add5cd0e5c3"> 42</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_FEATURE 0xB0</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ae3646aed7eada251138358475fc07568"> 43</a></span>&#160;<span class="preprocessor">#define TAG_MAIN_ENDCOLLECTION 0xC0</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a97f5f77e22b386e3c1bd6db9152d8f10"> 45</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_USAGEPAGE 0x00</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="usbhid_8h.html#afc4b9bd4728c551a2632bdb8adc6726b"> 46</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_LOGICALMIN 0x10</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ab626df6886a8a1fb2e9fcaf7cbce5f46"> 47</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_LOGICALMAX 0x20</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a4cd6b210dc464605163af1a3e1965ab6"> 48</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_PHYSMIN 0x30</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a166b5d338fee5bc456fad49a4f0130f4"> 49</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_PHYSMAX 0x40</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aac7c7c715577b60dfc5cdf8c44f561ee"> 50</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_UNITEXP 0x50</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aa7b5cfc69c6bf86a11181ce7d57ad307"> 51</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_UNIT 0x60</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a337c4f4bdeeb44713eb218380b53c829"> 52</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_REPORTSIZE 0x70</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a1c175bc4e216046159a2848456496e4f"> 53</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_REPORTID 0x80</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a06b93bdd561b801f45b29014a5fda1b6"> 54</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_REPORTCOUNT 0x90</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a55fe29097369768aaf9d5b27d39e11e3"> 55</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_PUSH 0xA0</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aeae2d9a0a91e33d97a49285f8cc6294c"> 56</a></span>&#160;<span class="preprocessor">#define TAG_GLOBAL_POP 0xB0</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a69cf38b0d771c29c23b533de1235ef80"> 58</a></span>&#160;<span class="preprocessor">#define TAG_LOCAL_USAGE 0x00</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ae6b21bd3b0804cf4afcbc982658238e4"> 59</a></span>&#160;<span class="preprocessor">#define TAG_LOCAL_USAGEMIN 0x10</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ab80d05a68a36596bfd81e87cb7aa14d2"> 60</a></span>&#160;<span class="preprocessor">#define TAG_LOCAL_USAGEMAX 0x20</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="comment">/* HID requests */</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a5bd4ea095da29635414952894bd527f5"> 63</a></span>&#160;<span class="preprocessor">#define bmREQ_HID_OUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a2b422a95d6f43756111dea6b6a9230ff"> 64</a></span>&#160;<span class="preprocessor">#define bmREQ_HID_IN USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aa229af682766d2ae86d69e7219894232"> 65</a></span>&#160;<span class="preprocessor">#define bmREQ_HID_REPORT USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_STANDARD|USB_SETUP_RECIPIENT_INTERFACE</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment">/* HID constants. Not part of chapter 9 */</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">/* Class-Specific Requests */</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a73dbc093cd8c096054332fde410cd9ed"> 69</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_GET_REPORT 0x01</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a83087478087d308095e2d40225e3bc8d"> 70</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_GET_IDLE 0x02</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a5a5af41fcad0684bb2a1f69ffa053521"> 71</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_GET_PROTOCOL 0x03</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aee05d40a014750b24a7e9967f6f389f4"> 72</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_SET_REPORT 0x09</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ad5c09f0330516b99cfd6e125ca5a877b"> 73</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_SET_IDLE 0x0A</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a98e797920e119fe3e77d9d4181750b42"> 74</a></span>&#160;<span class="preprocessor">#define HID_REQUEST_SET_PROTOCOL 0x0B</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; </div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="comment">/* Class Descriptor Types */</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a90140ca7ead37fd62faeb395f0942a67"> 77</a></span>&#160;<span class="preprocessor">#define HID_DESCRIPTOR_HID 0x21</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a0e317fe63190a7be08676fcc92258902"> 78</a></span>&#160;<span class="preprocessor">#define HID_DESCRIPTOR_REPORT 0x22</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a4c0f76c9856d874ad38fe898aa753d28"> 79</a></span>&#160;<span class="preprocessor">#define HID_DESRIPTOR_PHY 0x23</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; </div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="comment">/* Protocol Selection */</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a624a087c75fbb1c89b4e37371dfd5713"> 82</a></span>&#160;<span class="preprocessor">#define USB_HID_BOOT_PROTOCOL 0x00</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a5153bc7974af5cfead6daea72b8b2f6a"> 83</a></span>&#160;<span class="preprocessor">#define HID_RPT_PROTOCOL 0x01</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="comment">/* HID Interface Class Code */</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="usbhid_8h.html#af5c77c554d065e04ff5b343c05a53fe6"> 86</a></span>&#160;<span class="preprocessor">#define HID_INTF 0x03</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160;<span class="comment">/* HID Interface Class SubClass Codes */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="usbhid_8h.html#af36d3643d6fb5f552eac19c356d9baf0"> 89</a></span>&#160;<span class="preprocessor">#define HID_BOOT_INTF_SUBCLASS 0x01</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;<span class="comment">/* HID Interface Class Protocol Codes */</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a30451214596073364b36950539ce45fe"> 92</a></span>&#160;<span class="preprocessor">#define USB_HID_PROTOCOL_NONE 0x00</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ad19f323d7585e5a41cc4f8125447552b"> 93</a></span>&#160;<span class="preprocessor">#define USB_HID_PROTOCOL_KEYBOARD 0x01</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a538d261ce3c8526071211fdbde1a67ec"> 94</a></span>&#160;<span class="preprocessor">#define USB_HID_PROTOCOL_MOUSE 0x02</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a9a71248c522943951b5af70ec9c14c02"> 96</a></span>&#160;<span class="preprocessor">#define HID_ITEM_TYPE_MAIN 0</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a8e56e8090f1af7aae473e8a8b6832fb8"> 97</a></span>&#160;<span class="preprocessor">#define HID_ITEM_TYPE_GLOBAL 1</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a0bfb0e326d9a01072c029cba788d6456"> 98</a></span>&#160;<span class="preprocessor">#define HID_ITEM_TYPE_LOCAL 2</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ae492b86b9ff1e40dfcccc904e9a30a13"> 99</a></span>&#160;<span class="preprocessor">#define HID_ITEM_TYPE_RESERVED 3</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a574c9762fdcc2eea83be135ae54a52a1"> 101</a></span>&#160;<span class="preprocessor">#define HID_LONG_ITEM_PREFIX 0xfe </span><span class="comment">// Long item prefix value</span></div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a0c5cd5d30f7be0479ac6dbcb5e41f99a"> 103</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_TAG 0xfc </span><span class="comment">// Main item tag mask</span></div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ab0c161ec8da9a2d5b4234efc6e66e1ab"> 105</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_INPUT 0x80 </span><span class="comment">// Main item Input tag value</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a16de52cc993408e12b019895d9676812"> 106</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_OUTPUT 0x90 </span><span class="comment">// Main item Output tag value</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a814680d5ac9f4928107ef8e551ea2a0f"> 107</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_FEATURE 0xb0 </span><span class="comment">// Main item Feature tag value</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a457b69fda34dfaa82e266bd93f094e13"> 108</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_COLLECTION 0xa0 </span><span class="comment">// Main item Collection tag value</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a31f12a2a73c8fb9303e8d05fe35dbdae"> 109</a></span>&#160;<span class="preprocessor">#define bmHID_MAIN_ITEM_END_COLLECTION 0xce </span><span class="comment">// Main item End Collection tag value</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a11681fe3d0edf3f376786e301bc77ac1"> 111</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_PHYSICAL 0</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="usbhid_8h.html#af406e4017fe65e288e3be1f4d9a77348"> 112</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_APPLICATION 1</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a6fc76c6d37f89a2ac571e1c76bf19ae0"> 113</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_LOGICAL 2</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="usbhid_8h.html#aa9a82c8196c0fe8ba4a891c9d9126e3e"> 114</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_REPORT 3</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="usbhid_8h.html#a9a69ff65a363bb0ef246c9f840312edf"> 115</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_NAMED_ARRAY 4</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="usbhid_8h.html#af6e75ab2e524eafad8f6481ba5b3f1b2"> 116</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_USAGE_SWITCH 5</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="usbhid_8h.html#ac9a63c95debeb34fc5ea25921d93c099"> 117</a></span>&#160;<span class="preprocessor">#define HID_MAIN_ITEM_COLLECTION_USAGE_MODIFIER 6</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="struct_hid_item_prefix.html"> 119</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="l00120"></a><span class="lineno"><a class="line" href="struct_hid_item_prefix.html#a4b0af0a3d7ac50bdbedcd5fae929200d"> 120</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a4b0af0a3d7ac50bdbedcd5fae929200d">bSize</a> : 2;</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="struct_hid_item_prefix.html#a16874c73fdb809e4c46407ca83684927"> 121</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a16874c73fdb809e4c46407ca83684927">bType</a> : 2;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="struct_hid_item_prefix.html#a9c8a256ca8e493adfce8772445fef01e"> 122</a></span>&#160; uint8_t <a class="code" href="struct_hid_item_prefix.html#a9c8a256ca8e493adfce8772445fef01e">bTag</a> : 4;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;};</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html"> 125</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="l00126"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#a5d578c79399be5da63790c7396fc5336"> 126</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="l00127"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#adaf8eafeb85f6aff94e211601e76ee8f"> 127</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="l00128"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#aeb93d03989043229774d2a6832e48628"> 128</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="l00129"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#a7acdfbb4a6b53046205cccae67fa26d4"> 129</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="l00130"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#abbe00a271ed4f5200399dd2ec5d18795"> 130</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="l00131"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#afd8eca62fe742513103795799d960d01"> 131</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="l00132"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#a9673a5c3415a2f43b488aa32181b1f4c"> 132</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="l00133"></a><span class="lineno"><a class="line" href="struct_main_item_i_o_feature.html#aaa20e71b24fe2de818a85b0cbdcba33e"> 133</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="l00134"></a><span class="lineno"> 134</span>&#160;};</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="keyword">class </span><a class="code" href="class_u_s_b_h_i_d.html">USBHID</a>;</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_h_i_d_report_parser.html"> 138</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="l00139"></a><span class="lineno"> 139</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="class_h_i_d_report_parser.html#af6c4b832fad296860bae406730e792da"> 140</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_h_i_d_report_parser.html#af6c4b832fad296860bae406730e792da">Parse</a>(<a class="code" href="class_u_s_b_h_i_d.html">USBHID</a> *hid, <span class="keywordtype">bool</span> is_rpt_id, uint8_t len, uint8_t *buf) = 0;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;};</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="line" href="class_u_s_b_h_i_d.html"> 143</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_u_s_b_h_i_d.html">USBHID</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="l00144"></a><span class="lineno"> 144</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#abb120ee1258c49b4af0fbd59ae6903f5"> 145</a></span>&#160; <a class="code" href="class_u_s_b.html">USB</a> *<a class="code" href="class_u_s_b_h_i_d.html#abb120ee1258c49b4af0fbd59ae6903f5">pUsb</a>; <span class="comment">// USB class instance pointer</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a35fe591ddd550b290d1e88c321617ab6"> 146</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a35fe591ddd550b290d1e88c321617ab6">bAddress</a>; <span class="comment">// address</span></div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a722462978813b2154698516b729e834d"> 149</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a722462978813b2154698516b729e834d">epInterruptInIndex</a> = 1; <span class="comment">// InterruptIN endpoint index</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#af9ae556d2a7a03309db403e45eab96e8"> 150</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h_i_d.html#af9ae556d2a7a03309db403e45eab96e8">epInterruptOutIndex</a> = 2; <span class="comment">// InterruptOUT endpoint index</span></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"><a class="line" href="class_u_s_b_h_i_d.html#a6a47b8c02d90076852e079acfb62ae46"> 152</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a6a47b8c02d90076852e079acfb62ae46">maxHidInterfaces</a> = 5;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a7cd9a3226f72cc965dcac27c3bd25ed9"> 153</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a7cd9a3226f72cc965dcac27c3bd25ed9">maxEpPerInterface</a> = 2;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a17c4235f411847c34c77977bbd3e3324"> 154</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a17c4235f411847c34c77977bbd3e3324">totalEndpoints</a> = (<a class="code" href="class_u_s_b_h_i_d.html#a6a47b8c02d90076852e079acfb62ae46">maxHidInterfaces</a> * <a class="code" href="class_u_s_b_h_i_d.html#a7cd9a3226f72cc965dcac27c3bd25ed9">maxEpPerInterface</a> + 1); <span class="comment">// We need to make room for the control endpoint</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_u_s_b_h_i_d.html#a046f84af88dab2e9063db0bf36308cd4">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="l00157"></a><span class="lineno"> 157</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_u_s_b_h_i_d.html#aa44154dd3ee08a39ea4c70d984ff7d9f">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="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a4be1a2ac35ac7c4babca78b8148116ec"> 159</a></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_u_s_b_h_i_d.html#a4be1a2ac35ac7c4babca78b8148116ec">GetReportParser</a>(uint8_t <span class="keywordtype">id</span> __attribute__((unused))) {</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">return</span> NULL;</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; };</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a2d8aa4af4c7d0470d6643fa94e9b39dd"> 165</a></span>&#160; <a class="code" href="class_u_s_b_h_i_d.html#a2d8aa4af4c7d0470d6643fa94e9b39dd">USBHID</a>(<a class="code" href="class_u_s_b.html">USB</a> *pusb) : <a class="code" href="class_u_s_b_h_i_d.html#abb120ee1258c49b4af0fbd59ae6903f5">pUsb</a>(pusb) {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; };</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#ad90bc410a083495a4ddefc2000f67dbd"> 168</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_u_s_b.html">USB</a>* <a class="code" href="class_u_s_b_h_i_d.html#ad90bc410a083495a4ddefc2000f67dbd">GetUsb</a>() {</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">return</span> <a class="code" href="class_u_s_b_h_i_d.html#abb120ee1258c49b4af0fbd59ae6903f5">pUsb</a>;</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; };</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; </div>
<div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="class_u_s_b_h_i_d.html#a17a732bbb37d8f21181d02d515f40499"> 172</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_u_s_b_h_i_d.html#a17a732bbb37d8f21181d02d515f40499">SetReportParser</a>(uint8_t <span class="keywordtype">id</span> __attribute__((unused)), <a class="code" href="class_h_i_d_report_parser.html">HIDReportParser</a> *prs __attribute__((unused))) {</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; };</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a0af861b780529c51c97c00dc89d56149">SetProtocol</a>(uint8_t iface, uint8_t protocol);</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a93f4eec0d75b7abcac5f92164e588cb3">GetProtocol</a>(uint8_t iface, uint8_t* dataptr);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a564e27e86247c8e45bc2b2b037921d04">GetIdle</a>(uint8_t iface, uint8_t reportID, uint8_t* dataptr);</div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#aefe5089655e55bd8f32c796818778d75">SetIdle</a>(uint8_t iface, uint8_t reportID, uint8_t duration);</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; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a69812b5f7d3b28446826d9d5ca4a62d7">GetReportDescr</a>(uint16_t wIndex, <a class="code" href="class_u_s_b_read_parser.html">USBReadParser</a> *parser = NULL);</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"><a class="line" href="class_u_s_b_h_i_d.html#af7536f1ee5de5645c6df5140ca9f345a"> 183</a></span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#af7536f1ee5de5645c6df5140ca9f345a">GetHidDescr</a>(uint8_t ep, uint16_t nbytes, uint8_t* dataptr);</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a1dab89b069f2cae6a63a151b2ffdd35a">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="l00185"></a><span class="lineno"> 185</span>&#160; uint8_t <a class="code" href="class_u_s_b_h_i_d.html#a66e217a1d1237239514ce6149e46cc56">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="l00186"></a><span class="lineno"> 186</span>&#160;};</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// __USBHID_H__</span></div>
<div class="ttc" id="a_usb_8h_html"><div class="ttname"><a href="_usb_8h.html">Usb.h</a></div></div>
<div class="ttc" id="aclass_h_i_d_report_parser_html"><div class="ttname"><a href="class_h_i_d_report_parser.html">HIDReportParser</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00138">usbhid.h:138</a></div></div>
<div class="ttc" id="aclass_h_i_d_report_parser_html_af6c4b832fad296860bae406730e792da"><div class="ttname"><a href="class_h_i_d_report_parser.html#af6c4b832fad296860bae406730e792da">HIDReportParser::Parse</a></div><div class="ttdeci">virtual void Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)=0</div></div>
<div class="ttc" id="aclass_u_s_b_device_config_html"><div class="ttname"><a href="class_u_s_b_device_config.html">USBDeviceConfig</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00136">UsbCore.h:136</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html"><div class="ttname"><a href="class_u_s_b_h_i_d.html">USBHID</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00143">usbhid.h:143</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a046f84af88dab2e9063db0bf36308cd4"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a046f84af88dab2e9063db0bf36308cd4">USBHID::PrintEndpointDescriptor</a></div><div class="ttdeci">void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR *ep_ptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00074">usbhid.cpp:74</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a0af861b780529c51c97c00dc89d56149"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a0af861b780529c51c97c00dc89d56149">USBHID::SetProtocol</a></div><div class="ttdeci">uint8_t SetProtocol(uint8_t iface, uint8_t protocol)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00066">usbhid.cpp:66</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a17a732bbb37d8f21181d02d515f40499"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a17a732bbb37d8f21181d02d515f40499">USBHID::SetReportParser</a></div><div class="ttdeci">virtual bool SetReportParser(uint8_t id, HIDReportParser *prs)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00172">usbhid.h:172</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a17c4235f411847c34c77977bbd3e3324"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a17c4235f411847c34c77977bbd3e3324">USBHID::totalEndpoints</a></div><div class="ttdeci">static const uint8_t totalEndpoints</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00154">usbhid.h:154</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a1dab89b069f2cae6a63a151b2ffdd35a"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a1dab89b069f2cae6a63a151b2ffdd35a">USBHID::GetReport</a></div><div class="ttdeci">uint8_t GetReport(uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00054">usbhid.cpp:54</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a2d8aa4af4c7d0470d6643fa94e9b39dd"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a2d8aa4af4c7d0470d6643fa94e9b39dd">USBHID::USBHID</a></div><div class="ttdeci">USBHID(USB *pusb)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00165">usbhid.h:165</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a35fe591ddd550b290d1e88c321617ab6"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a35fe591ddd550b290d1e88c321617ab6">USBHID::bAddress</a></div><div class="ttdeci">uint8_t bAddress</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00146">usbhid.h:146</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a4be1a2ac35ac7c4babca78b8148116ec"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a4be1a2ac35ac7c4babca78b8148116ec">USBHID::GetReportParser</a></div><div class="ttdeci">virtual HIDReportParser * GetReportParser(uint8_t id)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00159">usbhid.h:159</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a564e27e86247c8e45bc2b2b037921d04"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a564e27e86247c8e45bc2b2b037921d04">USBHID::GetIdle</a></div><div class="ttdeci">uint8_t GetIdle(uint8_t iface, uint8_t reportID, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00058">usbhid.cpp:58</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a66e217a1d1237239514ce6149e46cc56"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a66e217a1d1237239514ce6149e46cc56">USBHID::SetReport</a></div><div class="ttdeci">uint8_t SetReport(uint8_t ep, uint8_t iface, uint8_t report_type, uint8_t report_id, uint16_t nbytes, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00050">usbhid.cpp:50</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a69812b5f7d3b28446826d9d5ca4a62d7"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a69812b5f7d3b28446826d9d5ca4a62d7">USBHID::GetReportDescr</a></div><div class="ttdeci">uint8_t GetReportDescr(uint16_t wIndex, USBReadParser *parser=NULL)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00034">usbhid.cpp:34</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a6a47b8c02d90076852e079acfb62ae46"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a6a47b8c02d90076852e079acfb62ae46">USBHID::maxHidInterfaces</a></div><div class="ttdeci">static const uint8_t maxHidInterfaces</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00152">usbhid.h:152</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a722462978813b2154698516b729e834d"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a722462978813b2154698516b729e834d">USBHID::epInterruptInIndex</a></div><div class="ttdeci">static const uint8_t epInterruptInIndex</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00149">usbhid.h:149</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a7cd9a3226f72cc965dcac27c3bd25ed9"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a7cd9a3226f72cc965dcac27c3bd25ed9">USBHID::maxEpPerInterface</a></div><div class="ttdeci">static const uint8_t maxEpPerInterface</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00153">usbhid.h:153</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_a93f4eec0d75b7abcac5f92164e588cb3"><div class="ttname"><a href="class_u_s_b_h_i_d.html#a93f4eec0d75b7abcac5f92164e588cb3">USBHID::GetProtocol</a></div><div class="ttdeci">uint8_t GetProtocol(uint8_t iface, uint8_t *dataptr)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00070">usbhid.cpp:70</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_aa44154dd3ee08a39ea4c70d984ff7d9f"><div class="ttname"><a href="class_u_s_b_h_i_d.html#aa44154dd3ee08a39ea4c70d984ff7d9f">USBHID::PrintHidDescriptor</a></div><div class="ttdeci">void PrintHidDescriptor(const USB_HID_DESCRIPTOR *pDesc)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00090">usbhid.cpp:90</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_abb120ee1258c49b4af0fbd59ae6903f5"><div class="ttname"><a href="class_u_s_b_h_i_d.html#abb120ee1258c49b4af0fbd59ae6903f5">USBHID::pUsb</a></div><div class="ttdeci">USB * pUsb</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00145">usbhid.h:145</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_ad90bc410a083495a4ddefc2000f67dbd"><div class="ttname"><a href="class_u_s_b_h_i_d.html#ad90bc410a083495a4ddefc2000f67dbd">USBHID::GetUsb</a></div><div class="ttdeci">const USB * GetUsb()</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00168">usbhid.h:168</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_aefe5089655e55bd8f32c796818778d75"><div class="ttname"><a href="class_u_s_b_h_i_d.html#aefe5089655e55bd8f32c796818778d75">USBHID::SetIdle</a></div><div class="ttdeci">uint8_t SetIdle(uint8_t iface, uint8_t reportID, uint8_t duration)</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8cpp_source.html#l00062">usbhid.cpp:62</a></div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_af7536f1ee5de5645c6df5140ca9f345a"><div class="ttname"><a href="class_u_s_b_h_i_d.html#af7536f1ee5de5645c6df5140ca9f345a">USBHID::GetHidDescr</a></div><div class="ttdeci">uint8_t GetHidDescr(uint8_t ep, uint16_t nbytes, uint8_t *dataptr)</div></div>
<div class="ttc" id="aclass_u_s_b_h_i_d_html_af9ae556d2a7a03309db403e45eab96e8"><div class="ttname"><a href="class_u_s_b_h_i_d.html#af9ae556d2a7a03309db403e45eab96e8">USBHID::epInterruptOutIndex</a></div><div class="ttdeci">static const uint8_t epInterruptOutIndex</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00150">usbhid.h:150</a></div></div>
<div class="ttc" id="aclass_u_s_b_html"><div class="ttname"><a href="class_u_s_b.html">USB</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00212">UsbCore.h:212</a></div></div>
<div class="ttc" id="aclass_u_s_b_read_parser_html"><div class="ttname"><a href="class_u_s_b_read_parser.html">USBReadParser</a></div><div class="ttdef"><b>Definition:</b> <a href="_usb_core_8h_source.html#l00207">UsbCore.h:207</a></div></div>
<div class="ttc" id="aclass_usb_config_xtracter_html"><div class="ttname"><a href="class_usb_config_xtracter.html">UsbConfigXtracter</a></div><div class="ttdef"><b>Definition:</b> <a href="confdescparser_8h_source.html#l00030">confdescparser.h:30</a></div></div>
<div class="ttc" id="ahidusagestr_8h_html"><div class="ttname"><a href="hidusagestr_8h.html">hidusagestr.h</a></div></div>
<div class="ttc" id="astruct_hid_item_prefix_html"><div class="ttname"><a href="struct_hid_item_prefix.html">HidItemPrefix</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00119">usbhid.h:119</a></div></div>
<div class="ttc" id="astruct_hid_item_prefix_html_a16874c73fdb809e4c46407ca83684927"><div class="ttname"><a href="struct_hid_item_prefix.html#a16874c73fdb809e4c46407ca83684927">HidItemPrefix::bType</a></div><div class="ttdeci">uint8_t bType</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00121">usbhid.h:121</a></div></div>
<div class="ttc" id="astruct_hid_item_prefix_html_a4b0af0a3d7ac50bdbedcd5fae929200d"><div class="ttname"><a href="struct_hid_item_prefix.html#a4b0af0a3d7ac50bdbedcd5fae929200d">HidItemPrefix::bSize</a></div><div class="ttdeci">uint8_t bSize</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00120">usbhid.h:120</a></div></div>
<div class="ttc" id="astruct_hid_item_prefix_html_a9c8a256ca8e493adfce8772445fef01e"><div class="ttname"><a href="struct_hid_item_prefix.html#a9c8a256ca8e493adfce8772445fef01e">HidItemPrefix::bTag</a></div><div class="ttdeci">uint8_t bTag</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00122">usbhid.h:122</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html"><div class="ttname"><a href="struct_main_item_i_o_feature.html">MainItemIOFeature</a></div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00125">usbhid.h:125</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_a5d578c79399be5da63790c7396fc5336"><div class="ttname"><a href="struct_main_item_i_o_feature.html#a5d578c79399be5da63790c7396fc5336">MainItemIOFeature::bmIsConstantOrData</a></div><div class="ttdeci">uint8_t bmIsConstantOrData</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00126">usbhid.h:126</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_a7acdfbb4a6b53046205cccae67fa26d4"><div class="ttname"><a href="struct_main_item_i_o_feature.html#a7acdfbb4a6b53046205cccae67fa26d4">MainItemIOFeature::bmIsWrapOrNoWrap</a></div><div class="ttdeci">uint8_t bmIsWrapOrNoWrap</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00129">usbhid.h:129</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_a9673a5c3415a2f43b488aa32181b1f4c"><div class="ttname"><a href="struct_main_item_i_o_feature.html#a9673a5c3415a2f43b488aa32181b1f4c">MainItemIOFeature::bmIsNullOrNoNull</a></div><div class="ttdeci">uint8_t bmIsNullOrNoNull</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00132">usbhid.h:132</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_aaa20e71b24fe2de818a85b0cbdcba33e"><div class="ttname"><a href="struct_main_item_i_o_feature.html#aaa20e71b24fe2de818a85b0cbdcba33e">MainItemIOFeature::bmIsVolatileOrNonVolatile</a></div><div class="ttdeci">uint8_t bmIsVolatileOrNonVolatile</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00133">usbhid.h:133</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_abbe00a271ed4f5200399dd2ec5d18795"><div class="ttname"><a href="struct_main_item_i_o_feature.html#abbe00a271ed4f5200399dd2ec5d18795">MainItemIOFeature::bmIsNonLonearOrLinear</a></div><div class="ttdeci">uint8_t bmIsNonLonearOrLinear</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00130">usbhid.h:130</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_adaf8eafeb85f6aff94e211601e76ee8f"><div class="ttname"><a href="struct_main_item_i_o_feature.html#adaf8eafeb85f6aff94e211601e76ee8f">MainItemIOFeature::bmIsArrayOrVariable</a></div><div class="ttdeci">uint8_t bmIsArrayOrVariable</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00127">usbhid.h:127</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_aeb93d03989043229774d2a6832e48628"><div class="ttname"><a href="struct_main_item_i_o_feature.html#aeb93d03989043229774d2a6832e48628">MainItemIOFeature::bmIsRelativeOrAbsolute</a></div><div class="ttdeci">uint8_t bmIsRelativeOrAbsolute</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00128">usbhid.h:128</a></div></div>
<div class="ttc" id="astruct_main_item_i_o_feature_html_afd8eca62fe742513103795799d960d01"><div class="ttname"><a href="struct_main_item_i_o_feature.html#afd8eca62fe742513103795799d960d01">MainItemIOFeature::bmIsNoPreferedOrPrefered</a></div><div class="ttdeci">uint8_t bmIsNoPreferedOrPrefered</div><div class="ttdef"><b>Definition:</b> <a href="usbhid_8h_source.html#l00131">usbhid.h:131</a></div></div>
<div class="ttc" id="astruct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a 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></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00148">usb_ch9.h:148</a></div></div>
<div class="ttc" id="astruct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html">USB_HID_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00158">usb_ch9.h:158</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>