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

301 lines
70 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: usb_ch9.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">usb_ch9.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="usb__ch9_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 program is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">the Free Software Foundation; either version 2 of the License, or</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">(at your option) any later version.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment">MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">GNU General Public License for more details.</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">You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">along with this program; if not, write to the Free Software</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</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="comment">Contact information</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">-------------------</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">Circuits At Home, LTD</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">Web : http://www.circuitsathome.com</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment">e-mail : support@circuitsathome.com</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#if !defined(_usb_h_) || defined(_ch9_h_)</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#error &quot;Never include usb_ch9.h directly; include Usb.h instead&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">/* USB chapter 9 structures */</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#define _ch9_h_</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="comment">/* Misc.USB constants */</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ab7e334b0d473aca9604a2522c0702e78"> 33</a></span>&#160;<span class="preprocessor">#define DEV_DESCR_LEN 18 </span><span class="comment">//device descriptor length</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a7256578391c91b980eec63daa6e87b6b"> 34</a></span>&#160;<span class="preprocessor">#define CONF_DESCR_LEN 9 </span><span class="comment">//configuration descriptor length</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a4922a4b2d56a973f3704ce1775cf9d37"> 35</a></span>&#160;<span class="preprocessor">#define INTR_DESCR_LEN 9 </span><span class="comment">//interface descriptor length</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a83547c94285cfb215336a3c44aeea1b9"> 36</a></span>&#160;<span class="preprocessor">#define EP_DESCR_LEN 7 </span><span class="comment">//endpoint descriptor length</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="comment">/* Standard Device Requests */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a062f3147a1bae954b642b915827b3f3f"> 40</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_GET_STATUS 0 </span><span class="comment">// Standard Device Request - GET STATUS</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ab9fe860caa1f21c9410984a24bf57c7c"> 41</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_CLEAR_FEATURE 1 </span><span class="comment">// Standard Device Request - CLEAR FEATURE</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#aa2b4d305dcd185cc1242e94ee78eea25"> 42</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SET_FEATURE 3 </span><span class="comment">// Standard Device Request - SET FEATURE</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac87659819bfd6491120c819fae2d46bc"> 43</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SET_ADDRESS 5 </span><span class="comment">// Standard Device Request - SET ADDRESS</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a3572226ee2137c7fbf7487a02b0f560f"> 44</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_GET_DESCRIPTOR 6 </span><span class="comment">// Standard Device Request - GET DESCRIPTOR</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a3c80fdedd69586ccf2894f5bd4638252"> 45</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SET_DESCRIPTOR 7 </span><span class="comment">// Standard Device Request - SET DESCRIPTOR</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a341ed4aff1f0d5a1a4a4f17cb606d08d"> 46</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_GET_CONFIGURATION 8 </span><span class="comment">// Standard Device Request - GET CONFIGURATION</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#aadef005acc40340955d34d9767ef297c"> 47</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SET_CONFIGURATION 9 </span><span class="comment">// Standard Device Request - SET CONFIGURATION</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a25550f44898d9c9a3bf0a7814af7fe96"> 48</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_GET_INTERFACE 10 </span><span class="comment">// Standard Device Request - GET INTERFACE</span></div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#af8d2ea632916bfc2a7628f63d3f643aa"> 49</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SET_INTERFACE 11 </span><span class="comment">// Standard Device Request - SET INTERFACE</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a7497da1d974b456583b64889a2b5dd04"> 50</a></span>&#160;<span class="preprocessor">#define USB_REQUEST_SYNCH_FRAME 12 </span><span class="comment">// Standard Device Request - SYNCH FRAME</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a0a75e9871273bf2c40d1d9aa1641c8ce"> 52</a></span>&#160;<span class="preprocessor">#define USB_FEATURE_ENDPOINT_HALT 0 </span><span class="comment">// CLEAR/SET FEATURE - Endpoint Halt</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#define USB_FEATURE_DEVICE_REMOTE_WAKEUP 1 </span><span class="comment">// CLEAR/SET FEATURE - Device remote wake-up</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#define USB_FEATURE_TEST_MODE 2 </span><span class="comment">// CLEAR/SET FEATURE - Test mode</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="comment">/* Setup Data Constants */</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="usb__ch9_8h.html#a610dad02930a3061c746f84885e1e11e"> 58</a></span>&#160;<span class="preprocessor">#define USB_SETUP_HOST_TO_DEVICE 0x00 </span><span class="comment">// Device Request bmRequestType transfer direction - host to device transfer</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a35c2a529dc87a274b2eb6f9e33682449"> 59</a></span>&#160;<span class="preprocessor">#define USB_SETUP_DEVICE_TO_HOST 0x80 </span><span class="comment">// Device Request bmRequestType transfer direction - device to host transfer</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a3b51a35acaa76cafbb987c07186a7868"> 60</a></span>&#160;<span class="preprocessor">#define USB_SETUP_TYPE_STANDARD 0x00 </span><span class="comment">// Device Request bmRequestType type - standard</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#acf3fd30992e9fe01f1bac9aaa7fea61b"> 61</a></span>&#160;<span class="preprocessor">#define USB_SETUP_TYPE_CLASS 0x20 </span><span class="comment">// Device Request bmRequestType type - class</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a876bdd74d8bfb072121b9643556271ba"> 62</a></span>&#160;<span class="preprocessor">#define USB_SETUP_TYPE_VENDOR 0x40 </span><span class="comment">// Device Request bmRequestType type - vendor</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ad48131dc5ca47b4b2def65e7bbc8442f"> 63</a></span>&#160;<span class="preprocessor">#define USB_SETUP_RECIPIENT_DEVICE 0x00 </span><span class="comment">// Device Request bmRequestType recipient - device</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a59754621c21db801e11513ba06a3a02e"> 64</a></span>&#160;<span class="preprocessor">#define USB_SETUP_RECIPIENT_INTERFACE 0x01 </span><span class="comment">// Device Request bmRequestType recipient - interface</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac6ef27ac78140749f3607246f21c1471"> 65</a></span>&#160;<span class="preprocessor">#define USB_SETUP_RECIPIENT_ENDPOINT 0x02 </span><span class="comment">// Device Request bmRequestType recipient - endpoint</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#aa1a71b2e05ba5682c956d8dfdf01d40b"> 66</a></span>&#160;<span class="preprocessor">#define USB_SETUP_RECIPIENT_OTHER 0x03 </span><span class="comment">// Device Request bmRequestType recipient - other</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">/* USB descriptors */</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac6d0566773ed4549fe1a7a932e6c46de"> 70</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_DEVICE 0x01 </span><span class="comment">// bDescriptorType for a Device Descriptor.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#aa17b365c4eb8bd2f6a4d4e4fb5f881c7"> 71</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_CONFIGURATION 0x02 </span><span class="comment">// bDescriptorType for a Configuration Descriptor.</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#abbad38caa1ca9c52f47adccd3a850aed"> 72</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_STRING 0x03 </span><span class="comment">// bDescriptorType for a String Descriptor.</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a5856eef11136823c671407f77cc5d254"> 73</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_INTERFACE 0x04 </span><span class="comment">// bDescriptorType for an Interface Descriptor.</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac3f574f82929eedc3386195f9a941203"> 74</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_ENDPOINT 0x05 </span><span class="comment">// bDescriptorType for an Endpoint Descriptor.</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#afd341d3128818c2db68a3523118e0820"> 75</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_DEVICE_QUALIFIER 0x06 </span><span class="comment">// bDescriptorType for a Device Qualifier.</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a23e9c1e9645156958e80e9aa2ee77ef7"> 76</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_OTHER_SPEED 0x07 </span><span class="comment">// bDescriptorType for a Other Speed Configuration.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ab02fac418606f02b4681c3302fbbce07"> 77</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_INTERFACE_POWER 0x08 </span><span class="comment">// bDescriptorType for Interface Power.</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac75fbfa446e248951836d6b6bfad44d0"> 78</a></span>&#160;<span class="preprocessor">#define USB_DESCRIPTOR_OTG 0x09 </span><span class="comment">// bDescriptorType for an OTG Descriptor.</span></div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a90140ca7ead37fd62faeb395f0942a67"> 80</a></span>&#160;<span class="preprocessor">#define HID_DESCRIPTOR_HID 0x21</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;<span class="comment">/* OTG SET FEATURE Constants */</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ab1eb008c2545555250224ffdd22e6ef7"> 85</a></span>&#160;<span class="preprocessor">#define OTG_FEATURE_B_HNP_ENABLE 3 </span><span class="comment">// SET FEATURE OTG - Enable B device to perform HNP</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac95e8be488ed9ca8ebf9541306fe070b"> 86</a></span>&#160;<span class="preprocessor">#define OTG_FEATURE_A_HNP_SUPPORT 4 </span><span class="comment">// SET FEATURE OTG - A device supports HNP</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a4c05deae742762f3110366a7bb8bffc2"> 87</a></span>&#160;<span class="preprocessor">#define OTG_FEATURE_A_ALT_HNP_SUPPORT 5 </span><span class="comment">// SET FEATURE OTG - Another port on the A device supports HNP</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160;<span class="comment">/* USB Endpoint Transfer Types */</span></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#aca5ae035469fa5e3d238eea0942bba88"> 90</a></span>&#160;<span class="preprocessor">#define USB_TRANSFER_TYPE_CONTROL 0x00 </span><span class="comment">// Endpoint is a control endpoint.</span></div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ae0865fa52b39929c055e59559e138392"> 91</a></span>&#160;<span class="preprocessor">#define USB_TRANSFER_TYPE_ISOCHRONOUS 0x01 </span><span class="comment">// Endpoint is an isochronous endpoint.</span></div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a54c90d3ca8c3f7911d9d8cb17f59d939"> 92</a></span>&#160;<span class="preprocessor">#define USB_TRANSFER_TYPE_BULK 0x02 </span><span class="comment">// Endpoint is a bulk endpoint.</span></div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac80ae240a4a703b554aa8edee201495f"> 93</a></span>&#160;<span class="preprocessor">#define USB_TRANSFER_TYPE_INTERRUPT 0x03 </span><span class="comment">// Endpoint is an interrupt endpoint.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ac1b1bcdd6bd4e8c5a65052e914e028d5"> 94</a></span>&#160;<span class="preprocessor">#define bmUSB_TRANSFER_TYPE 0x03 </span><span class="comment">// bit mask to separate transfer type from ISO attributes</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"> 96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;<span class="comment">/* Standard Feature Selectors for CLEAR_FEATURE Requests */</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a3ff0518fb298c9c9b556f59c0468ec0d"> 98</a></span>&#160;<span class="preprocessor">#define USB_FEATURE_ENDPOINT_STALL 0 </span><span class="comment">// Endpoint recipient</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#ab75da7fec6dd00924f1d9f4e3c587a6f"> 99</a></span>&#160;<span class="preprocessor">#define USB_FEATURE_DEVICE_REMOTE_WAKEUP 1 </span><span class="comment">// Device recipient</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="usb__ch9_8h.html#a90a1a76a81c04849dc897dacf6c3a213"> 100</a></span>&#160;<span class="preprocessor">#define USB_FEATURE_TEST_MODE 2 </span><span class="comment">// Device recipient</span></div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;<span class="comment">/* descriptor data structures */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;<span class="comment">/* Device descriptor structure */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html"> 105</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a951dd86a1fee895f356a0be0fc8c0d8f"> 106</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a951dd86a1fee895f356a0be0fc8c0d8f">bLength</a>; <span class="comment">// Length of this descriptor.</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aad465b71adef34630171e88b0a3664a3"> 107</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aad465b71adef34630171e88b0a3664a3">bDescriptorType</a>; <span class="comment">// DEVICE descriptor type (USB_DESCRIPTOR_DEVICE).</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a621148cd71148fb15e136010480a34ac"> 108</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a621148cd71148fb15e136010480a34ac">bcdUSB</a>; <span class="comment">// USB Spec Release Number (BCD).</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#afa7047f0318ab6df92a12291511cc1ce"> 109</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#afa7047f0318ab6df92a12291511cc1ce">bDeviceClass</a>; <span class="comment">// Class code (assigned by the USB-IF). 0xFF-Vendor specific.</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af01535d145805f4bfae66e21f1fc652d"> 110</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af01535d145805f4bfae66e21f1fc652d">bDeviceSubClass</a>; <span class="comment">// Subclass code (assigned by the USB-IF).</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af205ea8c5729e0ddbf4dcbdf1636fe57"> 111</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af205ea8c5729e0ddbf4dcbdf1636fe57">bDeviceProtocol</a>; <span class="comment">// Protocol code (assigned by the USB-IF). 0xFF-Vendor specific.</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a92d96e9016c96043dccf56872d13a628"> 112</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a92d96e9016c96043dccf56872d13a628">bMaxPacketSize0</a>; <span class="comment">// Maximum packet size for endpoint 0.</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ae3c7088fe6f7b521132d8f2b95f958bc"> 113</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ae3c7088fe6f7b521132d8f2b95f958bc">idVendor</a>; <span class="comment">// Vendor ID (assigned by the USB-IF).</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#adaec05748124a104c3d49008433719ba"> 114</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#adaec05748124a104c3d49008433719ba">idProduct</a>; <span class="comment">// Product ID (assigned by the manufacturer).</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aa4e565c598b6605cbcfe8cab66f99e65"> 115</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aa4e565c598b6605cbcfe8cab66f99e65">bcdDevice</a>; <span class="comment">// Device release number (BCD).</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ad16528e2a4018962f8d7d97036386eac"> 116</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ad16528e2a4018962f8d7d97036386eac">iManufacturer</a>; <span class="comment">// Index of String Descriptor describing the manufacturer.</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a63e19361f9fe25a6a2553f7d10569174"> 117</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a63e19361f9fe25a6a2553f7d10569174">iProduct</a>; <span class="comment">// Index of String Descriptor describing the product.</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ac9d321b21797ac7a6190ae9a2ffa1e3e"> 118</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ac9d321b21797ac7a6190ae9a2ffa1e3e">iSerialNumber</a>; <span class="comment">// Index of String Descriptor with the device&#39;s serial number.</span></div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ab1b8db3992e0dceb2ba86f3bab1e5bca"> 119</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ab1b8db3992e0dceb2ba86f3bab1e5bca">bNumConfigurations</a>; <span class="comment">// Number of possible configurations.</span></div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;} __attribute__((packed)) <a class="code" href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_DEVICE_DESCRIPTOR</a>;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;<span class="comment">/* Configuration descriptor structure */</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html"> 123</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a2ba304d3cb0f6b506c190ca8391fd1a6"> 124</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a2ba304d3cb0f6b506c190ca8391fd1a6">bLength</a>; <span class="comment">// Length of this descriptor.</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a28bd3308c28df6445b4b63bdaade83c8"> 125</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a28bd3308c28df6445b4b63bdaade83c8">bDescriptorType</a>; <span class="comment">// CONFIGURATION descriptor type (USB_DESCRIPTOR_CONFIGURATION).</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a39499f3dd4e3f1ef1d8a2c9b430bc11b"> 126</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a39499f3dd4e3f1ef1d8a2c9b430bc11b">wTotalLength</a>; <span class="comment">// Total length of all descriptors for this configuration.</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#abd647927a872ac856c9f5aaf624bb99f"> 127</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#abd647927a872ac856c9f5aaf624bb99f">bNumInterfaces</a>; <span class="comment">// Number of interfaces in this configuration.</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a568d08f2ae98670a707489645a67746b"> 128</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a568d08f2ae98670a707489645a67746b">bConfigurationValue</a>; <span class="comment">// Value of this configuration (1 based).</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a488103d763db8744459d2c94995458b0"> 129</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a488103d763db8744459d2c94995458b0">iConfiguration</a>; <span class="comment">// Index of String Descriptor describing the configuration.</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#ac2f4c62d572fe371be5680962e42a8d3"> 130</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#ac2f4c62d572fe371be5680962e42a8d3">bmAttributes</a>; <span class="comment">// Configuration characteristics.</span></div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a3d6088be2999c1189f2a3eb56be51832"> 131</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a3d6088be2999c1189f2a3eb56be51832">bMaxPower</a>; <span class="comment">// Maximum power consumed by this configuration.</span></div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;} __attribute__((packed)) <a class="code" href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html">USB_CONFIGURATION_DESCRIPTOR</a>;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="comment">/* Interface descriptor structure */</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html"> 135</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad1a0f98931b5e094d33c8c31d4e29ad6"> 136</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad1a0f98931b5e094d33c8c31d4e29ad6">bLength</a>; <span class="comment">// Length of this descriptor.</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a2515bf5c49f849965030c94f50dea285"> 137</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a2515bf5c49f849965030c94f50dea285">bDescriptorType</a>; <span class="comment">// INTERFACE descriptor type (USB_DESCRIPTOR_INTERFACE).</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3ae5da44842f99bbde5cca9b20c6911a"> 138</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3ae5da44842f99bbde5cca9b20c6911a">bInterfaceNumber</a>; <span class="comment">// Number of this interface (0 based).</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a0ddcf6c9bc46ed757e9e15086746b5a1"> 139</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a0ddcf6c9bc46ed757e9e15086746b5a1">bAlternateSetting</a>; <span class="comment">// Value of this alternate interface setting.</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3268bc05bb0147e19f97e50e702fc141"> 140</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3268bc05bb0147e19f97e50e702fc141">bNumEndpoints</a>; <span class="comment">// Number of endpoints in this interface.</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a4d352604355f617fef9509951d573356"> 141</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a4d352604355f617fef9509951d573356">bInterfaceClass</a>; <span class="comment">// Class code (assigned by the USB-IF). 0xFF-Vendor specific.</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad5b51ed2e6540dd58085f10a2440970e"> 142</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad5b51ed2e6540dd58085f10a2440970e">bInterfaceSubClass</a>; <span class="comment">// Subclass code (assigned by the USB-IF).</span></div>
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#afcce1d75b7b110cc0d11e3328d9c7204"> 143</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#afcce1d75b7b110cc0d11e3328d9c7204">bInterfaceProtocol</a>; <span class="comment">// Protocol code (assigned by the USB-IF). 0xFF-Vendor specific.</span></div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a391ad3184a29ddbe1e02ff1feca8f64a"> 144</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a391ad3184a29ddbe1e02ff1feca8f64a">iInterface</a>; <span class="comment">// Index of String Descriptor describing the interface.</span></div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;} __attribute__((packed)) <a class="code" href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_INTERFACE_DESCRIPTOR</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="comment">/* Endpoint descriptor structure */</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html"> 148</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a55263a9cc9dc17abc37226ac8a471ad0"> 149</a></span>&#160; uint8_t <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#a55263a9cc9dc17abc37226ac8a471ad0">bLength</a>; <span class="comment">// Length of this descriptor.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af39d036ab903a96b9d4d56b879555d6c"> 150</a></span>&#160; uint8_t <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#af39d036ab903a96b9d4d56b879555d6c">bDescriptorType</a>; <span class="comment">// ENDPOINT descriptor type (USB_DESCRIPTOR_ENDPOINT).</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a23fbb539d72d10a6cb12efedf7d3457c"> 151</a></span>&#160; uint8_t <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#a23fbb539d72d10a6cb12efedf7d3457c">bEndpointAddress</a>; <span class="comment">// Endpoint address. Bit 7 indicates direction (0=OUT, 1=IN).</span></div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a8ee7f1bafac335258c6e742969387f57"> 152</a></span>&#160; uint8_t <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#a8ee7f1bafac335258c6e742969387f57">bmAttributes</a>; <span class="comment">// Endpoint transfer type.</span></div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#af34105fa6bd0029d9c6b73d85f7853c6"> 153</a></span>&#160; uint16_t <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#af34105fa6bd0029d9c6b73d85f7853c6">wMaxPacketSize</a>; <span class="comment">// Maximum packet size.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="struct_u_s_b___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r.html#a95cd9669dee9cab375a7c5e62284a01b"> 154</a></span>&#160; uint8_t <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#a95cd9669dee9cab375a7c5e62284a01b">bInterval</a>; <span class="comment">// Polling interval in frames.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;} __attribute__((packed)) <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>;</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="comment">/* HID descriptor */</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html"> 158</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a8b525ca82d81716c699e1d1f9c6d2de2"> 159</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a8b525ca82d81716c699e1d1f9c6d2de2">bLength</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a46451809c473f8e4605017fb87362f7c"> 160</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a46451809c473f8e4605017fb87362f7c">bDescriptorType</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a5af9915c06d97e5fb38d5f8f968420e5"> 161</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a5af9915c06d97e5fb38d5f8f968420e5">bcdHID</a>; <span class="comment">// HID class specification release</span></div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a340e5f812dbf7fe8caa13a1541a51f42"> 162</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a340e5f812dbf7fe8caa13a1541a51f42">bCountryCode</a>;</div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a05f827473d2eb4e67d1f99bc317b1eba"> 163</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a05f827473d2eb4e67d1f99bc317b1eba">bNumDescriptors</a>; <span class="comment">// Number of additional class specific descriptors</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a58fcf1ecefd15c5e796ce8798b1dfce5"> 164</a></span>&#160; uint8_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a58fcf1ecefd15c5e796ce8798b1dfce5">bDescrType</a>; <span class="comment">// Type of class descriptor</span></div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a0b160c43f6a6132c0debabd6ef171950"> 165</a></span>&#160; uint16_t <a class="code" href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a0b160c43f6a6132c0debabd6ef171950">wDescriptorLength</a>; <span class="comment">// Total size of the Report descriptor</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;} __attribute__((packed)) <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>;</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="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html"> 168</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#ade7d2a40026445cd10544b30bf1a4964"> 169</a></span>&#160; uint8_t <a class="code" href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#ade7d2a40026445cd10544b30bf1a4964">bDescrType</a>; <span class="comment">// Type of class descriptor</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#a98251c1867caf1651f6e926952189201"> 170</a></span>&#160; uint16_t <a class="code" href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#a98251c1867caf1651f6e926952189201">wDescriptorLength</a>; <span class="comment">// Total size of the Report descriptor</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160;} __attribute__((packed)) <a class="code" href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html">HID_CLASS_DESCRIPTOR_LEN_AND_TYPE</a>;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; </div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// _ch9_h_</span></div>
<div class="ttc" id="astruct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e_html"><div class="ttname"><a href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html">HID_CLASS_DESCRIPTOR_LEN_AND_TYPE</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00168">usb_ch9.h:168</a></div></div>
<div class="ttc" id="astruct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e_html_a98251c1867caf1651f6e926952189201"><div class="ttname"><a href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#a98251c1867caf1651f6e926952189201">HID_CLASS_DESCRIPTOR_LEN_AND_TYPE::wDescriptorLength</a></div><div class="ttdeci">uint16_t wDescriptorLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00170">usb_ch9.h:170</a></div></div>
<div class="ttc" id="astruct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e_html_ade7d2a40026445cd10544b30bf1a4964"><div class="ttname"><a href="struct_h_i_d___c_l_a_s_s___d_e_s_c_r_i_p_t_o_r___l_e_n___a_n_d___t_y_p_e.html#ade7d2a40026445cd10544b30bf1a4964">HID_CLASS_DESCRIPTOR_LEN_AND_TYPE::bDescrType</a></div><div class="ttdeci">uint8_t bDescrType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00169">usb_ch9.h:169</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html">USB_CONFIGURATION_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00123">usb_ch9.h:123</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a28bd3308c28df6445b4b63bdaade83c8"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a28bd3308c28df6445b4b63bdaade83c8">USB_CONFIGURATION_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00125">usb_ch9.h:125</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a2ba304d3cb0f6b506c190ca8391fd1a6"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a2ba304d3cb0f6b506c190ca8391fd1a6">USB_CONFIGURATION_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00124">usb_ch9.h:124</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a39499f3dd4e3f1ef1d8a2c9b430bc11b"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a39499f3dd4e3f1ef1d8a2c9b430bc11b">USB_CONFIGURATION_DESCRIPTOR::wTotalLength</a></div><div class="ttdeci">uint16_t wTotalLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00126">usb_ch9.h:126</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a3d6088be2999c1189f2a3eb56be51832"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a3d6088be2999c1189f2a3eb56be51832">USB_CONFIGURATION_DESCRIPTOR::bMaxPower</a></div><div class="ttdeci">uint8_t bMaxPower</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00131">usb_ch9.h:131</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a488103d763db8744459d2c94995458b0"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a488103d763db8744459d2c94995458b0">USB_CONFIGURATION_DESCRIPTOR::iConfiguration</a></div><div class="ttdeci">uint8_t iConfiguration</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00129">usb_ch9.h:129</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_a568d08f2ae98670a707489645a67746b"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#a568d08f2ae98670a707489645a67746b">USB_CONFIGURATION_DESCRIPTOR::bConfigurationValue</a></div><div class="ttdeci">uint8_t bConfigurationValue</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00128">usb_ch9.h:128</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_abd647927a872ac856c9f5aaf624bb99f"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#abd647927a872ac856c9f5aaf624bb99f">USB_CONFIGURATION_DESCRIPTOR::bNumInterfaces</a></div><div class="ttdeci">uint8_t bNumInterfaces</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00127">usb_ch9.h:127</a></div></div>
<div class="ttc" id="astruct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r_html_ac2f4c62d572fe371be5680962e42a8d3"><div class="ttname"><a href="struct_u_s_b___c_o_n_f_i_g_u_r_a_t_i_o_n___d_e_s_c_r_i_p_t_o_r.html#ac2f4c62d572fe371be5680962e42a8d3">USB_CONFIGURATION_DESCRIPTOR::bmAttributes</a></div><div class="ttdeci">uint8_t bmAttributes</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00130">usb_ch9.h:130</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_DEVICE_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00105">usb_ch9.h:105</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_a621148cd71148fb15e136010480a34ac"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a621148cd71148fb15e136010480a34ac">USB_DEVICE_DESCRIPTOR::bcdUSB</a></div><div class="ttdeci">uint16_t bcdUSB</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00108">usb_ch9.h:108</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_a63e19361f9fe25a6a2553f7d10569174"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a63e19361f9fe25a6a2553f7d10569174">USB_DEVICE_DESCRIPTOR::iProduct</a></div><div class="ttdeci">uint8_t iProduct</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00117">usb_ch9.h:117</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_a92d96e9016c96043dccf56872d13a628"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a92d96e9016c96043dccf56872d13a628">USB_DEVICE_DESCRIPTOR::bMaxPacketSize0</a></div><div class="ttdeci">uint8_t bMaxPacketSize0</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00112">usb_ch9.h:112</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_a951dd86a1fee895f356a0be0fc8c0d8f"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#a951dd86a1fee895f356a0be0fc8c0d8f">USB_DEVICE_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00106">usb_ch9.h:106</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_aa4e565c598b6605cbcfe8cab66f99e65"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aa4e565c598b6605cbcfe8cab66f99e65">USB_DEVICE_DESCRIPTOR::bcdDevice</a></div><div class="ttdeci">uint16_t bcdDevice</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00115">usb_ch9.h:115</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_aad465b71adef34630171e88b0a3664a3"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#aad465b71adef34630171e88b0a3664a3">USB_DEVICE_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00107">usb_ch9.h:107</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_ab1b8db3992e0dceb2ba86f3bab1e5bca"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ab1b8db3992e0dceb2ba86f3bab1e5bca">USB_DEVICE_DESCRIPTOR::bNumConfigurations</a></div><div class="ttdeci">uint8_t bNumConfigurations</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00119">usb_ch9.h:119</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_ac9d321b21797ac7a6190ae9a2ffa1e3e"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ac9d321b21797ac7a6190ae9a2ffa1e3e">USB_DEVICE_DESCRIPTOR::iSerialNumber</a></div><div class="ttdeci">uint8_t iSerialNumber</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00118">usb_ch9.h:118</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_ad16528e2a4018962f8d7d97036386eac"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ad16528e2a4018962f8d7d97036386eac">USB_DEVICE_DESCRIPTOR::iManufacturer</a></div><div class="ttdeci">uint8_t iManufacturer</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00116">usb_ch9.h:116</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_adaec05748124a104c3d49008433719ba"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#adaec05748124a104c3d49008433719ba">USB_DEVICE_DESCRIPTOR::idProduct</a></div><div class="ttdeci">uint16_t idProduct</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00114">usb_ch9.h:114</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_ae3c7088fe6f7b521132d8f2b95f958bc"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#ae3c7088fe6f7b521132d8f2b95f958bc">USB_DEVICE_DESCRIPTOR::idVendor</a></div><div class="ttdeci">uint16_t idVendor</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00113">usb_ch9.h:113</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_af01535d145805f4bfae66e21f1fc652d"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af01535d145805f4bfae66e21f1fc652d">USB_DEVICE_DESCRIPTOR::bDeviceSubClass</a></div><div class="ttdeci">uint8_t bDeviceSubClass</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00110">usb_ch9.h:110</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_af205ea8c5729e0ddbf4dcbdf1636fe57"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#af205ea8c5729e0ddbf4dcbdf1636fe57">USB_DEVICE_DESCRIPTOR::bDeviceProtocol</a></div><div class="ttdeci">uint8_t bDeviceProtocol</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00111">usb_ch9.h:111</a></div></div>
<div class="ttc" id="astruct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r_html_afa7047f0318ab6df92a12291511cc1ce"><div class="ttname"><a href="struct_u_s_b___d_e_v_i_c_e___d_e_s_c_r_i_p_t_o_r.html#afa7047f0318ab6df92a12291511cc1ce">USB_DEVICE_DESCRIPTOR::bDeviceClass</a></div><div class="ttdeci">uint8_t bDeviceClass</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00109">usb_ch9.h:109</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___e_n_d_p_o_i_n_t___d_e_s_c_r_i_p_t_o_r_html_a23fbb539d72d10a6cb12efedf7d3457c"><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#a23fbb539d72d10a6cb12efedf7d3457c">USB_ENDPOINT_DESCRIPTOR::bEndpointAddress</a></div><div class="ttdeci">uint8_t bEndpointAddress</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00151">usb_ch9.h:151</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_a55263a9cc9dc17abc37226ac8a471ad0"><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#a55263a9cc9dc17abc37226ac8a471ad0">USB_ENDPOINT_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00149">usb_ch9.h:149</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_a8ee7f1bafac335258c6e742969387f57"><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#a8ee7f1bafac335258c6e742969387f57">USB_ENDPOINT_DESCRIPTOR::bmAttributes</a></div><div class="ttdeci">uint8_t bmAttributes</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00152">usb_ch9.h:152</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_a95cd9669dee9cab375a7c5e62284a01b"><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#a95cd9669dee9cab375a7c5e62284a01b">USB_ENDPOINT_DESCRIPTOR::bInterval</a></div><div class="ttdeci">uint8_t bInterval</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00154">usb_ch9.h:154</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_af34105fa6bd0029d9c6b73d85f7853c6"><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#af34105fa6bd0029d9c6b73d85f7853c6">USB_ENDPOINT_DESCRIPTOR::wMaxPacketSize</a></div><div class="ttdeci">uint16_t wMaxPacketSize</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00153">usb_ch9.h:153</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_af39d036ab903a96b9d4d56b879555d6c"><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#af39d036ab903a96b9d4d56b879555d6c">USB_ENDPOINT_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00150">usb_ch9.h:150</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 class="ttc" id="astruct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r_html_a05f827473d2eb4e67d1f99bc317b1eba"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a05f827473d2eb4e67d1f99bc317b1eba">USB_HID_DESCRIPTOR::bNumDescriptors</a></div><div class="ttdeci">uint8_t bNumDescriptors</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00163">usb_ch9.h:163</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_a0b160c43f6a6132c0debabd6ef171950"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a0b160c43f6a6132c0debabd6ef171950">USB_HID_DESCRIPTOR::wDescriptorLength</a></div><div class="ttdeci">uint16_t wDescriptorLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00165">usb_ch9.h:165</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_a340e5f812dbf7fe8caa13a1541a51f42"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a340e5f812dbf7fe8caa13a1541a51f42">USB_HID_DESCRIPTOR::bCountryCode</a></div><div class="ttdeci">uint8_t bCountryCode</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00162">usb_ch9.h:162</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_a46451809c473f8e4605017fb87362f7c"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a46451809c473f8e4605017fb87362f7c">USB_HID_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00160">usb_ch9.h:160</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_a58fcf1ecefd15c5e796ce8798b1dfce5"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a58fcf1ecefd15c5e796ce8798b1dfce5">USB_HID_DESCRIPTOR::bDescrType</a></div><div class="ttdeci">uint8_t bDescrType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00164">usb_ch9.h:164</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_a5af9915c06d97e5fb38d5f8f968420e5"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a5af9915c06d97e5fb38d5f8f968420e5">USB_HID_DESCRIPTOR::bcdHID</a></div><div class="ttdeci">uint16_t bcdHID</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00161">usb_ch9.h:161</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_a8b525ca82d81716c699e1d1f9c6d2de2"><div class="ttname"><a href="struct_u_s_b___h_i_d___d_e_s_c_r_i_p_t_o_r.html#a8b525ca82d81716c699e1d1f9c6d2de2">USB_HID_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00159">usb_ch9.h:159</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html">USB_INTERFACE_DESCRIPTOR</a></div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00135">usb_ch9.h:135</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a0ddcf6c9bc46ed757e9e15086746b5a1"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a0ddcf6c9bc46ed757e9e15086746b5a1">USB_INTERFACE_DESCRIPTOR::bAlternateSetting</a></div><div class="ttdeci">uint8_t bAlternateSetting</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00139">usb_ch9.h:139</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a2515bf5c49f849965030c94f50dea285"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a2515bf5c49f849965030c94f50dea285">USB_INTERFACE_DESCRIPTOR::bDescriptorType</a></div><div class="ttdeci">uint8_t bDescriptorType</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00137">usb_ch9.h:137</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a3268bc05bb0147e19f97e50e702fc141"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3268bc05bb0147e19f97e50e702fc141">USB_INTERFACE_DESCRIPTOR::bNumEndpoints</a></div><div class="ttdeci">uint8_t bNumEndpoints</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00140">usb_ch9.h:140</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a391ad3184a29ddbe1e02ff1feca8f64a"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a391ad3184a29ddbe1e02ff1feca8f64a">USB_INTERFACE_DESCRIPTOR::iInterface</a></div><div class="ttdeci">uint8_t iInterface</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00144">usb_ch9.h:144</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a3ae5da44842f99bbde5cca9b20c6911a"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a3ae5da44842f99bbde5cca9b20c6911a">USB_INTERFACE_DESCRIPTOR::bInterfaceNumber</a></div><div class="ttdeci">uint8_t bInterfaceNumber</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00138">usb_ch9.h:138</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_a4d352604355f617fef9509951d573356"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#a4d352604355f617fef9509951d573356">USB_INTERFACE_DESCRIPTOR::bInterfaceClass</a></div><div class="ttdeci">uint8_t bInterfaceClass</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00141">usb_ch9.h:141</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_ad1a0f98931b5e094d33c8c31d4e29ad6"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad1a0f98931b5e094d33c8c31d4e29ad6">USB_INTERFACE_DESCRIPTOR::bLength</a></div><div class="ttdeci">uint8_t bLength</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00136">usb_ch9.h:136</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_ad5b51ed2e6540dd58085f10a2440970e"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#ad5b51ed2e6540dd58085f10a2440970e">USB_INTERFACE_DESCRIPTOR::bInterfaceSubClass</a></div><div class="ttdeci">uint8_t bInterfaceSubClass</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00142">usb_ch9.h:142</a></div></div>
<div class="ttc" id="astruct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r_html_afcce1d75b7b110cc0d11e3328d9c7204"><div class="ttname"><a href="struct_u_s_b___i_n_t_e_r_f_a_c_e___d_e_s_c_r_i_p_t_o_r.html#afcce1d75b7b110cc0d11e3328d9c7204">USB_INTERFACE_DESCRIPTOR::bInterfaceProtocol</a></div><div class="ttdeci">uint8_t bInterfaceProtocol</div><div class="ttdef"><b>Definition:</b> <a href="usb__ch9_8h_source.html#l00143">usb_ch9.h:143</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>