| 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 |
8 |
ZTEX |
<!-- Generated by javadoc (build 1.6.0_18) on Wed Oct 30 21:18:13 CET 2013 -->
|
| 6 |
2 |
ZTEX |
<TITLE>
|
| 7 |
|
|
ZtexScanBus1
|
| 8 |
|
|
</TITLE>
|
| 9 |
|
|
|
| 10 |
8 |
ZTEX |
<META NAME="date" CONTENT="2013-10-30">
|
| 11 |
2 |
ZTEX |
|
| 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="ZtexScanBus1";
|
| 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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| 42 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></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 |
|
|
<A HREF="../ztex/ZtexIhxFile1.html" title="class in ztex"><B>PREV CLASS</B></A>
|
| 58 |
|
|
NEXT CLASS</FONT></TD>
|
| 59 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 60 |
|
|
<A HREF="../index.html?ztex/ZtexScanBus1.html" target="_top"><B>FRAMES</B></A>
|
| 61 |
|
|
<A HREF="ZtexScanBus1.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 |
|
|
<TR>
|
| 77 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 78 |
|
|
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| 79 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 80 |
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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 |
|
|
ztex</FONT>
|
| 91 |
|
|
<BR>
|
| 92 |
|
|
Class ZtexScanBus1</H2>
|
| 93 |
|
|
<PRE>
|
| 94 |
|
|
java.lang.Object
|
| 95 |
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.ZtexScanBus1</B>
|
| 96 |
|
|
</PRE>
|
| 97 |
|
|
<HR>
|
| 98 |
|
|
<DL>
|
| 99 |
|
|
<DT><PRE>public class <B>ZtexScanBus1</B><DT>extends java.lang.Object</DL>
|
| 100 |
|
|
</PRE>
|
| 101 |
|
|
|
| 102 |
|
|
<P>
|
| 103 |
|
|
A class used for finding the EZ-USB devices on the USB.
|
| 104 |
|
|
The devices found are stored as a list of <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A> instances.
|
| 105 |
|
|
<P>
|
| 106 |
|
|
|
| 107 |
|
|
<P>
|
| 108 |
|
|
<DL>
|
| 109 |
|
|
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A></DL>
|
| 110 |
|
|
<HR>
|
| 111 |
|
|
|
| 112 |
|
|
<P>
|
| 113 |
|
|
|
| 114 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
| 115 |
|
|
|
| 116 |
|
|
<A NAME="constructor_summary"><!-- --></A>
|
| 117 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 118 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 119 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
| 120 |
|
|
<B>Constructor Summary</B></FONT></TH>
|
| 121 |
|
|
</TR>
|
| 122 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 123 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#ZtexScanBus1(int, int, boolean, boolean)">ZtexScanBus1</A></B>(int usbVendorId,
|
| 124 |
|
|
int usbProductId,
|
| 125 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 126 |
2 |
ZTEX |
boolean quiet)</CODE>
|
| 127 |
|
|
|
| 128 |
|
|
<BR>
|
| 129 |
|
|
Scans the USB for suitable devices and constructs a list of them.</TD>
|
| 130 |
|
|
</TR>
|
| 131 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 132 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#ZtexScanBus1(int, int, boolean, boolean, int)">ZtexScanBus1</A></B>(int usbVendorId,
|
| 133 |
|
|
int usbProductId,
|
| 134 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 135 |
2 |
ZTEX |
boolean quiet,
|
| 136 |
|
|
int interfaceVersion)</CODE>
|
| 137 |
|
|
|
| 138 |
|
|
<BR>
|
| 139 |
|
|
Scans the USB for suitable devices and constructs a list of them.</TD>
|
| 140 |
|
|
</TR>
|
| 141 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 142 |
5 |
ZTEX |
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#ZtexScanBus1(int, int, boolean, boolean, int, java.lang.String)">ZtexScanBus1</A></B>(int usbVendorId,
|
| 143 |
2 |
ZTEX |
int usbProductId,
|
| 144 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 145 |
2 |
ZTEX |
boolean quiet,
|
| 146 |
|
|
int interfaceVersion,
|
| 147 |
5 |
ZTEX |
java.lang.String snString)</CODE>
|
| 148 |
|
|
|
| 149 |
|
|
<BR>
|
| 150 |
|
|
Scans the USB for suitable devices and constructs a list of them.</TD>
|
| 151 |
|
|
</TR>
|
| 152 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 153 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#ZtexScanBus1(int, int, boolean, boolean, int, java.lang.String, int, int, int, int)">ZtexScanBus1</A></B>(int usbVendorId,
|
| 154 |
|
|
int usbProductId,
|
| 155 |
|
|
boolean scanUnconfigured,
|
| 156 |
|
|
boolean quiet,
|
| 157 |
|
|
int interfaceVersion,
|
| 158 |
|
|
java.lang.String snString,
|
| 159 |
2 |
ZTEX |
int productId0,
|
| 160 |
|
|
int productId1,
|
| 161 |
|
|
int productId2,
|
| 162 |
|
|
int productId3)</CODE>
|
| 163 |
|
|
|
| 164 |
|
|
<BR>
|
| 165 |
|
|
Scans the USB for suitable devices and constructs a list of them.</TD>
|
| 166 |
|
|
</TR>
|
| 167 |
|
|
</TABLE>
|
| 168 |
|
|
|
| 169 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
| 170 |
|
|
|
| 171 |
|
|
<A NAME="method_summary"><!-- --></A>
|
| 172 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 173 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 174 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
| 175 |
|
|
<B>Method Summary</B></FONT></TH>
|
| 176 |
|
|
</TR>
|
| 177 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 178 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 179 |
|
|
<CODE> <A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A></CODE></FONT></TD>
|
| 180 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#device(int)">device</A></B>(int i)</CODE>
|
| 181 |
|
|
|
| 182 |
|
|
<BR>
|
| 183 |
|
|
Returns a device from the list of devices.</TD>
|
| 184 |
|
|
</TR>
|
| 185 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 186 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 187 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 188 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#numberOfDevices()">numberOfDevices</A></B>()</CODE>
|
| 189 |
|
|
|
| 190 |
|
|
<BR>
|
| 191 |
|
|
Returns the number of devices found.</TD>
|
| 192 |
|
|
</TR>
|
| 193 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 194 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 195 |
|
|
<CODE> void</CODE></FONT></TD>
|
| 196 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexScanBus1.html#printBus(java.io.PrintStream)">printBus</A></B>(java.io.PrintStream out)</CODE>
|
| 197 |
|
|
|
| 198 |
|
|
<BR>
|
| 199 |
|
|
Prints out a list of devices found.</TD>
|
| 200 |
|
|
</TR>
|
| 201 |
|
|
</TABLE>
|
| 202 |
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
| 203 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 204 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| 205 |
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
| 206 |
|
|
</TR>
|
| 207 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 208 |
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
| 209 |
|
|
</TR>
|
| 210 |
|
|
</TABLE>
|
| 211 |
|
|
|
| 212 |
|
|
<P>
|
| 213 |
|
|
|
| 214 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
| 215 |
|
|
|
| 216 |
|
|
<A NAME="constructor_detail"><!-- --></A>
|
| 217 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 218 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 219 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
| 220 |
|
|
<B>Constructor Detail</B></FONT></TH>
|
| 221 |
|
|
</TR>
|
| 222 |
|
|
</TABLE>
|
| 223 |
|
|
|
| 224 |
5 |
ZTEX |
<A NAME="ZtexScanBus1(int, int, boolean, boolean, int, java.lang.String, int, int, int, int)"><!-- --></A><H3>
|
| 225 |
2 |
ZTEX |
ZtexScanBus1</H3>
|
| 226 |
|
|
<PRE>
|
| 227 |
|
|
public <B>ZtexScanBus1</B>(int usbVendorId,
|
| 228 |
|
|
int usbProductId,
|
| 229 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 230 |
2 |
ZTEX |
boolean quiet,
|
| 231 |
|
|
int interfaceVersion,
|
| 232 |
5 |
ZTEX |
java.lang.String snString,
|
| 233 |
2 |
ZTEX |
int productId0,
|
| 234 |
|
|
int productId1,
|
| 235 |
|
|
int productId2,
|
| 236 |
|
|
int productId3)</PRE>
|
| 237 |
|
|
<DL>
|
| 238 |
|
|
<DD>Scans the USB for suitable devices and constructs a list of them.
|
| 239 |
|
|
Four kinds of search filters can be applied
|
| 240 |
|
|
<ol>
|
| 241 |
|
|
<li> usbVendorId and usbProductId can be used to search for devices with a given vendor and product ID. These devices must provide a ZTEX descriptor 1.</li>
|
| 242 |
|
|
<li> If a certain interface version is required, it can be specified using interfaceVersion. </li>
|
| 243 |
|
|
<li> Incompatible devices can be excluded by the specification of the ZTEX product ID's, see <A HREF="../ztex/ZtexDevice1.html#compatible(int, int, int, int)"><CODE>ZtexDevice1.compatible(int,int,int,int)</CODE></A>. </li>
|
| 244 |
5 |
ZTEX |
<li> If scanUnconfigured is true, also devices without ZTEX Firmware and devices with Cypress EZ-USB USB are considered</li>
|
| 245 |
|
|
<li> In multi device environment a single device can be selected by giving a serial number. </li>
|
| 246 |
2 |
ZTEX |
</ol>
|
| 247 |
|
|
<P>
|
| 248 |
|
|
<DL>
|
| 249 |
5 |
ZTEX |
<DT><B>Parameters:</B><DD><CODE>usbVendorId</CODE> - USB vendor ID of the device to be searched for<DD><CODE>usbProductId</CODE> - USB product ID of the device to be searched for<DD><CODE>scanUnconfigured</CODE> - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID's<DD><CODE>quiet</CODE> - if true, don't print any warnings<DD><CODE>interfaceVersion</CODE> - The required interface version (<0 if no interface version is required)<DD><CODE>snString</CODE> - The serial number of the device<DD><CODE>productId0</CODE> - Byte 0 of a given ZTEX product ID (≤0 if not to be considered)<DD><CODE>productId1</CODE> - Byte 1 of a given ZTEX product ID (≤0 if not to be considered)<DD><CODE>productId2</CODE> - Byte 2 of a given ZTEX product ID (≤0 if not to be considered)<DD><CODE>productId3</CODE> - Byte 3 of a given ZTEX product ID (≤0 if not to be considered)</DL>
|
| 250 |
2 |
ZTEX |
</DL>
|
| 251 |
|
|
<HR>
|
| 252 |
|
|
|
| 253 |
5 |
ZTEX |
<A NAME="ZtexScanBus1(int, int, boolean, boolean, int, java.lang.String)"><!-- --></A><H3>
|
| 254 |
|
|
ZtexScanBus1</H3>
|
| 255 |
|
|
<PRE>
|
| 256 |
|
|
public <B>ZtexScanBus1</B>(int usbVendorId,
|
| 257 |
|
|
int usbProductId,
|
| 258 |
|
|
boolean scanUnconfigured,
|
| 259 |
|
|
boolean quiet,
|
| 260 |
|
|
int interfaceVersion,
|
| 261 |
|
|
java.lang.String snString)</PRE>
|
| 262 |
|
|
<DL>
|
| 263 |
|
|
<DD>Scans the USB for suitable devices and constructs a list of them.
|
| 264 |
|
|
Three kinds of search filters can be applied
|
| 265 |
|
|
<ol>
|
| 266 |
|
|
<li> usbVendorId and usbProductId can be used to search for devices with a given vendor and product ID. These devices must provide a ZTEX descriptor 1.</li>
|
| 267 |
|
|
<li> If a certain interface version is required, it can be specified using interfaceVersion. </li>
|
| 268 |
|
|
<li> If scanUnconfigured is true, also devices without ZTEX Firmware and devices with Cypress EZ-USB USB are considered</li>
|
| 269 |
|
|
<li> In multi device environment a single device can be selected by giving a serial number. </li>
|
| 270 |
|
|
</ol>
|
| 271 |
|
|
<P>
|
| 272 |
|
|
<DL>
|
| 273 |
|
|
<DT><B>Parameters:</B><DD><CODE>usbVendorId</CODE> - USB vendor ID of the device to be searched for<DD><CODE>usbProductId</CODE> - USB product ID of the device to be searched for<DD><CODE>scanUnconfigured</CODE> - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID's<DD><CODE>quiet</CODE> - if true, don't print any warnings<DD><CODE>interfaceVersion</CODE> - The required interface version (<0 if no interface version is required)</DL>
|
| 274 |
|
|
</DL>
|
| 275 |
|
|
<HR>
|
| 276 |
|
|
|
| 277 |
2 |
ZTEX |
<A NAME="ZtexScanBus1(int, int, boolean, boolean, int)"><!-- --></A><H3>
|
| 278 |
|
|
ZtexScanBus1</H3>
|
| 279 |
|
|
<PRE>
|
| 280 |
|
|
public <B>ZtexScanBus1</B>(int usbVendorId,
|
| 281 |
|
|
int usbProductId,
|
| 282 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 283 |
2 |
ZTEX |
boolean quiet,
|
| 284 |
|
|
int interfaceVersion)</PRE>
|
| 285 |
|
|
<DL>
|
| 286 |
|
|
<DD>Scans the USB for suitable devices and constructs a list of them.
|
| 287 |
|
|
Three kinds of search filters can be applied
|
| 288 |
|
|
<ol>
|
| 289 |
|
|
<li> usbVendorId and usbProductId can be used to search for devices with a given vendor and product ID. These devices must provide a ZTEX descriptor 1.</li>
|
| 290 |
|
|
<li> If a certain interface version is required, it can be specified using interfaceVersion. </li>
|
| 291 |
5 |
ZTEX |
<li> If scanUnconfigured is true, also devices without ZTEX Firmware and devices with Cypress EZ-USB USB are considered</li>
|
| 292 |
2 |
ZTEX |
</ol>
|
| 293 |
|
|
<P>
|
| 294 |
|
|
<DL>
|
| 295 |
5 |
ZTEX |
<DT><B>Parameters:</B><DD><CODE>usbVendorId</CODE> - USB vendor ID of the device to be searched for<DD><CODE>usbProductId</CODE> - USB product ID of the device to be searched for<DD><CODE>scanUnconfigured</CODE> - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID's<DD><CODE>quiet</CODE> - if true, don't print any warnings<DD><CODE>interfaceVersion</CODE> - The required interface version (<0 if no interface version is required)</DL>
|
| 296 |
2 |
ZTEX |
</DL>
|
| 297 |
|
|
<HR>
|
| 298 |
|
|
|
| 299 |
|
|
<A NAME="ZtexScanBus1(int, int, boolean, boolean)"><!-- --></A><H3>
|
| 300 |
|
|
ZtexScanBus1</H3>
|
| 301 |
|
|
<PRE>
|
| 302 |
|
|
public <B>ZtexScanBus1</B>(int usbVendorId,
|
| 303 |
|
|
int usbProductId,
|
| 304 |
5 |
ZTEX |
boolean scanUnconfigured,
|
| 305 |
2 |
ZTEX |
boolean quiet)</PRE>
|
| 306 |
|
|
<DL>
|
| 307 |
|
|
<DD>Scans the USB for suitable devices and constructs a list of them.
|
| 308 |
|
|
Two kinds of search filters can be applied
|
| 309 |
|
|
<ol>
|
| 310 |
|
|
<li> usbVendorId and usbProductId can be used to search for devices with a given vendor and product ID. These devices must provide a ZTEX descriptor 1.</li>
|
| 311 |
5 |
ZTEX |
<li> If scanUnconfigured is true, also devices without ZTEX Firmware and devices with Cypress EZ-USB USB are considered</li>
|
| 312 |
2 |
ZTEX |
</ol>
|
| 313 |
|
|
<P>
|
| 314 |
|
|
<DL>
|
| 315 |
5 |
ZTEX |
<DT><B>Parameters:</B><DD><CODE>usbVendorId</CODE> - USB vendor ID of the device to be searched for<DD><CODE>usbProductId</CODE> - USB product ID of the device to be searched for<DD><CODE>scanUnconfigured</CODE> - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID's<DD><CODE>quiet</CODE> - if true, don't print any warnings</DL>
|
| 316 |
2 |
ZTEX |
</DL>
|
| 317 |
|
|
|
| 318 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
| 319 |
|
|
|
| 320 |
|
|
<A NAME="method_detail"><!-- --></A>
|
| 321 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 322 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 323 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
| 324 |
|
|
<B>Method Detail</B></FONT></TH>
|
| 325 |
|
|
</TR>
|
| 326 |
|
|
</TABLE>
|
| 327 |
|
|
|
| 328 |
|
|
<A NAME="printBus(java.io.PrintStream)"><!-- --></A><H3>
|
| 329 |
|
|
printBus</H3>
|
| 330 |
|
|
<PRE>
|
| 331 |
|
|
public void <B>printBus</B>(java.io.PrintStream out)</PRE>
|
| 332 |
|
|
<DL>
|
| 333 |
|
|
<DD>Prints out a list of devices found.
|
| 334 |
|
|
<P>
|
| 335 |
|
|
<DD><DL>
|
| 336 |
|
|
<DT><B>Parameters:</B><DD><CODE>out</CODE> - Where the output is to be printed to.</DL>
|
| 337 |
|
|
</DD>
|
| 338 |
|
|
</DL>
|
| 339 |
|
|
<HR>
|
| 340 |
|
|
|
| 341 |
|
|
<A NAME="numberOfDevices()"><!-- --></A><H3>
|
| 342 |
|
|
numberOfDevices</H3>
|
| 343 |
|
|
<PRE>
|
| 344 |
|
|
public final int <B>numberOfDevices</B>()</PRE>
|
| 345 |
|
|
<DL>
|
| 346 |
|
|
<DD>Returns the number of devices found.
|
| 347 |
|
|
<P>
|
| 348 |
|
|
<DD><DL>
|
| 349 |
|
|
|
| 350 |
|
|
<DT><B>Returns:</B><DD>the number of devices found.</DL>
|
| 351 |
|
|
</DD>
|
| 352 |
|
|
</DL>
|
| 353 |
|
|
<HR>
|
| 354 |
|
|
|
| 355 |
|
|
<A NAME="device(int)"><!-- --></A><H3>
|
| 356 |
|
|
device</H3>
|
| 357 |
|
|
<PRE>
|
| 358 |
|
|
public final <A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A> <B>device</B>(int i)
|
| 359 |
|
|
throws java.lang.IndexOutOfBoundsException</PRE>
|
| 360 |
|
|
<DL>
|
| 361 |
|
|
<DD>Returns a device from the list of devices.
|
| 362 |
|
|
<P>
|
| 363 |
|
|
<DD><DL>
|
| 364 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The device index.
|
| 365 |
|
|
<DT><B>Returns:</B><DD>a device from the list of devices.
|
| 366 |
|
|
<DT><B>Throws:</B>
|
| 367 |
|
|
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if i<0 or i≥<A HREF="../ztex/ZtexScanBus1.html#numberOfDevices()"><CODE>numberOfDevices()</CODE></A></DL>
|
| 368 |
|
|
</DD>
|
| 369 |
|
|
</DL>
|
| 370 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
| 371 |
|
|
<HR>
|
| 372 |
|
|
|
| 373 |
|
|
|
| 374 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
| 375 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
| 376 |
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
| 377 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
| 378 |
|
|
<TR>
|
| 379 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| 380 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
| 381 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
| 382 |
|
|
<TR ALIGN="center" VALIGN="top">
|
| 383 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| 384 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| 385 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| 386 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| 387 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| 388 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| 389 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| 390 |
|
|
</TR>
|
| 391 |
|
|
</TABLE>
|
| 392 |
|
|
</TD>
|
| 393 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| 394 |
|
|
</EM>
|
| 395 |
|
|
</TD>
|
| 396 |
|
|
</TR>
|
| 397 |
|
|
|
| 398 |
|
|
<TR>
|
| 399 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 400 |
|
|
<A HREF="../ztex/ZtexIhxFile1.html" title="class in ztex"><B>PREV CLASS</B></A>
|
| 401 |
|
|
NEXT CLASS</FONT></TD>
|
| 402 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 403 |
|
|
<A HREF="../index.html?ztex/ZtexScanBus1.html" target="_top"><B>FRAMES</B></A>
|
| 404 |
|
|
<A HREF="ZtexScanBus1.html" target="_top"><B>NO FRAMES</B></A>
|
| 405 |
|
|
<SCRIPT type="text/javascript">
|
| 406 |
|
|
<!--
|
| 407 |
|
|
if(window==top) {
|
| 408 |
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
| 409 |
|
|
}
|
| 410 |
|
|
//-->
|
| 411 |
|
|
</SCRIPT>
|
| 412 |
|
|
<NOSCRIPT>
|
| 413 |
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
| 414 |
|
|
</NOSCRIPT>
|
| 415 |
|
|
|
| 416 |
|
|
|
| 417 |
|
|
</FONT></TD>
|
| 418 |
|
|
</TR>
|
| 419 |
|
|
<TR>
|
| 420 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 421 |
|
|
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| 422 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 423 |
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| 424 |
|
|
</TR>
|
| 425 |
|
|
</TABLE>
|
| 426 |
|
|
<A NAME="skip-navbar_bottom"></A>
|
| 427 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
| 428 |
|
|
|
| 429 |
|
|
<HR>
|
| 430 |
|
|
|
| 431 |
|
|
</BODY>
|
| 432 |
|
|
</HTML>
|