OpenCores
URL https://opencores.org/ocsvn/usb_fpga_2_13/usb_fpga_2_13/trunk

Subversion Repositories usb_fpga_2_13

[/] [usb_fpga_2_13/] [trunk/] [docs/] [java/] [ch/] [ntb/] [usb/] [Usb_Device_Descriptor.html] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_18) on Wed Oct 30 21:18:13 CET 2013 -->
6
<TITLE>
7
Usb_Device_Descriptor
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-10-30">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Usb_Device_Descriptor";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47
  </TR>
48
</TABLE>
49
</TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
</EM>
52
</TD>
53
</TR>
54
 
55
<TR>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Endpoint_Descriptor.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
  <A HREF="../../../index.html?ch/ntb/usb/Usb_Device_Descriptor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="Usb_Device_Descriptor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62
&nbsp;<SCRIPT type="text/javascript">
63
  <!--
64
  if(window==top) {
65
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
66
  }
67
  //-->
68
</SCRIPT>
69
<NOSCRIPT>
70
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
71
</NOSCRIPT>
72
 
73
 
74
</FONT></TD>
75
</TR>
76
<TR>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81
</TR>
82
</TABLE>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
85
 
86
<HR>
87
<!-- ======== START OF CLASS DATA ======== -->
88
<H2>
89
<FONT SIZE="-1">
90
ch.ntb.usb</FONT>
91
<BR>
92
Class Usb_Device_Descriptor</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">ch.ntb.usb.Usb_Descriptor</A>
96
      <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>ch.ntb.usb.Usb_Device_Descriptor</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Usb_Device_Descriptor</B><DT>extends <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></DL>
101
</PRE>
102
 
103
<P>
104
Represents the descriptor of a USB device.<br>
105
 A USB device can only have one device descriptor. It specifies some basic,
106
 yet important information about the device.<br>
107
 <br>
108
 The length of the device descriptor is
109
 <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE_SIZE"><CODE>Usb_Descriptor.USB_DT_DEVICE_SIZE</CODE></A> and the type is
110
 <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE"><CODE>Usb_Descriptor.USB_DT_DEVICE</CODE></A>.
111
<P>
112
 
113
<P>
114
<HR>
115
 
116
<P>
117
<!-- =========== FIELD SUMMARY =========== -->
118
 
119
<A NAME="field_summary"><!-- --></A>
120
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123
<B>Field Summary</B></FONT></TH>
124
</TR>
125
<TR BGCOLOR="white" CLASS="TableRowColor">
126
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127
<CODE>static&nbsp;int</CODE></FONT></TD>
128
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_AUDIO">USB_CLASS_AUDIO</A></B></CODE>
129
 
130
<BR>
131
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
132
</TR>
133
<TR BGCOLOR="white" CLASS="TableRowColor">
134
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
135
<CODE>static&nbsp;int</CODE></FONT></TD>
136
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_COMM">USB_CLASS_COMM</A></B></CODE>
137
 
138
<BR>
139
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
140
</TR>
141
<TR BGCOLOR="white" CLASS="TableRowColor">
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143
<CODE>static&nbsp;int</CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_DATA">USB_CLASS_DATA</A></B></CODE>
145
 
146
<BR>
147
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
148
</TR>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151
<CODE>static&nbsp;int</CODE></FONT></TD>
152
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_HID">USB_CLASS_HID</A></B></CODE>
153
 
154
<BR>
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
156
</TR>
157
<TR BGCOLOR="white" CLASS="TableRowColor">
158
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159
<CODE>static&nbsp;int</CODE></FONT></TD>
160
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_HUB">USB_CLASS_HUB</A></B></CODE>
161
 
162
<BR>
163
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
164
</TR>
165
<TR BGCOLOR="white" CLASS="TableRowColor">
166
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167
<CODE>static&nbsp;int</CODE></FONT></TD>
168
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_MASS_STORAGE">USB_CLASS_MASS_STORAGE</A></B></CODE>
169
 
170
<BR>
171
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
172
</TR>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175
<CODE>static&nbsp;int</CODE></FONT></TD>
176
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_PER_INTERFACE">USB_CLASS_PER_INTERFACE</A></B></CODE>
177
 
178
<BR>
179
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
180
</TR>
181
<TR BGCOLOR="white" CLASS="TableRowColor">
182
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183
<CODE>static&nbsp;int</CODE></FONT></TD>
184
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_PRINTER">USB_CLASS_PRINTER</A></B></CODE>
185
 
186
<BR>
187
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
188
</TR>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191
<CODE>static&nbsp;int</CODE></FONT></TD>
192
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#USB_CLASS_VENDOR_SPEC">USB_CLASS_VENDOR_SPEC</A></B></CODE>
193
 
194
<BR>
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Device and/or interface class codes.</TD>
196
</TR>
197
</TABLE>
198
&nbsp;<A NAME="fields_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
199
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
200
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
201
<TH ALIGN="left"><B>Fields inherited from class ch.ntb.usb.<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></B></TH>
202
</TR>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD><CODE><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG">USB_DT_CONFIG</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG_SIZE">USB_DT_CONFIG_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE">USB_DT_DEVICE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE_SIZE">USB_DT_DEVICE_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT">USB_DT_ENDPOINT</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT_AUDIO_SIZE">USB_DT_ENDPOINT_AUDIO_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT_SIZE">USB_DT_ENDPOINT_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HID">USB_DT_HID</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HUB">USB_DT_HUB</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HUB_NONVAR_SIZE">USB_DT_HUB_NONVAR_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE">USB_DT_INTERFACE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE_SIZE">USB_DT_INTERFACE_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_PHYSICAL">USB_DT_PHYSICAL</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_REPORT">USB_DT_REPORT</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_STRING">USB_DT_STRING</A></CODE></TD>
205
</TR>
206
</TABLE>
207
&nbsp;
208
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
209
 
210
<A NAME="constructor_summary"><!-- --></A>
211
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
212
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
213
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
214
<B>Constructor Summary</B></FONT></TH>
215
</TR>
216
<TR BGCOLOR="white" CLASS="TableRowColor">
217
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#Usb_Device_Descriptor()">Usb_Device_Descriptor</A></B>()</CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
221
</TR>
222
</TABLE>
223
&nbsp;
224
<!-- ========== METHOD SUMMARY =========== -->
225
 
226
<A NAME="method_summary"><!-- --></A>
227
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
228
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
229
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
230
<B>Method Summary</B></FONT></TH>
231
</TR>
232
<TR BGCOLOR="white" CLASS="TableRowColor">
233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
234
<CODE>&nbsp;short</CODE></FONT></TD>
235
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBcdDevice()">getBcdDevice</A></B>()</CODE>
236
 
237
<BR>
238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the device release number.</TD>
239
</TR>
240
<TR BGCOLOR="white" CLASS="TableRowColor">
241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
242
<CODE>&nbsp;short</CODE></FONT></TD>
243
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBcdUSB()">getBcdUSB</A></B>()</CODE>
244
 
245
<BR>
246
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the USB specification number to which the device complies to.</TD>
247
</TR>
248
<TR BGCOLOR="white" CLASS="TableRowColor">
249
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250
<CODE>&nbsp;byte</CODE></FONT></TD>
251
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBDeviceClass()">getBDeviceClass</A></B>()</CODE>
252
 
253
<BR>
254
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the class code (Assigned by <a
255
 href="http://www.usb.org">www.usb.org</a>)<br>
256
 If equal to zero, each interface specifies it's own class code.</TD>
257
</TR>
258
<TR BGCOLOR="white" CLASS="TableRowColor">
259
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260
<CODE>&nbsp;byte</CODE></FONT></TD>
261
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBDeviceProtocol()">getBDeviceProtocol</A></B>()</CODE>
262
 
263
<BR>
264
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the protocol code (Assigned by <a
265
 href="http://www.usb.org">www.usb.org</a>)<br></TD>
266
</TR>
267
<TR BGCOLOR="white" CLASS="TableRowColor">
268
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269
<CODE>&nbsp;byte</CODE></FONT></TD>
270
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBDeviceSubClass()">getBDeviceSubClass</A></B>()</CODE>
271
 
272
<BR>
273
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the subclass code (Assigned by <a
274
 href="http://www.usb.org">www.usb.org</a>)<br></TD>
275
</TR>
276
<TR BGCOLOR="white" CLASS="TableRowColor">
277
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278
<CODE>&nbsp;byte</CODE></FONT></TD>
279
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBMaxPacketSize0()">getBMaxPacketSize0</A></B>()</CODE>
280
 
281
<BR>
282
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum packet size for endpoint zero.</TD>
283
</TR>
284
<TR BGCOLOR="white" CLASS="TableRowColor">
285
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286
<CODE>&nbsp;byte</CODE></FONT></TD>
287
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getBNumConfigurations()">getBNumConfigurations</A></B>()</CODE>
288
 
289
<BR>
290
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of possible configurations supported at its current
291
 speed.</TD>
292
</TR>
293
<TR BGCOLOR="white" CLASS="TableRowColor">
294
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
295
<CODE>&nbsp;short</CODE></FONT></TD>
296
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getIdProduct()">getIdProduct</A></B>()</CODE>
297
 
298
<BR>
299
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the product ID (Assigned by <a
300
 href="http://www.usb.org">www.usb.org</a>)<br></TD>
301
</TR>
302
<TR BGCOLOR="white" CLASS="TableRowColor">
303
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304
<CODE>&nbsp;short</CODE></FONT></TD>
305
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getIdVendor()">getIdVendor</A></B>()</CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Vendor ID (Assigned by <a
309
 href="http://www.usb.org">www.usb.org</a>)<br></TD>
310
</TR>
311
<TR BGCOLOR="white" CLASS="TableRowColor">
312
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313
<CODE>&nbsp;byte</CODE></FONT></TD>
314
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getIManufacturer()">getIManufacturer</A></B>()</CODE>
315
 
316
<BR>
317
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the manufacturer string descriptor.</TD>
318
</TR>
319
<TR BGCOLOR="white" CLASS="TableRowColor">
320
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
321
<CODE>&nbsp;byte</CODE></FONT></TD>
322
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getIProduct()">getIProduct</A></B>()</CODE>
323
 
324
<BR>
325
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the product string descriptor.</TD>
326
</TR>
327
<TR BGCOLOR="white" CLASS="TableRowColor">
328
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329
<CODE>&nbsp;byte</CODE></FONT></TD>
330
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#getISerialNumber()">getISerialNumber</A></B>()</CODE>
331
 
332
<BR>
333
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of serial number string descriptor.</TD>
334
</TR>
335
<TR BGCOLOR="white" CLASS="TableRowColor">
336
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
338
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html#toString()">toString</A></B>()</CODE>
339
 
340
<BR>
341
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
342
</TR>
343
</TABLE>
344
&nbsp;<A NAME="methods_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
345
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
346
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
347
<TH ALIGN="left"><B>Methods inherited from class ch.ntb.usb.<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></B></TH>
348
</TR>
349
<TR BGCOLOR="white" CLASS="TableRowColor">
350
<TD><CODE><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#getBDescriptorType()">getBDescriptorType</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#getBLength()">getBLength</A></CODE></TD>
351
</TR>
352
</TABLE>
353
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
354
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
355
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
356
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
360
</TR>
361
</TABLE>
362
&nbsp;
363
<P>
364
 
365
<!-- ============ FIELD DETAIL =========== -->
366
 
367
<A NAME="field_detail"><!-- --></A>
368
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
369
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
370
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
371
<B>Field Detail</B></FONT></TH>
372
</TR>
373
</TABLE>
374
 
375
<A NAME="USB_CLASS_PER_INTERFACE"><!-- --></A><H3>
376
USB_CLASS_PER_INTERFACE</H3>
377
<PRE>
378
public static final int <B>USB_CLASS_PER_INTERFACE</B></PRE>
379
<DL>
380
<DD>Device and/or interface class codes.
381
<P>
382
<DL>
383
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_PER_INTERFACE">Constant Field Values</A></DL>
384
</DL>
385
<HR>
386
 
387
<A NAME="USB_CLASS_AUDIO"><!-- --></A><H3>
388
USB_CLASS_AUDIO</H3>
389
<PRE>
390
public static final int <B>USB_CLASS_AUDIO</B></PRE>
391
<DL>
392
<DD>Device and/or interface class codes.
393
<P>
394
<DL>
395
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_AUDIO">Constant Field Values</A></DL>
396
</DL>
397
<HR>
398
 
399
<A NAME="USB_CLASS_COMM"><!-- --></A><H3>
400
USB_CLASS_COMM</H3>
401
<PRE>
402
public static final int <B>USB_CLASS_COMM</B></PRE>
403
<DL>
404
<DD>Device and/or interface class codes.
405
<P>
406
<DL>
407
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_COMM">Constant Field Values</A></DL>
408
</DL>
409
<HR>
410
 
411
<A NAME="USB_CLASS_HID"><!-- --></A><H3>
412
USB_CLASS_HID</H3>
413
<PRE>
414
public static final int <B>USB_CLASS_HID</B></PRE>
415
<DL>
416
<DD>Device and/or interface class codes.
417
<P>
418
<DL>
419
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_HID">Constant Field Values</A></DL>
420
</DL>
421
<HR>
422
 
423
<A NAME="USB_CLASS_PRINTER"><!-- --></A><H3>
424
USB_CLASS_PRINTER</H3>
425
<PRE>
426
public static final int <B>USB_CLASS_PRINTER</B></PRE>
427
<DL>
428
<DD>Device and/or interface class codes.
429
<P>
430
<DL>
431
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_PRINTER">Constant Field Values</A></DL>
432
</DL>
433
<HR>
434
 
435
<A NAME="USB_CLASS_MASS_STORAGE"><!-- --></A><H3>
436
USB_CLASS_MASS_STORAGE</H3>
437
<PRE>
438
public static final int <B>USB_CLASS_MASS_STORAGE</B></PRE>
439
<DL>
440
<DD>Device and/or interface class codes.
441
<P>
442
<DL>
443
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_MASS_STORAGE">Constant Field Values</A></DL>
444
</DL>
445
<HR>
446
 
447
<A NAME="USB_CLASS_HUB"><!-- --></A><H3>
448
USB_CLASS_HUB</H3>
449
<PRE>
450
public static final int <B>USB_CLASS_HUB</B></PRE>
451
<DL>
452
<DD>Device and/or interface class codes.
453
<P>
454
<DL>
455
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_HUB">Constant Field Values</A></DL>
456
</DL>
457
<HR>
458
 
459
<A NAME="USB_CLASS_DATA"><!-- --></A><H3>
460
USB_CLASS_DATA</H3>
461
<PRE>
462
public static final int <B>USB_CLASS_DATA</B></PRE>
463
<DL>
464
<DD>Device and/or interface class codes.
465
<P>
466
<DL>
467
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_DATA">Constant Field Values</A></DL>
468
</DL>
469
<HR>
470
 
471
<A NAME="USB_CLASS_VENDOR_SPEC"><!-- --></A><H3>
472
USB_CLASS_VENDOR_SPEC</H3>
473
<PRE>
474
public static final int <B>USB_CLASS_VENDOR_SPEC</B></PRE>
475
<DL>
476
<DD>Device and/or interface class codes.
477
<P>
478
<DL>
479
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Device_Descriptor.USB_CLASS_VENDOR_SPEC">Constant Field Values</A></DL>
480
</DL>
481
 
482
<!-- ========= CONSTRUCTOR DETAIL ======== -->
483
 
484
<A NAME="constructor_detail"><!-- --></A>
485
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
486
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
487
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
488
<B>Constructor Detail</B></FONT></TH>
489
</TR>
490
</TABLE>
491
 
492
<A NAME="Usb_Device_Descriptor()"><!-- --></A><H3>
493
Usb_Device_Descriptor</H3>
494
<PRE>
495
public <B>Usb_Device_Descriptor</B>()</PRE>
496
<DL>
497
</DL>
498
 
499
<!-- ============ METHOD DETAIL ========== -->
500
 
501
<A NAME="method_detail"><!-- --></A>
502
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
503
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
504
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
505
<B>Method Detail</B></FONT></TH>
506
</TR>
507
</TABLE>
508
 
509
<A NAME="getBcdDevice()"><!-- --></A><H3>
510
getBcdDevice</H3>
511
<PRE>
512
public short <B>getBcdDevice</B>()</PRE>
513
<DL>
514
<DD>Returns the device release number.<br>
515
 Assigned by the manufacturer of the device.
516
<P>
517
<DD><DL>
518
 
519
<DT><B>Returns:</B><DD>the device release number</DL>
520
</DD>
521
</DL>
522
<HR>
523
 
524
<A NAME="getBcdUSB()"><!-- --></A><H3>
525
getBcdUSB</H3>
526
<PRE>
527
public short <B>getBcdUSB</B>()</PRE>
528
<DL>
529
<DD>Returns the USB specification number to which the device complies to.<br>
530
 This field reports the highest version of USB the device supports. The
531
 value is in binary coded decimal with a format of 0xJJMN where JJ is the
532
 major version number, M is the minor version number and N is the sub
533
 minor version number.<br>
534
 Examples: USB 2.0 is reported as 0x0200, USB 1.1 as 0x0110 and USB 1.0 as
535
 0x100
536
<P>
537
<DD><DL>
538
 
539
<DT><B>Returns:</B><DD>the USB specification number to which the device complies to</DL>
540
</DD>
541
</DL>
542
<HR>
543
 
544
<A NAME="getBDeviceClass()"><!-- --></A><H3>
545
getBDeviceClass</H3>
546
<PRE>
547
public byte <B>getBDeviceClass</B>()</PRE>
548
<DL>
549
<DD>Returns the class code (Assigned by <a
550
 href="http://www.usb.org">www.usb.org</a>)<br>
551
 If equal to zero, each interface specifies it's own class code. If equal
552
 to 0xFF, the class code is vendor specified. Otherwise the field is a
553
 valid class code.
554
<P>
555
<DD><DL>
556
 
557
<DT><B>Returns:</B><DD>the class code</DL>
558
</DD>
559
</DL>
560
<HR>
561
 
562
<A NAME="getBDeviceProtocol()"><!-- --></A><H3>
563
getBDeviceProtocol</H3>
564
<PRE>
565
public byte <B>getBDeviceProtocol</B>()</PRE>
566
<DL>
567
<DD>Returns the protocol code (Assigned by <a
568
 href="http://www.usb.org">www.usb.org</a>)<br>
569
<P>
570
<DD><DL>
571
 
572
<DT><B>Returns:</B><DD>the protocol code</DL>
573
</DD>
574
</DL>
575
<HR>
576
 
577
<A NAME="getBDeviceSubClass()"><!-- --></A><H3>
578
getBDeviceSubClass</H3>
579
<PRE>
580
public byte <B>getBDeviceSubClass</B>()</PRE>
581
<DL>
582
<DD>Returns the subclass code (Assigned by <a
583
 href="http://www.usb.org">www.usb.org</a>)<br>
584
<P>
585
<DD><DL>
586
 
587
<DT><B>Returns:</B><DD>the subclass code</DL>
588
</DD>
589
</DL>
590
<HR>
591
 
592
<A NAME="getBMaxPacketSize0()"><!-- --></A><H3>
593
getBMaxPacketSize0</H3>
594
<PRE>
595
public byte <B>getBMaxPacketSize0</B>()</PRE>
596
<DL>
597
<DD>Returns the maximum packet size for endpoint zero.<br>
598
 Valid sizes are 8, 16, 32, 64.
599
<P>
600
<DD><DL>
601
 
602
<DT><B>Returns:</B><DD>the maximum packet size for endpoint zero</DL>
603
</DD>
604
</DL>
605
<HR>
606
 
607
<A NAME="getBNumConfigurations()"><!-- --></A><H3>
608
getBNumConfigurations</H3>
609
<PRE>
610
public byte <B>getBNumConfigurations</B>()</PRE>
611
<DL>
612
<DD>Returns the number of possible configurations supported at its current
613
 speed.<br>
614
<P>
615
<DD><DL>
616
 
617
<DT><B>Returns:</B><DD>the number of possible configurations supported at its current
618
         speed</DL>
619
</DD>
620
</DL>
621
<HR>
622
 
623
<A NAME="getIdProduct()"><!-- --></A><H3>
624
getIdProduct</H3>
625
<PRE>
626
public short <B>getIdProduct</B>()</PRE>
627
<DL>
628
<DD>Returns the product ID (Assigned by <a
629
 href="http://www.usb.org">www.usb.org</a>)<br>
630
<P>
631
<DD><DL>
632
 
633
<DT><B>Returns:</B><DD>the product ID</DL>
634
</DD>
635
</DL>
636
<HR>
637
 
638
<A NAME="getIdVendor()"><!-- --></A><H3>
639
getIdVendor</H3>
640
<PRE>
641
public short <B>getIdVendor</B>()</PRE>
642
<DL>
643
<DD>Returns the Vendor ID (Assigned by <a
644
 href="http://www.usb.org">www.usb.org</a>)<br>
645
<P>
646
<DD><DL>
647
 
648
<DT><B>Returns:</B><DD>the Vendor ID</DL>
649
</DD>
650
</DL>
651
<HR>
652
 
653
<A NAME="getIManufacturer()"><!-- --></A><H3>
654
getIManufacturer</H3>
655
<PRE>
656
public byte <B>getIManufacturer</B>()</PRE>
657
<DL>
658
<DD>Returns the index of the manufacturer string descriptor.<br>
659
 If this value is 0, no string descriptor is used.
660
<P>
661
<DD><DL>
662
 
663
<DT><B>Returns:</B><DD>the index of the manufacturer string descriptor</DL>
664
</DD>
665
</DL>
666
<HR>
667
 
668
<A NAME="getIProduct()"><!-- --></A><H3>
669
getIProduct</H3>
670
<PRE>
671
public byte <B>getIProduct</B>()</PRE>
672
<DL>
673
<DD>Returns the index of the product string descriptor.<br>
674
 If this value is 0, no string descriptor is used.
675
<P>
676
<DD><DL>
677
 
678
<DT><B>Returns:</B><DD>the index of the product string descriptor</DL>
679
</DD>
680
</DL>
681
<HR>
682
 
683
<A NAME="getISerialNumber()"><!-- --></A><H3>
684
getISerialNumber</H3>
685
<PRE>
686
public byte <B>getISerialNumber</B>()</PRE>
687
<DL>
688
<DD>Returns the index of serial number string descriptor.<br>
689
 If this value is 0, no string descriptor is used.
690
<P>
691
<DD><DL>
692
 
693
<DT><B>Returns:</B><DD>the index of serial number string descriptor</DL>
694
</DD>
695
</DL>
696
<HR>
697
 
698
<A NAME="toString()"><!-- --></A><H3>
699
toString</H3>
700
<PRE>
701
public java.lang.String <B>toString</B>()</PRE>
702
<DL>
703
<DD><DL>
704
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
705
</DD>
706
<DD><DL>
707
</DL>
708
</DD>
709
</DL>
710
<!-- ========= END OF CLASS DATA ========= -->
711
<HR>
712
 
713
 
714
<!-- ======= START OF BOTTOM NAVBAR ====== -->
715
<A NAME="navbar_bottom"><!-- --></A>
716
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
717
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
718
<TR>
719
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
720
<A NAME="navbar_bottom_firstrow"><!-- --></A>
721
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
722
  <TR ALIGN="center" VALIGN="top">
723
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
724
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
725
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
726
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
727
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
728
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
729
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
730
  </TR>
731
</TABLE>
732
</TD>
733
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
734
</EM>
735
</TD>
736
</TR>
737
 
738
<TR>
739
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
740
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
741
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Endpoint_Descriptor.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
742
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
743
  <A HREF="../../../index.html?ch/ntb/usb/Usb_Device_Descriptor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
744
&nbsp;<A HREF="Usb_Device_Descriptor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
745
&nbsp;<SCRIPT type="text/javascript">
746
  <!--
747
  if(window==top) {
748
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
749
  }
750
  //-->
751
</SCRIPT>
752
<NOSCRIPT>
753
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
754
</NOSCRIPT>
755
 
756
 
757
</FONT></TD>
758
</TR>
759
<TR>
760
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
761
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
762
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
763
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
764
</TR>
765
</TABLE>
766
<A NAME="skip-navbar_bottom"></A>
767
<!-- ======== END OF BOTTOM NAVBAR ======= -->
768
 
769
<HR>
770
 
771
</BODY>
772
</HTML>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.