|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectztex.ZtexScanBus1
public class ZtexScanBus1
A class used for finding the EZ-USB devices on the USB.
The devices found are stored as a list of ZtexDevice1 instances.
ZtexDevice1| Constructor Summary | |
|---|---|
ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet)
Scans the USB for suitable devices and constructs a list of them. |
|
ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion)
Scans the USB for suitable devices and constructs a list of them. |
|
ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion,
java.lang.String snString)
Scans the USB for suitable devices and constructs a list of them. |
|
ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion,
java.lang.String snString,
int productId0,
int productId1,
int productId2,
int productId3)
Scans the USB for suitable devices and constructs a list of them. |
|
| Method Summary | |
|---|---|
ZtexDevice1 |
device(int i)
Returns a device from the list of devices. |
int |
numberOfDevices()
Returns the number of devices found. |
void |
printBus(java.io.PrintStream out)
Prints out a list of devices found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion,
java.lang.String snString,
int productId0,
int productId1,
int productId2,
int productId3)
ZtexDevice1.compatible(int,int,int,int).
usbVendorId - USB vendor ID of the device to be searched forusbProductId - USB product ID of the device to be searched forscanUnconfigured - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID'squiet - if true, don't print any warningsinterfaceVersion - The required interface version (<0 if no interface version is required)snString - The serial number of the deviceproductId0 - Byte 0 of a given ZTEX product ID (≤0 if not to be considered)productId1 - Byte 1 of a given ZTEX product ID (≤0 if not to be considered)productId2 - Byte 2 of a given ZTEX product ID (≤0 if not to be considered)productId3 - Byte 3 of a given ZTEX product ID (≤0 if not to be considered)
public ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion,
java.lang.String snString)
usbVendorId - USB vendor ID of the device to be searched forusbProductId - USB product ID of the device to be searched forscanUnconfigured - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID'squiet - if true, don't print any warningsinterfaceVersion - The required interface version (<0 if no interface version is required)
public ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet,
int interfaceVersion)
usbVendorId - USB vendor ID of the device to be searched forusbProductId - USB product ID of the device to be searched forscanUnconfigured - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID'squiet - if true, don't print any warningsinterfaceVersion - The required interface version (<0 if no interface version is required)
public ZtexScanBus1(int usbVendorId,
int usbProductId,
boolean scanUnconfigured,
boolean quiet)
usbVendorId - USB vendor ID of the device to be searched forusbProductId - USB product ID of the device to be searched forscanUnconfigured - if true, scan for unconfigured devices and devices with Cypress EZ-USB USB ID'squiet - if true, don't print any warnings| Method Detail |
|---|
public void printBus(java.io.PrintStream out)
out - Where the output is to be printed to.public final int numberOfDevices()
public final ZtexDevice1 device(int i)
throws java.lang.IndexOutOfBoundsException
i - The device index.
java.lang.IndexOutOfBoundsException - if i<0 or i≥numberOfDevices()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||