📄 usb11spec_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>usbstack: /home/bene/projects/sl811/usbstack/usbspec/usb11spec.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.1 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul></div><h1>/home/bene/projects/sl811/usbstack/usbspec/usb11spec.h</h1><a href="usb11spec_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* usb11spec.h</span><a name="l00002"></a>00002 <span class="comment">* Copyright (C) 2005 Benedikt Sauter</span><a name="l00003"></a>00003 <span class="comment">*</span><a name="l00004"></a>00004 <span class="comment">* This program is free software; you can redistribute it and/or modify</span><a name="l00005"></a>00005 <span class="comment">* it under the terms of the GNU General Public License as published by</span><a name="l00006"></a>00006 <span class="comment">* the Free Software Foundation; either version 2 of the License, or</span><a name="l00007"></a>00007 <span class="comment">* (at your option) any later version.</span><a name="l00008"></a>00008 <span class="comment">*</span><a name="l00009"></a>00009 <span class="comment">* This program is distributed in the hope that it will be useful,</span><a name="l00010"></a>00010 <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span><a name="l00011"></a>00011 <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span><a name="l00012"></a>00012 <span class="comment">* GNU General Public License for more details.</span><a name="l00013"></a>00013 <span class="comment">*</span><a name="l00014"></a>00014 <span class="comment">* You should have received a copy of the GNU General Public License</span><a name="l00015"></a>00015 <span class="comment">* along with this program; if not, write to the Free Software</span><a name="l00016"></a>00016 <span class="comment">* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span><a name="l00017"></a>00017 <span class="comment">*/</span><a name="l00018"></a>00018 <span class="preprocessor">#ifndef _USB11PSEC_H</span><a name="l00019"></a><a class="code" href="usb11spec_8h.html#4b89316a4d79dfe232e11d57fa51cfa2">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define _USB11SPEC_H</span><a name="l00020"></a>00020 <span class="preprocessor"></span><a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="comment">/*-------------------------------------------</span><a name="l00023"></a>00023 <span class="comment"> * device descriptor </span><a name="l00024"></a>00024 <span class="comment"> * ------------------------------------------*/</span><a name="l00025"></a><a class="code" href="structusb__device__descriptor.html">00025</a> <span class="keyword">struct </span><a class="code" href="structusb__device__descriptor.html">usb_device_descriptor</a> <a name="l00026"></a>00026 {<a name="l00027"></a><a class="code" href="structusb__device__descriptor.html#87b23e33e15e50fc14b10353dafcd728">00027</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#87b23e33e15e50fc14b10353dafcd728">bLength</a>;<a name="l00028"></a><a class="code" href="structusb__device__descriptor.html#8abad5f66e874dce593895283258bcbe">00028</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#8abad5f66e874dce593895283258bcbe">bDescriptorType</a>;<a name="l00029"></a><a class="code" href="structusb__device__descriptor.html#bffa0ee4afe262009713e105a268721e">00029</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structusb__device__descriptor.html#bffa0ee4afe262009713e105a268721e">bcdUSB</a>;<a name="l00030"></a><a class="code" href="structusb__device__descriptor.html#4e29e026ec08c63eb5ce7a951146e547">00030</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#4e29e026ec08c63eb5ce7a951146e547">bDeviceClass</a>;<a name="l00031"></a><a class="code" href="structusb__device__descriptor.html#eb85dbf4471963c93c72ead33df955fa">00031</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#eb85dbf4471963c93c72ead33df955fa">bDeviceSubClass</a>;<a name="l00032"></a><a class="code" href="structusb__device__descriptor.html#fe35f0bb20c4b328d74b50ea41c0df2b">00032</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#fe35f0bb20c4b328d74b50ea41c0df2b">bDeviceProtocol</a>;<a name="l00033"></a><a class="code" href="structusb__device__descriptor.html#45a3fa4aeac7f14a5d774ac13d23e15e">00033</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#45a3fa4aeac7f14a5d774ac13d23e15e">bMaxPacketSize0</a>;<a name="l00034"></a><a class="code" href="structusb__device__descriptor.html#1cfe2a77790a8311439a14e5f84df33d">00034</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structusb__device__descriptor.html#1cfe2a77790a8311439a14e5f84df33d">idVendor</a>;<a name="l00035"></a><a class="code" href="structusb__device__descriptor.html#360259cbf070e8406e39ba6176ecb07f">00035</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structusb__device__descriptor.html#360259cbf070e8406e39ba6176ecb07f">idProduct</a>;<a name="l00036"></a><a class="code" href="structusb__device__descriptor.html#9eefe3cb95cf58e82677ac2c1ca16571">00036</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structusb__device__descriptor.html#9eefe3cb95cf58e82677ac2c1ca16571">bcdDevice</a>;<a name="l00037"></a><a class="code" href="structusb__device__descriptor.html#2e0d73ddf5f50c1c72776ec9f1cb7dfa">00037</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#2e0d73ddf5f50c1c72776ec9f1cb7dfa">iManufacturer</a>;<a name="l00038"></a><a class="code" href="structusb__device__descriptor.html#50b0d6115265610c7b0f12eb930e79bc">00038</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#50b0d6115265610c7b0f12eb930e79bc">iProduct</a>;<a name="l00039"></a><a class="code" href="structusb__device__descriptor.html#0a7877c6463a0c78619aec4db6fa6676">00039</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#0a7877c6463a0c78619aec4db6fa6676">iSerialNumber</a>;<a name="l00040"></a><a class="code" href="structusb__device__descriptor.html#5e875fff283a818dcd4a32484c699d50">00040</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__device__descriptor.html#5e875fff283a818dcd4a32484c699d50">bNumConfigurations</a>;<a name="l00041"></a>00041 };<a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="comment">/*-------------------------------------------</span><a name="l00044"></a>00044 <span class="comment"> * configuration descriptor </span><a name="l00045"></a>00045 <span class="comment"> * ------------------------------------------*/</span><a name="l00046"></a>00046 <a name="l00047"></a><a class="code" href="structusb__configuration__descriptor.html">00047</a> <span class="keyword">struct </span><a class="code" href="structusb__configuration__descriptor.html">usb_configuration_descriptor</a> <a name="l00048"></a>00048 {<a name="l00049"></a><a class="code" href="structusb__configuration__descriptor.html#a69a7e31b3d5d3a5085ad2bc8fc1837a">00049</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__configuration__descriptor.html#a69a7e31b3d5d3a5085ad2bc8fc1837a">bLength</a>;<a name="l00050"></a><a class="code" href="structusb__configuration__descriptor.html#7be5d136f0d8318b07a2c17bc55e4924">00050</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__configuration__descriptor.html#7be5d136f0d8318b07a2c17bc55e4924">bDescriptorType</a>;<a name="l00051"></a><a class="code" href="structusb__configuration__descriptor.html#0296e30a2968b36085ad6ad6d8c65dfc">00051</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> <a class="code" href="structusb__configuration__descriptor.html#0296e30a2968b36085ad6ad6d8c65dfc">wTotalLength</a>;<a name="l00052"></a><a class="code" href="structusb__configuration__descriptor.html#c43895cd06b52ef531507ff37dd5ee36">00052</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__configuration__descriptor.html#c43895cd06b52ef531507ff37dd5ee36">bNumInterfaces</a>;<a name="l00053"></a><a class="code" href="structusb__configuration__descriptor.html#97908b667b20c1ad37881ff05d1563a8">00053</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__configuration__descriptor.html#97908b667b20c1ad37881ff05d1563a8">bConfigurationValue</a>;<a name="l00054"></a><a class="code" href="structusb__configuration__descriptor.html#35bdc5a732f4681217aa4dd382a99cf2">00054</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="structusb__configuration__descriptor.html#35bdc5a732f4681217aa4dd382a99cf2">iConfiguration</a>;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -