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

Subversion Repositories usb_fpga_2_16

[/] [usb_fpga_2_16/] [trunk/] [docs/] [java/] [ch/] [ntb/] [usb/] [USB.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
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";
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/LibusbJava.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Bus.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.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="USB.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</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>ch.ntb.usb.USB</B>
96
</PRE>
97
<HR>
98
<DL>
99
<DT><PRE>public class <B>USB</B><DT>extends java.lang.Object</DL>
100
</PRE>
101
 
102
<P>
103
This class manages all USB devices and defines some USB specific constants.<br>
104
<P>
105
 
106
<P>
107
<HR>
108
 
109
<P>
110
<!-- =========== FIELD SUMMARY =========== -->
111
 
112
<A NAME="field_summary"><!-- --></A>
113
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
116
<B>Field Summary</B></FONT></TH>
117
</TR>
118
<TR BGCOLOR="white" CLASS="TableRowColor">
119
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
120
<CODE>static&nbsp;int</CODE></FONT></TD>
121
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#FULLSPEED_MAX_BULK_PACKET_SIZE">FULLSPEED_MAX_BULK_PACKET_SIZE</A></B></CODE>
122
 
123
<BR>
124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The maximum packet size of a bulk transfer when operating in fullspeed
125
 (12 MB/s) mode.</TD>
126
</TR>
127
<TR BGCOLOR="white" CLASS="TableRowColor">
128
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
129
<CODE>static&nbsp;int</CODE></FONT></TD>
130
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#HIGHSPEED_MAX_BULK_PACKET_SIZE">HIGHSPEED_MAX_BULK_PACKET_SIZE</A></B></CODE>
131
 
132
<BR>
133
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The maximum packet size of a bulk transfer when operating in highspeed
134
 (480 MB/s) mode.</TD>
135
</TR>
136
<TR BGCOLOR="white" CLASS="TableRowColor">
137
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138
<CODE>static&nbsp;int</CODE></FONT></TD>
139
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_CLEAR_FEATURE">REQ_CLEAR_FEATURE</A></B></CODE>
140
 
141
<BR>
142
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request is used to clear or disable a specific feature (USB spec
143
 9.4.1).</TD>
144
</TR>
145
<TR BGCOLOR="white" CLASS="TableRowColor">
146
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147
<CODE>static&nbsp;int</CODE></FONT></TD>
148
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_GET_CONFIGURATION">REQ_GET_CONFIGURATION</A></B></CODE>
149
 
150
<BR>
151
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request returns the current device configuration value (USB spec
152
 9.4.2).</TD>
153
</TR>
154
<TR BGCOLOR="white" CLASS="TableRowColor">
155
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156
<CODE>static&nbsp;int</CODE></FONT></TD>
157
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_GET_DESCRIPTOR">REQ_GET_DESCRIPTOR</A></B></CODE>
158
 
159
<BR>
160
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request returns the specified descriptor if the descriptor exists
161
 (USB spec 9.4.3).</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>static&nbsp;int</CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_GET_INTERFACE">REQ_GET_INTERFACE</A></B></CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request returns the selected alternate setting for the specified
170
 interface (USB spec 9.4.4).</TD>
171
</TR>
172
<TR BGCOLOR="white" CLASS="TableRowColor">
173
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174
<CODE>static&nbsp;int</CODE></FONT></TD>
175
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_GET_STATUS">REQ_GET_STATUS</A></B></CODE>
176
 
177
<BR>
178
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request returns status for the specified recipient (USB spec 9.4.5).</TD>
179
</TR>
180
<TR BGCOLOR="white" CLASS="TableRowColor">
181
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182
<CODE>static&nbsp;int</CODE></FONT></TD>
183
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_SET_ADDRESS">REQ_SET_ADDRESS</A></B></CODE>
184
 
185
<BR>
186
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request sets the device address for all future device accesses (USB
187
 spec 9.4.6).</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.html#REQ_SET_CONFIGURATION">REQ_SET_CONFIGURATION</A></B></CODE>
193
 
194
<BR>
195
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request sets the device configuration (USB spec 9.4.7).</TD>
196
</TR>
197
<TR BGCOLOR="white" CLASS="TableRowColor">
198
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199
<CODE>static&nbsp;int</CODE></FONT></TD>
200
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_SET_DESCRIPTOR">REQ_SET_DESCRIPTOR</A></B></CODE>
201
 
202
<BR>
203
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request is optional and may be used to update existing descriptors
204
 or new descriptors may be added (USB spec 9.4.8).</TD>
205
</TR>
206
<TR BGCOLOR="white" CLASS="TableRowColor">
207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208
<CODE>static&nbsp;int</CODE></FONT></TD>
209
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_SET_FEATURE">REQ_SET_FEATURE</A></B></CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request is used to set or enable a specific feature (USB spec
213
 9.4.9).</TD>
214
</TR>
215
<TR BGCOLOR="white" CLASS="TableRowColor">
216
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217
<CODE>static&nbsp;int</CODE></FONT></TD>
218
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_SET_INTERFACE">REQ_SET_INTERFACE</A></B></CODE>
219
 
220
<BR>
221
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request allows the host to select an alternate setting for the
222
 specified interface (USB spec 9.4.10).</TD>
223
</TR>
224
<TR BGCOLOR="white" CLASS="TableRowColor">
225
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
226
<CODE>static&nbsp;int</CODE></FONT></TD>
227
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_SYNCH_FRAME">REQ_SYNCH_FRAME</A></B></CODE>
228
 
229
<BR>
230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This request is used to set and then report an endpoint’s synchronization
231
 frame (USB spec 9.4.11).</TD>
232
</TR>
233
<TR BGCOLOR="white" CLASS="TableRowColor">
234
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235
<CODE>static&nbsp;int</CODE></FONT></TD>
236
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_DIR_DEVICE_TO_HOST">REQ_TYPE_DIR_DEVICE_TO_HOST</A></B></CODE>
237
 
238
<BR>
239
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identifies the direction of data transfer in the second phase of the
240
 control transfer.</TD>
241
</TR>
242
<TR BGCOLOR="white" CLASS="TableRowColor">
243
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244
<CODE>static&nbsp;int</CODE></FONT></TD>
245
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_DIR_HOST_TO_DEVICE">REQ_TYPE_DIR_HOST_TO_DEVICE</A></B></CODE>
246
 
247
<BR>
248
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identifies the direction of data transfer in the second phase of the
249
 control transfer.</TD>
250
</TR>
251
<TR BGCOLOR="white" CLASS="TableRowColor">
252
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253
<CODE>static&nbsp;int</CODE></FONT></TD>
254
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_RECIP_DEVICE">REQ_TYPE_RECIP_DEVICE</A></B></CODE>
255
 
256
<BR>
257
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the intended recipient of the request.</TD>
258
</TR>
259
<TR BGCOLOR="white" CLASS="TableRowColor">
260
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261
<CODE>static&nbsp;int</CODE></FONT></TD>
262
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_RECIP_ENDPOINT">REQ_TYPE_RECIP_ENDPOINT</A></B></CODE>
263
 
264
<BR>
265
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the intended recipient of the request.</TD>
266
</TR>
267
<TR BGCOLOR="white" CLASS="TableRowColor">
268
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269
<CODE>static&nbsp;int</CODE></FONT></TD>
270
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_RECIP_INTERFACE">REQ_TYPE_RECIP_INTERFACE</A></B></CODE>
271
 
272
<BR>
273
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the intended recipient of the request.</TD>
274
</TR>
275
<TR BGCOLOR="white" CLASS="TableRowColor">
276
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
277
<CODE>static&nbsp;int</CODE></FONT></TD>
278
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_RECIP_OTHER">REQ_TYPE_RECIP_OTHER</A></B></CODE>
279
 
280
<BR>
281
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the intended recipient of the request.</TD>
282
</TR>
283
<TR BGCOLOR="white" CLASS="TableRowColor">
284
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
285
<CODE>static&nbsp;int</CODE></FONT></TD>
286
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_TYPE_CLASS">REQ_TYPE_TYPE_CLASS</A></B></CODE>
287
 
288
<BR>
289
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the type of the request.</TD>
290
</TR>
291
<TR BGCOLOR="white" CLASS="TableRowColor">
292
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293
<CODE>static&nbsp;int</CODE></FONT></TD>
294
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_TYPE_RESERVED">REQ_TYPE_TYPE_RESERVED</A></B></CODE>
295
 
296
<BR>
297
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the type of the request.</TD>
298
</TR>
299
<TR BGCOLOR="white" CLASS="TableRowColor">
300
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
301
<CODE>static&nbsp;int</CODE></FONT></TD>
302
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_TYPE_STANDARD">REQ_TYPE_TYPE_STANDARD</A></B></CODE>
303
 
304
<BR>
305
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the type of the request.</TD>
306
</TR>
307
<TR BGCOLOR="white" CLASS="TableRowColor">
308
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309
<CODE>static&nbsp;int</CODE></FONT></TD>
310
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#REQ_TYPE_TYPE_VENDOR">REQ_TYPE_TYPE_VENDOR</A></B></CODE>
311
 
312
<BR>
313
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies the type of the request.</TD>
314
</TR>
315
</TABLE>
316
&nbsp;
317
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
318
 
319
<A NAME="constructor_summary"><!-- --></A>
320
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
321
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
322
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
323
<B>Constructor Summary</B></FONT></TH>
324
</TR>
325
<TR BGCOLOR="white" CLASS="TableRowColor">
326
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#USB()">USB</A></B>()</CODE>
327
 
328
<BR>
329
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
330
</TR>
331
</TABLE>
332
&nbsp;
333
<!-- ========== METHOD SUMMARY =========== -->
334
 
335
<A NAME="method_summary"><!-- --></A>
336
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
337
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
338
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
339
<B>Method Summary</B></FONT></TH>
340
</TR>
341
<TR BGCOLOR="white" CLASS="TableRowColor">
342
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
343
<CODE>static&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb">Usb_Bus</A></CODE></FONT></TD>
344
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#getBus()">getBus</A></B>()</CODE>
345
 
346
<BR>
347
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the root <A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb"><CODE>Usb_Bus</CODE></A> element.</TD>
348
</TR>
349
<TR BGCOLOR="white" CLASS="TableRowColor">
350
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
351
<CODE>static&nbsp;<A HREF="../../../ch/ntb/usb/Device.html" title="class in ch.ntb.usb">Device</A></CODE></FONT></TD>
352
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short)">getDevice</A></B>(short&nbsp;idVendor,
353
          short&nbsp;idProduct)</CODE>
354
 
355
<BR>
356
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See <A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)"><CODE>getDevice(short, short, String)</CODE></A>.</TD>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
360
<CODE>static&nbsp;<A HREF="../../../ch/ntb/usb/Device.html" title="class in ch.ntb.usb">Device</A></CODE></FONT></TD>
361
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)">getDevice</A></B>(short&nbsp;idVendor,
362
          short&nbsp;idProduct,
363
          java.lang.String&nbsp;filename)</CODE>
364
 
365
<BR>
366
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new device an register it in a device queue.</TD>
367
</TR>
368
<TR BGCOLOR="white" CLASS="TableRowColor">
369
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
370
<CODE>static&nbsp;void</CODE></FONT></TD>
371
<TD><CODE><B><A HREF="../../../ch/ntb/usb/USB.html#init()">init</A></B>()</CODE>
372
 
373
<BR>
374
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Explicitly calls <A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_init()"><CODE>LibusbJava.usb_init()</CODE></A>.</TD>
375
</TR>
376
</TABLE>
377
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
378
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
379
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
380
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
381
</TR>
382
<TR BGCOLOR="white" CLASS="TableRowColor">
383
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
384
</TR>
385
</TABLE>
386
&nbsp;
387
<P>
388
 
389
<!-- ============ FIELD DETAIL =========== -->
390
 
391
<A NAME="field_detail"><!-- --></A>
392
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
393
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
394
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
395
<B>Field Detail</B></FONT></TH>
396
</TR>
397
</TABLE>
398
 
399
<A NAME="REQ_GET_STATUS"><!-- --></A><H3>
400
REQ_GET_STATUS</H3>
401
<PRE>
402
public static final int <B>REQ_GET_STATUS</B></PRE>
403
<DL>
404
<DD>This request returns status for the specified recipient (USB spec 9.4.5).
405
<P>
406
<DL>
407
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
408
      boolean)</CODE></A>,
409
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_GET_STATUS">Constant Field Values</A></DL>
410
</DL>
411
<HR>
412
 
413
<A NAME="REQ_CLEAR_FEATURE"><!-- --></A><H3>
414
REQ_CLEAR_FEATURE</H3>
415
<PRE>
416
public static final int <B>REQ_CLEAR_FEATURE</B></PRE>
417
<DL>
418
<DD>This request is used to clear or disable a specific feature (USB spec
419
 9.4.1).
420
<P>
421
<DL>
422
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
423
      boolean)</CODE></A>,
424
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_CLEAR_FEATURE">Constant Field Values</A></DL>
425
</DL>
426
<HR>
427
 
428
<A NAME="REQ_SET_FEATURE"><!-- --></A><H3>
429
REQ_SET_FEATURE</H3>
430
<PRE>
431
public static final int <B>REQ_SET_FEATURE</B></PRE>
432
<DL>
433
<DD>This request is used to set or enable a specific feature (USB spec
434
 9.4.9).
435
<P>
436
<DL>
437
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
438
      boolean)</CODE></A>,
439
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SET_FEATURE">Constant Field Values</A></DL>
440
</DL>
441
<HR>
442
 
443
<A NAME="REQ_SET_ADDRESS"><!-- --></A><H3>
444
REQ_SET_ADDRESS</H3>
445
<PRE>
446
public static final int <B>REQ_SET_ADDRESS</B></PRE>
447
<DL>
448
<DD>This request sets the device address for all future device accesses (USB
449
 spec 9.4.6).
450
<P>
451
<DL>
452
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
453
      boolean)</CODE></A>,
454
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SET_ADDRESS">Constant Field Values</A></DL>
455
</DL>
456
<HR>
457
 
458
<A NAME="REQ_GET_DESCRIPTOR"><!-- --></A><H3>
459
REQ_GET_DESCRIPTOR</H3>
460
<PRE>
461
public static final int <B>REQ_GET_DESCRIPTOR</B></PRE>
462
<DL>
463
<DD>This request returns the specified descriptor if the descriptor exists
464
 (USB spec 9.4.3).
465
<P>
466
<DL>
467
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
468
      boolean)</CODE></A>,
469
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_GET_DESCRIPTOR">Constant Field Values</A></DL>
470
</DL>
471
<HR>
472
 
473
<A NAME="REQ_SET_DESCRIPTOR"><!-- --></A><H3>
474
REQ_SET_DESCRIPTOR</H3>
475
<PRE>
476
public static final int <B>REQ_SET_DESCRIPTOR</B></PRE>
477
<DL>
478
<DD>This request is optional and may be used to update existing descriptors
479
 or new descriptors may be added (USB spec 9.4.8).
480
<P>
481
<DL>
482
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
483
      boolean)</CODE></A>,
484
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SET_DESCRIPTOR">Constant Field Values</A></DL>
485
</DL>
486
<HR>
487
 
488
<A NAME="REQ_GET_CONFIGURATION"><!-- --></A><H3>
489
REQ_GET_CONFIGURATION</H3>
490
<PRE>
491
public static final int <B>REQ_GET_CONFIGURATION</B></PRE>
492
<DL>
493
<DD>This request returns the current device configuration value (USB spec
494
 9.4.2).
495
<P>
496
<DL>
497
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
498
      boolean)</CODE></A>,
499
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_GET_CONFIGURATION">Constant Field Values</A></DL>
500
</DL>
501
<HR>
502
 
503
<A NAME="REQ_SET_CONFIGURATION"><!-- --></A><H3>
504
REQ_SET_CONFIGURATION</H3>
505
<PRE>
506
public static final int <B>REQ_SET_CONFIGURATION</B></PRE>
507
<DL>
508
<DD>This request sets the device configuration (USB spec 9.4.7).
509
<P>
510
<DL>
511
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
512
      boolean)</CODE></A>,
513
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SET_CONFIGURATION">Constant Field Values</A></DL>
514
</DL>
515
<HR>
516
 
517
<A NAME="REQ_GET_INTERFACE"><!-- --></A><H3>
518
REQ_GET_INTERFACE</H3>
519
<PRE>
520
public static final int <B>REQ_GET_INTERFACE</B></PRE>
521
<DL>
522
<DD>This request returns the selected alternate setting for the specified
523
 interface (USB spec 9.4.4).
524
<P>
525
<DL>
526
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
527
      boolean)</CODE></A>,
528
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_GET_INTERFACE">Constant Field Values</A></DL>
529
</DL>
530
<HR>
531
 
532
<A NAME="REQ_SET_INTERFACE"><!-- --></A><H3>
533
REQ_SET_INTERFACE</H3>
534
<PRE>
535
public static final int <B>REQ_SET_INTERFACE</B></PRE>
536
<DL>
537
<DD>This request allows the host to select an alternate setting for the
538
 specified interface (USB spec 9.4.10).
539
<P>
540
<DL>
541
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
542
      boolean)</CODE></A>,
543
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SET_INTERFACE">Constant Field Values</A></DL>
544
</DL>
545
<HR>
546
 
547
<A NAME="REQ_SYNCH_FRAME"><!-- --></A><H3>
548
REQ_SYNCH_FRAME</H3>
549
<PRE>
550
public static final int <B>REQ_SYNCH_FRAME</B></PRE>
551
<DL>
552
<DD>This request is used to set and then report an endpoint’s synchronization
553
 frame (USB spec 9.4.11).
554
<P>
555
<DL>
556
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
557
      boolean)</CODE></A>,
558
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_SYNCH_FRAME">Constant Field Values</A></DL>
559
</DL>
560
<HR>
561
 
562
<A NAME="REQ_TYPE_DIR_HOST_TO_DEVICE"><!-- --></A><H3>
563
REQ_TYPE_DIR_HOST_TO_DEVICE</H3>
564
<PRE>
565
public static final int <B>REQ_TYPE_DIR_HOST_TO_DEVICE</B></PRE>
566
<DL>
567
<DD>Identifies the direction of data transfer in the second phase of the
568
 control transfer.<br>
569
 The state of the Direction bit is ignored if the wLength field is zero,
570
 signifying there is no Data stage.<br>
571
 Specifies bit 7 of bmRequestType.
572
<P>
573
<DL>
574
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
575
      boolean)</CODE></A>,
576
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_DIR_HOST_TO_DEVICE">Constant Field Values</A></DL>
577
</DL>
578
<HR>
579
 
580
<A NAME="REQ_TYPE_DIR_DEVICE_TO_HOST"><!-- --></A><H3>
581
REQ_TYPE_DIR_DEVICE_TO_HOST</H3>
582
<PRE>
583
public static final int <B>REQ_TYPE_DIR_DEVICE_TO_HOST</B></PRE>
584
<DL>
585
<DD>Identifies the direction of data transfer in the second phase of the
586
 control transfer.<br>
587
 The state of the Direction bit is ignored if the wLength field is zero,
588
 signifying there is no Data stage.<br>
589
 Specifies bit 7 of bmRequestType.
590
<P>
591
<DL>
592
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
593
      boolean)</CODE></A>,
594
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_DIR_DEVICE_TO_HOST">Constant Field Values</A></DL>
595
</DL>
596
<HR>
597
 
598
<A NAME="REQ_TYPE_TYPE_STANDARD"><!-- --></A><H3>
599
REQ_TYPE_TYPE_STANDARD</H3>
600
<PRE>
601
public static final int <B>REQ_TYPE_TYPE_STANDARD</B></PRE>
602
<DL>
603
<DD>Specifies the type of the request.<br>
604
 Specifies bits 6..5 of bmRequestType.
605
<P>
606
<DL>
607
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
608
      boolean)</CODE></A>,
609
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_TYPE_STANDARD">Constant Field Values</A></DL>
610
</DL>
611
<HR>
612
 
613
<A NAME="REQ_TYPE_TYPE_CLASS"><!-- --></A><H3>
614
REQ_TYPE_TYPE_CLASS</H3>
615
<PRE>
616
public static final int <B>REQ_TYPE_TYPE_CLASS</B></PRE>
617
<DL>
618
<DD>Specifies the type of the request.<br>
619
 Specifies bits 6..5 of bmRequestType.
620
<P>
621
<DL>
622
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
623
      boolean)</CODE></A>,
624
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_TYPE_CLASS">Constant Field Values</A></DL>
625
</DL>
626
<HR>
627
 
628
<A NAME="REQ_TYPE_TYPE_VENDOR"><!-- --></A><H3>
629
REQ_TYPE_TYPE_VENDOR</H3>
630
<PRE>
631
public static final int <B>REQ_TYPE_TYPE_VENDOR</B></PRE>
632
<DL>
633
<DD>Specifies the type of the request.<br>
634
 Specifies bits 6..5 of bmRequestType.
635
<P>
636
<DL>
637
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
638
      boolean)</CODE></A>,
639
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_TYPE_VENDOR">Constant Field Values</A></DL>
640
</DL>
641
<HR>
642
 
643
<A NAME="REQ_TYPE_TYPE_RESERVED"><!-- --></A><H3>
644
REQ_TYPE_TYPE_RESERVED</H3>
645
<PRE>
646
public static final int <B>REQ_TYPE_TYPE_RESERVED</B></PRE>
647
<DL>
648
<DD>Specifies the type of the request.<br>
649
 Specifies bits 6..5 of bmRequestType.
650
<P>
651
<DL>
652
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
653
      boolean)</CODE></A>,
654
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_TYPE_RESERVED">Constant Field Values</A></DL>
655
</DL>
656
<HR>
657
 
658
<A NAME="REQ_TYPE_RECIP_DEVICE"><!-- --></A><H3>
659
REQ_TYPE_RECIP_DEVICE</H3>
660
<PRE>
661
public static final int <B>REQ_TYPE_RECIP_DEVICE</B></PRE>
662
<DL>
663
<DD>Specifies the intended recipient of the request.<br>
664
 Requests may be directed to the device, an interface on the device, or a
665
 specific endpoint on a device. When an interface or endpoint is
666
 specified, the wIndex field identifies the interface or endpoint.<br>
667
 Specifies bits 4..0 of bmRequestType.
668
<P>
669
<DL>
670
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
671
      boolean)</CODE></A>,
672
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_RECIP_DEVICE">Constant Field Values</A></DL>
673
</DL>
674
<HR>
675
 
676
<A NAME="REQ_TYPE_RECIP_INTERFACE"><!-- --></A><H3>
677
REQ_TYPE_RECIP_INTERFACE</H3>
678
<PRE>
679
public static final int <B>REQ_TYPE_RECIP_INTERFACE</B></PRE>
680
<DL>
681
<DD>Specifies the intended recipient of the request.<br>
682
 Requests may be directed to the device, an interface on the device, or a
683
 specific endpoint on a device. When an interface or endpoint is
684
 specified, the wIndex field identifies the interface or endpoint.<br>
685
 Specifies bits 4..0 of bmRequestType.
686
<P>
687
<DL>
688
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
689
      boolean)</CODE></A>,
690
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_RECIP_INTERFACE">Constant Field Values</A></DL>
691
</DL>
692
<HR>
693
 
694
<A NAME="REQ_TYPE_RECIP_ENDPOINT"><!-- --></A><H3>
695
REQ_TYPE_RECIP_ENDPOINT</H3>
696
<PRE>
697
public static final int <B>REQ_TYPE_RECIP_ENDPOINT</B></PRE>
698
<DL>
699
<DD>Specifies the intended recipient of the request.<br>
700
 Requests may be directed to the device, an interface on the device, or a
701
 specific endpoint on a device. When an interface or endpoint is
702
 specified, the wIndex field identifies the interface or endpoint.<br>
703
 Specifies bits 4..0 of bmRequestType.
704
<P>
705
<DL>
706
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
707
      boolean)</CODE></A>,
708
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_RECIP_ENDPOINT">Constant Field Values</A></DL>
709
</DL>
710
<HR>
711
 
712
<A NAME="REQ_TYPE_RECIP_OTHER"><!-- --></A><H3>
713
REQ_TYPE_RECIP_OTHER</H3>
714
<PRE>
715
public static final int <B>REQ_TYPE_RECIP_OTHER</B></PRE>
716
<DL>
717
<DD>Specifies the intended recipient of the request.<br>
718
 Requests may be directed to the device, an interface on the device, or a
719
 specific endpoint on a device. When an interface or endpoint is
720
 specified, the wIndex field identifies the interface or endpoint.<br>
721
 Specifies bits 4..0 of bmRequestType.
722
<P>
723
<DL>
724
<DT><B>See Also:</B><DD><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)"><CODE>Device.controlMsg(int, int, int, int, byte[], int, int,
725
      boolean)</CODE></A>,
726
<A HREF="../../../constant-values.html#ch.ntb.usb.USB.REQ_TYPE_RECIP_OTHER">Constant Field Values</A></DL>
727
</DL>
728
<HR>
729
 
730
<A NAME="HIGHSPEED_MAX_BULK_PACKET_SIZE"><!-- --></A><H3>
731
HIGHSPEED_MAX_BULK_PACKET_SIZE</H3>
732
<PRE>
733
public static int <B>HIGHSPEED_MAX_BULK_PACKET_SIZE</B></PRE>
734
<DL>
735
<DD>The maximum packet size of a bulk transfer when operating in highspeed
736
 (480 MB/s) mode.
737
<P>
738
<DL>
739
</DL>
740
</DL>
741
<HR>
742
 
743
<A NAME="FULLSPEED_MAX_BULK_PACKET_SIZE"><!-- --></A><H3>
744
FULLSPEED_MAX_BULK_PACKET_SIZE</H3>
745
<PRE>
746
public static int <B>FULLSPEED_MAX_BULK_PACKET_SIZE</B></PRE>
747
<DL>
748
<DD>The maximum packet size of a bulk transfer when operating in fullspeed
749
 (12 MB/s) mode.
750
<P>
751
<DL>
752
</DL>
753
</DL>
754
 
755
<!-- ========= CONSTRUCTOR DETAIL ======== -->
756
 
757
<A NAME="constructor_detail"><!-- --></A>
758
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
759
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
760
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
761
<B>Constructor Detail</B></FONT></TH>
762
</TR>
763
</TABLE>
764
 
765
<A NAME="USB()"><!-- --></A><H3>
766
USB</H3>
767
<PRE>
768
public <B>USB</B>()</PRE>
769
<DL>
770
</DL>
771
 
772
<!-- ============ METHOD DETAIL ========== -->
773
 
774
<A NAME="method_detail"><!-- --></A>
775
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
776
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
777
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
778
<B>Method Detail</B></FONT></TH>
779
</TR>
780
</TABLE>
781
 
782
<A NAME="getDevice(short, short, java.lang.String)"><!-- --></A><H3>
783
getDevice</H3>
784
<PRE>
785
public static <A HREF="../../../ch/ntb/usb/Device.html" title="class in ch.ntb.usb">Device</A> <B>getDevice</B>(short&nbsp;idVendor,
786
                               short&nbsp;idProduct,
787
                               java.lang.String&nbsp;filename)</PRE>
788
<DL>
789
<DD>Create a new device an register it in a device queue. If the device is
790
 already registered, a reference to it will be returned.<br>
791
<P>
792
<DD><DL>
793
<DT><B>Parameters:</B><DD><CODE>idVendor</CODE> - the vendor id of the USB device<DD><CODE>idProduct</CODE> - the product id of the USB device<DD><CODE>filename</CODE> - an optional filename which can be used to distinguish multiple
794
            devices with the same vendor and product id.
795
<DT><B>Returns:</B><DD>a newly created device or an already registered device</DL>
796
</DD>
797
</DL>
798
<HR>
799
 
800
<A NAME="getDevice(short, short)"><!-- --></A><H3>
801
getDevice</H3>
802
<PRE>
803
public static <A HREF="../../../ch/ntb/usb/Device.html" title="class in ch.ntb.usb">Device</A> <B>getDevice</B>(short&nbsp;idVendor,
804
                               short&nbsp;idProduct)</PRE>
805
<DL>
806
<DD>See <A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)"><CODE>getDevice(short, short, String)</CODE></A>. The parameter
807
 <code>filename</code> is set to null.
808
<P>
809
<DD><DL>
810
<DT><B>Parameters:</B><DD><CODE>idVendor</CODE> - <DD><CODE>idProduct</CODE> -
811
<DT><B>Returns:</B><DD>a newly created device or an already registered device</DL>
812
</DD>
813
</DL>
814
<HR>
815
 
816
<A NAME="getBus()"><!-- --></A><H3>
817
getBus</H3>
818
<PRE>
819
public static <A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb">Usb_Bus</A> <B>getBus</B>()
820
                      throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
821
<DL>
822
<DD>Returns the root <A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb"><CODE>Usb_Bus</CODE></A> element.
823
<P>
824
<DD><DL>
825
 
826
<DT><B>Returns:</B><DD>the root <A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb"><CODE>Usb_Bus</CODE></A> element
827
<DT><B>Throws:</B>
828
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
829
</DD>
830
</DL>
831
<HR>
832
 
833
<A NAME="init()"><!-- --></A><H3>
834
init</H3>
835
<PRE>
836
public static void <B>init</B>()</PRE>
837
<DL>
838
<DD>Explicitly calls <A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_init()"><CODE>LibusbJava.usb_init()</CODE></A>. Note that you don't need
839
 to call this procedure as it is called implicitly when creating a new
840
 device with <A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)"><CODE>getDevice(short, short, String)</CODE></A>.
841
<P>
842
<DD><DL>
843
</DL>
844
</DD>
845
</DL>
846
<!-- ========= END OF CLASS DATA ========= -->
847
<HR>
848
 
849
 
850
<!-- ======= START OF BOTTOM NAVBAR ====== -->
851
<A NAME="navbar_bottom"><!-- --></A>
852
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
853
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
854
<TR>
855
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
856
<A NAME="navbar_bottom_firstrow"><!-- --></A>
857
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
858
  <TR ALIGN="center" VALIGN="top">
859
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
860
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
861
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
862
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
863
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
864
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
865
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
866
  </TR>
867
</TABLE>
868
</TD>
869
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
870
</EM>
871
</TD>
872
</TR>
873
 
874
<TR>
875
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
876
&nbsp;<A HREF="../../../ch/ntb/usb/LibusbJava.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>&nbsp;
877
&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
878
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
879
  <A HREF="../../../index.html?ch/ntb/usb/USB.html" target="_top"><B>FRAMES</B></A>  &nbsp;
880
&nbsp;<A HREF="USB.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
881
&nbsp;<SCRIPT type="text/javascript">
882
  <!--
883
  if(window==top) {
884
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
885
  }
886
  //-->
887
</SCRIPT>
888
<NOSCRIPT>
889
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
890
</NOSCRIPT>
891
 
892
 
893
</FONT></TD>
894
</TR>
895
<TR>
896
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
897
  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>
898
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
899
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>
900
</TR>
901
</TABLE>
902
<A NAME="skip-navbar_bottom"></A>
903
<!-- ======== END OF BOTTOM NAVBAR ======= -->
904
 
905
<HR>
906
 
907
</BODY>
908
</HTML>

powered by: WebSVN 2.1.0

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