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_02) on Fri Jun 11 14:15:44 CEST 2010 -->
|
6 |
|
|
<TITLE>
|
7 |
|
|
ch.ntb.usb
|
8 |
|
|
</TITLE>
|
9 |
|
|
|
10 |
|
|
<META NAME="date" CONTENT="2010-06-11">
|
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="ch.ntb.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> </TD>
|
41 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD>
|
42 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
|
43 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
44 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
45 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
46 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 |
|
|
PREV PACKAGE
|
58 |
|
|
<A HREF="../../../ztex/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
|
59 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
60 |
|
|
<A HREF="../../../index.html?ch/ntb/usb/package-summary.html" target="_top"><B>FRAMES</B></A>
|
61 |
|
|
<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>
|
62 |
|
|
<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 |
|
|
</TABLE>
|
77 |
|
|
<A NAME="skip-navbar_top"></A>
|
78 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
79 |
|
|
|
80 |
|
|
<HR>
|
81 |
|
|
<H2>
|
82 |
|
|
Package ch.ntb.usb
|
83 |
|
|
</H2>
|
84 |
|
|
A Java wrapper for the libusb 0.1 and libusb-win32 USB library.
|
85 |
|
|
<P>
|
86 |
|
|
<B>See:</B>
|
87 |
|
|
<BR>
|
88 |
|
|
<A HREF="#package_description"><B>Description</B></A>
|
89 |
|
|
<P>
|
90 |
|
|
|
91 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
92 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
93 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
94 |
|
|
<B>Class Summary</B></FONT></TH>
|
95 |
|
|
</TR>
|
96 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
97 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Device.html" title="class in ch.ntb.usb">Device</A></B></TD>
|
98 |
|
|
<TD>This class represents an USB device.</TD>
|
99 |
|
|
</TR>
|
100 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
101 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/LibLoader.html" title="class in ch.ntb.usb">LibLoader</A></B></TD>
|
102 |
|
|
<TD>This class allows to load libraries in the normal way or as a system resource (e.g. form the current .jar file).</TD>
|
103 |
|
|
</TR>
|
104 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
105 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/LibusbJava.html" title="class in ch.ntb.usb">LibusbJava</A></B></TD>
|
106 |
|
|
<TD>This class represents the Java Native Interface to the shared library which
|
107 |
|
|
is (with some exceptions) a one-to-one representation of the libusb API.</TD>
|
108 |
|
|
</TR>
|
109 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
110 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/USB.html" title="class in ch.ntb.usb">USB</A></B></TD>
|
111 |
|
|
<TD>This class manages all USB devices and defines some USB specific constants.</TD>
|
112 |
|
|
</TR>
|
113 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
114 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Bus.html" title="class in ch.ntb.usb">Usb_Bus</A></B></TD>
|
115 |
|
|
<TD>Represents an USB bus.</TD>
|
116 |
|
|
</TR>
|
117 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
118 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html" title="class in ch.ntb.usb">Usb_Config_Descriptor</A></B></TD>
|
119 |
|
|
<TD>Represents the descriptor of a USB configuration.</TD>
|
120 |
|
|
</TR>
|
121 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
122 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></B></TD>
|
123 |
|
|
<TD>Common USB descriptor values.</TD>
|
124 |
|
|
</TR>
|
125 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
126 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A></B></TD>
|
127 |
|
|
<TD>Represents an USB device.</TD>
|
128 |
|
|
</TR>
|
129 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
130 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html" title="class in ch.ntb.usb">Usb_Device_Descriptor</A></B></TD>
|
131 |
|
|
<TD>Represents the descriptor of a USB device.</TD>
|
132 |
|
|
</TR>
|
133 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
134 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Endpoint_Descriptor.html" title="class in ch.ntb.usb">Usb_Endpoint_Descriptor</A></B></TD>
|
135 |
|
|
<TD>Represents the descriptor of an USB endpoint.</TD>
|
136 |
|
|
</TR>
|
137 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
138 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Interface.html" title="class in ch.ntb.usb">Usb_Interface</A></B></TD>
|
139 |
|
|
<TD>Represents an USB interface.</TD>
|
140 |
|
|
</TR>
|
141 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
142 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html" title="class in ch.ntb.usb">Usb_Interface_Descriptor</A></B></TD>
|
143 |
|
|
<TD>Represents the descriptor of a USB interface.</TD>
|
144 |
|
|
</TR>
|
145 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
146 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/Utils.html" title="class in ch.ntb.usb">Utils</A></B></TD>
|
147 |
|
|
<TD> </TD>
|
148 |
|
|
</TR>
|
149 |
|
|
</TABLE>
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
<P>
|
153 |
|
|
|
154 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
155 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
156 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
157 |
|
|
<B>Exception Summary</B></FONT></TH>
|
158 |
|
|
</TR>
|
159 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
160 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></B></TD>
|
161 |
|
|
<TD> </TD>
|
162 |
|
|
</TR>
|
163 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
164 |
|
|
<TD WIDTH="15%"><B><A HREF="../../../ch/ntb/usb/USBTimeoutException.html" title="class in ch.ntb.usb">USBTimeoutException</A></B></TD>
|
165 |
|
|
<TD> </TD>
|
166 |
|
|
</TR>
|
167 |
|
|
</TABLE>
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
<P>
|
171 |
|
|
<A NAME="package_description"><!-- --></A><H2>
|
172 |
|
|
Package ch.ntb.usb Description
|
173 |
|
|
</H2>
|
174 |
|
|
|
175 |
|
|
<P>
|
176 |
|
|
A Java wrapper for the libusb 0.1 and libusb-win32 USB library.
|
177 |
|
|
<p>
|
178 |
|
|
The Java libusb wrapper is known to work on Linux, Windows and Mac, but should work on every operating system which supports libusb and Java.
|
179 |
|
|
<p>
|
180 |
|
|
This software has originally been developed by members of the <a href="http://inf.ntb.ch" title="Computer Science Laboratory" target="_blank">Computer Science Laboratory</a>
|
181 |
|
|
at the <a href="http://www.ntb.ch" title="NTB" target="_blank">University of Applied Sciences of Technology NTB</a>, Buchs, Switzerland.
|
182 |
|
|
<p>
|
183 |
|
|
The main project page is <a href="http://libusbjava.sourceforge.net">http://libusbjava.sourceforge.net</a>.
|
184 |
|
|
<p>
|
185 |
|
|
This version is distributed together with the Java API of the <a href="http://www.ztex.de/firmware-kit/index.e.html">ZTEX EZ-USB SDK</a> and bases
|
186 |
|
|
on the SVN version of Apr. 6, 2009. It is extended by the ability to load the (OS dependent) libraries form system ressource (e.g. in the current .jar file),
|
187 |
|
|
see the <i><a href="LibLoader.html">LibLoader</a></i> Class.
|
188 |
|
|
<p>
|
189 |
|
|
<i>LibusbJava.java</i> is the JNI class to the <i>libusbJava.so</i> and <i>LibusbJava.dll</i>, respectively.
|
190 |
|
|
Every class starting with <i>Usb_</i> represents a descriptor of the bus structure which is retrieved by
|
191 |
|
|
calling <i>LibusbJava.usb_get_busses()</i>.
|
192 |
|
|
|
193 |
|
|
<p>
|
194 |
|
|
<h2>Related Resources</h2>
|
195 |
|
|
For more information about this project visit
|
196 |
|
|
<a href="http://libusbjava.sourceforge.net">http://libusbjava.sourceforge.net</a>.
|
197 |
|
|
<P>
|
198 |
|
|
|
199 |
|
|
<P>
|
200 |
|
|
<DL>
|
201 |
|
|
</DL>
|
202 |
|
|
<HR>
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
206 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
207 |
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
208 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
209 |
|
|
<TR>
|
210 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
211 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
212 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
213 |
|
|
<TR ALIGN="center" VALIGN="top">
|
214 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
215 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT> </TD>
|
216 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
|
217 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
218 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
219 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
220 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
221 |
|
|
</TR>
|
222 |
|
|
</TABLE>
|
223 |
|
|
</TD>
|
224 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
225 |
|
|
</EM>
|
226 |
|
|
</TD>
|
227 |
|
|
</TR>
|
228 |
|
|
|
229 |
|
|
<TR>
|
230 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
231 |
|
|
PREV PACKAGE
|
232 |
|
|
<A HREF="../../../ztex/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
|
233 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
234 |
|
|
<A HREF="../../../index.html?ch/ntb/usb/package-summary.html" target="_top"><B>FRAMES</B></A>
|
235 |
|
|
<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>
|
236 |
|
|
<SCRIPT type="text/javascript">
|
237 |
|
|
<!--
|
238 |
|
|
if(window==top) {
|
239 |
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
240 |
|
|
}
|
241 |
|
|
//-->
|
242 |
|
|
</SCRIPT>
|
243 |
|
|
<NOSCRIPT>
|
244 |
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
245 |
|
|
</NOSCRIPT>
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
</FONT></TD>
|
249 |
|
|
</TR>
|
250 |
|
|
</TABLE>
|
251 |
|
|
<A NAME="skip-navbar_bottom"></A>
|
252 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
253 |
|
|
|
254 |
|
|
<HR>
|
255 |
|
|
|
256 |
|
|
</BODY>
|
257 |
|
|
</HTML>
|