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_Config_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_Config_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_Config_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_Bus.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_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_Config_Descriptor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="Usb_Config_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_Config_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_Config_Descriptor</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Usb_Config_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 configuration.<br>
105
 A USB device can have several different configuration.<br>
106
 <br>
107
 The length of the configuration descriptor is
108
 <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG_SIZE"><CODE>Usb_Descriptor.USB_DT_CONFIG_SIZE</CODE></A> and the type is
109
 <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG"><CODE>Usb_Descriptor.USB_DT_CONFIG</CODE></A>.
110
<P>
111
 
112
<P>
113
<HR>
114
 
115
<P>
116
<!-- =========== FIELD SUMMARY =========== -->
117
 
118
<A NAME="field_summary"><!-- --></A>
119
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122
<B>Field Summary</B></FONT></TH>
123
</TR>
124
<TR BGCOLOR="white" CLASS="TableRowColor">
125
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
126
<CODE>static&nbsp;int</CODE></FONT></TD>
127
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#USB_MAXCONFIG">USB_MAXCONFIG</A></B></CODE>
128
 
129
<BR>
130
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maximum number of configurations per device</TD>
131
</TR>
132
</TABLE>
133
&nbsp;<A NAME="fields_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
136
<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>
137
</TR>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<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>
140
</TR>
141
</TABLE>
142
&nbsp;
143
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
144
 
145
<A NAME="constructor_summary"><!-- --></A>
146
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
147
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
148
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
149
<B>Constructor Summary</B></FONT></TH>
150
</TR>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#Usb_Config_Descriptor()">Usb_Config_Descriptor</A></B>()</CODE>
153
 
154
<BR>
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156
</TR>
157
</TABLE>
158
&nbsp;
159
<!-- ========== METHOD SUMMARY =========== -->
160
 
161
<A NAME="method_summary"><!-- --></A>
162
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
163
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
164
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
165
<B>Method Summary</B></FONT></TH>
166
</TR>
167
<TR BGCOLOR="white" CLASS="TableRowColor">
168
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169
<CODE>&nbsp;byte</CODE></FONT></TD>
170
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getBConfigurationValue()">getBConfigurationValue</A></B>()</CODE>
171
 
172
<BR>
173
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value to use as an argument to select this configuration (<A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_configuration(long, int)"><CODE>LibusbJava.usb_set_configuration(long, int)</CODE></A>).</TD>
174
</TR>
175
<TR BGCOLOR="white" CLASS="TableRowColor">
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177
<CODE>&nbsp;byte</CODE></FONT></TD>
178
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getBmAttributes()">getBmAttributes</A></B>()</CODE>
179
 
180
<BR>
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the power parameters for this configuration.</TD>
182
</TR>
183
<TR BGCOLOR="white" CLASS="TableRowColor">
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185
<CODE>&nbsp;byte</CODE></FONT></TD>
186
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getBNumInterfaces()">getBNumInterfaces</A></B>()</CODE>
187
 
188
<BR>
189
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of interfaces.</TD>
190
</TR>
191
<TR BGCOLOR="white" CLASS="TableRowColor">
192
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193
<CODE>&nbsp;byte[]</CODE></FONT></TD>
194
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getExtra()">getExtra</A></B>()</CODE>
195
 
196
<BR>
197
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the data of extra descriptor(s) if available.</TD>
198
</TR>
199
<TR BGCOLOR="white" CLASS="TableRowColor">
200
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201
<CODE>&nbsp;int</CODE></FONT></TD>
202
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getExtralen()">getExtralen</A></B>()</CODE>
203
 
204
<BR>
205
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes of the extra descriptor.</TD>
206
</TR>
207
<TR BGCOLOR="white" CLASS="TableRowColor">
208
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209
<CODE>&nbsp;byte</CODE></FONT></TD>
210
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getIConfiguration()">getIConfiguration</A></B>()</CODE>
211
 
212
<BR>
213
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the String descriptor describing this configuration.</TD>
214
</TR>
215
<TR BGCOLOR="white" CLASS="TableRowColor">
216
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Interface.html" title="class in ch.ntb.usb">Usb_Interface</A>[]</CODE></FONT></TD>
218
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getInterface()">getInterface</A></B>()</CODE>
219
 
220
<BR>
221
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the USB interface descriptors.</TD>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225
<CODE>&nbsp;byte</CODE></FONT></TD>
226
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getMaxPower()">getMaxPower</A></B>()</CODE>
227
 
228
<BR>
229
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum power consumption in 2mA units.</TD>
230
</TR>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233
<CODE>&nbsp;short</CODE></FONT></TD>
234
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getWTotalLength()">getWTotalLength</A></B>()</CODE>
235
 
236
<BR>
237
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the total length in bytes of all descriptors.</TD>
238
</TR>
239
<TR BGCOLOR="white" CLASS="TableRowColor">
240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#toString()">toString</A></B>()</CODE>
243
 
244
<BR>
245
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246
</TR>
247
</TABLE>
248
&nbsp;<A NAME="methods_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
249
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
250
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
251
<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>
252
</TR>
253
<TR BGCOLOR="white" CLASS="TableRowColor">
254
<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>
255
</TR>
256
</TABLE>
257
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
258
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
259
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
260
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
261
</TR>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
264
</TR>
265
</TABLE>
266
&nbsp;
267
<P>
268
 
269
<!-- ============ FIELD DETAIL =========== -->
270
 
271
<A NAME="field_detail"><!-- --></A>
272
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
273
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
274
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
275
<B>Field Detail</B></FONT></TH>
276
</TR>
277
</TABLE>
278
 
279
<A NAME="USB_MAXCONFIG"><!-- --></A><H3>
280
USB_MAXCONFIG</H3>
281
<PRE>
282
public static final int <B>USB_MAXCONFIG</B></PRE>
283
<DL>
284
<DD>Maximum number of configurations per device
285
<P>
286
<DL>
287
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Config_Descriptor.USB_MAXCONFIG">Constant Field Values</A></DL>
288
</DL>
289
 
290
<!-- ========= CONSTRUCTOR DETAIL ======== -->
291
 
292
<A NAME="constructor_detail"><!-- --></A>
293
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
294
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
295
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
296
<B>Constructor Detail</B></FONT></TH>
297
</TR>
298
</TABLE>
299
 
300
<A NAME="Usb_Config_Descriptor()"><!-- --></A><H3>
301
Usb_Config_Descriptor</H3>
302
<PRE>
303
public <B>Usb_Config_Descriptor</B>()</PRE>
304
<DL>
305
</DL>
306
 
307
<!-- ============ METHOD DETAIL ========== -->
308
 
309
<A NAME="method_detail"><!-- --></A>
310
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
311
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
312
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
313
<B>Method Detail</B></FONT></TH>
314
</TR>
315
</TABLE>
316
 
317
<A NAME="getBConfigurationValue()"><!-- --></A><H3>
318
getBConfigurationValue</H3>
319
<PRE>
320
public byte <B>getBConfigurationValue</B>()</PRE>
321
<DL>
322
<DD>Returns the value to use as an argument to select this configuration (<A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_configuration(long, int)"><CODE>LibusbJava.usb_set_configuration(long, int)</CODE></A>).
323
<P>
324
<DD><DL>
325
 
326
<DT><B>Returns:</B><DD>the value to use as an argument to select this configuration</DL>
327
</DD>
328
</DL>
329
<HR>
330
 
331
<A NAME="getBmAttributes()"><!-- --></A><H3>
332
getBmAttributes</H3>
333
<PRE>
334
public byte <B>getBmAttributes</B>()</PRE>
335
<DL>
336
<DD>Returns the power parameters for this configuration.<br>
337
 <br>
338
 Bit 7: Reserved, set to 1 (USB 1.0 Bus Powered)<br>
339
 Bit 6: Self Powered<br>
340
 Bit 5: Remote Wakeup<br>
341
 Bit 4..0: Reserved, set to 0
342
<P>
343
<DD><DL>
344
 
345
<DT><B>Returns:</B><DD>the power parameters for this configuration</DL>
346
</DD>
347
</DL>
348
<HR>
349
 
350
<A NAME="getBNumInterfaces()"><!-- --></A><H3>
351
getBNumInterfaces</H3>
352
<PRE>
353
public byte <B>getBNumInterfaces</B>()</PRE>
354
<DL>
355
<DD>Returns the number of interfaces.<br>
356
<P>
357
<DD><DL>
358
 
359
<DT><B>Returns:</B><DD>the number of interfaces</DL>
360
</DD>
361
</DL>
362
<HR>
363
 
364
<A NAME="getExtra()"><!-- --></A><H3>
365
getExtra</H3>
366
<PRE>
367
public byte[] <B>getExtra</B>()</PRE>
368
<DL>
369
<DD>Returns the data of extra descriptor(s) if available.<br>
370
<P>
371
<DD><DL>
372
 
373
<DT><B>Returns:</B><DD>null or a byte array with the extra descriptor data</DL>
374
</DD>
375
</DL>
376
<HR>
377
 
378
<A NAME="getExtralen()"><!-- --></A><H3>
379
getExtralen</H3>
380
<PRE>
381
public int <B>getExtralen</B>()</PRE>
382
<DL>
383
<DD>Returns the number of bytes of the extra descriptor.<br>
384
<P>
385
<DD><DL>
386
 
387
<DT><B>Returns:</B><DD>the number of bytes of the extra descriptor</DL>
388
</DD>
389
</DL>
390
<HR>
391
 
392
<A NAME="getIConfiguration()"><!-- --></A><H3>
393
getIConfiguration</H3>
394
<PRE>
395
public byte <B>getIConfiguration</B>()</PRE>
396
<DL>
397
<DD>Returns the index of the String descriptor describing this configuration.<br>
398
<P>
399
<DD><DL>
400
 
401
<DT><B>Returns:</B><DD>the index of the String descriptor</DL>
402
</DD>
403
</DL>
404
<HR>
405
 
406
<A NAME="getInterface()"><!-- --></A><H3>
407
getInterface</H3>
408
<PRE>
409
public <A HREF="../../../ch/ntb/usb/Usb_Interface.html" title="class in ch.ntb.usb">Usb_Interface</A>[] <B>getInterface</B>()</PRE>
410
<DL>
411
<DD>Returns the USB interface descriptors.<br>
412
<P>
413
<DD><DL>
414
 
415
<DT><B>Returns:</B><DD>the USB interface descriptors</DL>
416
</DD>
417
</DL>
418
<HR>
419
 
420
<A NAME="getMaxPower()"><!-- --></A><H3>
421
getMaxPower</H3>
422
<PRE>
423
public byte <B>getMaxPower</B>()</PRE>
424
<DL>
425
<DD>Returns the maximum power consumption in 2mA units.<br>
426
<P>
427
<DD><DL>
428
 
429
<DT><B>Returns:</B><DD>the maximum power consumption in 2mA units</DL>
430
</DD>
431
</DL>
432
<HR>
433
 
434
<A NAME="getWTotalLength()"><!-- --></A><H3>
435
getWTotalLength</H3>
436
<PRE>
437
public short <B>getWTotalLength</B>()</PRE>
438
<DL>
439
<DD>Returns the total length in bytes of all descriptors.<br>
440
 When the configuration descriptor is read, it returns the entire
441
 configuration hierarchy which includes all related interface and endpoint
442
 descriptors. The <code>wTotalLength</code> field reflects the number of
443
 bytes in the hierarchy.
444
<P>
445
<DD><DL>
446
 
447
<DT><B>Returns:</B><DD>the total length in bytes of all descriptors</DL>
448
</DD>
449
</DL>
450
<HR>
451
 
452
<A NAME="toString()"><!-- --></A><H3>
453
toString</H3>
454
<PRE>
455
public java.lang.String <B>toString</B>()</PRE>
456
<DL>
457
<DD><DL>
458
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
459
</DD>
460
<DD><DL>
461
</DL>
462
</DD>
463
</DL>
464
<!-- ========= END OF CLASS DATA ========= -->
465
<HR>
466
 
467
 
468
<!-- ======= START OF BOTTOM NAVBAR ====== -->
469
<A NAME="navbar_bottom"><!-- --></A>
470
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
471
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
472
<TR>
473
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
474
<A NAME="navbar_bottom_firstrow"><!-- --></A>
475
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
476
  <TR ALIGN="center" VALIGN="top">
477
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
478
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
479
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
480
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
481
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
482
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
483
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
484
  </TR>
485
</TABLE>
486
</TD>
487
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
488
</EM>
489
</TD>
490
</TR>
491
 
492
<TR>
493
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
494
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
495
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
496
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
497
  <A HREF="../../../index.html?ch/ntb/usb/Usb_Config_Descriptor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
498
&nbsp;<A HREF="Usb_Config_Descriptor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
499
&nbsp;<SCRIPT type="text/javascript">
500
  <!--
501
  if(window==top) {
502
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
503
  }
504
  //-->
505
</SCRIPT>
506
<NOSCRIPT>
507
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
508
</NOSCRIPT>
509
 
510
 
511
</FONT></TD>
512
</TR>
513
<TR>
514
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
515
  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>
516
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
517
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>
518
</TR>
519
</TABLE>
520
<A NAME="skip-navbar_bottom"></A>
521
<!-- ======== END OF BOTTOM NAVBAR ======= -->
522
 
523
<HR>
524
 
525
</BODY>
526
</HTML>

powered by: WebSVN 2.1.0

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