Line 1... |
Line 1... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
<!--NewPage-->
|
<!--NewPage-->
|
<HTML>
|
<HTML>
|
<HEAD>
|
<HEAD>
|
<!-- Generated by javadoc (build 1.6.0_02) on Wed Sep 29 21:04:05 CEST 2010 -->
|
<!-- Generated by javadoc (build 1.6.0_02) on Mon Jul 18 15:52:41 CEST 2011 -->
|
<TITLE>
|
<TITLE>
|
ZtexDevice1
|
ZtexDevice1
|
</TITLE>
|
</TITLE>
|
|
|
<META NAME="date" CONTENT="2010-09-29">
|
<META NAME="date" CONTENT="2011-07-18">
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
|
|
<SCRIPT type="text/javascript">
|
<SCRIPT type="text/javascript">
|
function windowTitle()
|
function windowTitle()
|
Line 249... |
Line 249... |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
<B>Constructor Summary</B></FONT></TH>
|
<B>Constructor Summary</B></FONT></TH>
|
</TR>
|
</TR>
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#ZtexDevice1(ch.ntb.usb.Usb_Device, int, int)">ZtexDevice1</A></B>(<A HREF="../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> p_dev,
|
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#ZtexDevice1(ch.ntb.usb.Usb_Device, int, int, boolean)">ZtexDevice1</A></B>(<A HREF="../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> p_dev,
|
int pUsbVendorId,
|
int pUsbVendorId,
|
int pUsbProductId)</CODE>
|
int pUsbProductId,
|
|
boolean allowUnconfigured)</CODE>
|
|
|
<BR>
|
<BR>
|
Constructs an instance from a given USB device.</TD>
|
Constructs an instance from a given USB device.</TD>
|
</TR>
|
</TR>
|
</TABLE>
|
</TABLE>
|
Line 336... |
Line 337... |
<BR>
|
<BR>
|
Returns the interface version.</TD>
|
Returns the interface version.</TD>
|
</TR>
|
</TR>
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#isCypress()">isCypress</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns true if the device has Cypress EZ-USB vendor and product ID's (0x4b4 and 0x8613).</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
<CODE> java.lang.String</CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#manufacturerString()">manufacturerString</A></B>()</CODE>
|
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#manufacturerString()">manufacturerString</A></B>()</CODE>
|
|
|
<BR>
|
<BR>
|
Returns the manufacturer string of the device.</TD>
|
Returns the manufacturer string of the device.</TD>
|
Line 531... |
Line 524... |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
<B>Constructor Detail</B></FONT></TH>
|
<B>Constructor Detail</B></FONT></TH>
|
</TR>
|
</TR>
|
</TABLE>
|
</TABLE>
|
|
|
<A NAME="ZtexDevice1(ch.ntb.usb.Usb_Device, int, int)"><!-- --></A><H3>
|
<A NAME="ZtexDevice1(ch.ntb.usb.Usb_Device, int, int, boolean)"><!-- --></A><H3>
|
ZtexDevice1</H3>
|
ZtexDevice1</H3>
|
<PRE>
|
<PRE>
|
public <B>ZtexDevice1</B>(<A HREF="../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> p_dev,
|
public <B>ZtexDevice1</B>(<A HREF="../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> p_dev,
|
int pUsbVendorId,
|
int pUsbVendorId,
|
int pUsbProductId)
|
int pUsbProductId,
|
|
boolean allowUnconfigured)
|
throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
|
<A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
|
<A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
|
|
<A HREF="../ztex/DeviceNotSupportedException.html" title="class in ztex">DeviceNotSupportedException</A></PRE>
|
<DL>
|
<DL>
|
<DD>Constructs an instance from a given USB device.<br>
|
<DD>Constructs an instance from a given USB device.<br>
|
If the given vendor and product id's match to the vendor and product id's of the given USB device,
|
If the given vendor and product id's match to the vendor and product id's of the given USB device,
|
the ZTEX descriptor 1 is attempted to read. If this fails, an <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex"><CODE>InvalidFirmwareException</CODE></A> is thrown.
|
the ZTEX descriptor 1 is attempted to read. If this fails, an <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex"><CODE>InvalidFirmwareException</CODE></A> is thrown.
|
To suppress this behavior (e.g. if the EZ-USB device is known to be unconfigured) the vendor and product id's
|
To suppress this behavior (e.g. if the EZ-USB device is known to be unconfigured) the vendor and product id's
|
can be set to -1.
|
can be set to -1.
|
<P>
|
<P>
|
<DL>
|
<DL>
|
<DT><B>Parameters:</B><DD><CODE>p_dev</CODE> - The USB device.<DD><CODE>pUsbVendorId</CODE> - The given vendor ID.<DD><CODE>pUsbProductId</CODE> - The given product ID.
|
<DT><B>Parameters:</B><DD><CODE>p_dev</CODE> - The USB device.<DD><CODE>pUsbVendorId</CODE> - The given vendor ID.<DD><CODE>pUsbProductId</CODE> - The given product ID.<DD><CODE>allowUnconfigured</CODE> - If true, unconfigured devices are allowed.
|
<DT><B>Throws:</B>
|
<DT><B>Throws:</B>
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an USB communication error occurs.
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an USB communication error occurs.
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if no valid ZTEX descriptor 1 is found.</DL>
|
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if no valid ZTEX descriptor 1 is found.
|
|
<DD><CODE>DeviceNotSupported</CODE> - if the device has the wrong USB ID's.
|
|
<DD><CODE><A HREF="../ztex/DeviceNotSupportedException.html" title="class in ztex">DeviceNotSupportedException</A></CODE></DL>
|
</DL>
|
</DL>
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
<A NAME="method_detail"><!-- --></A>
|
<A NAME="method_detail"><!-- --></A>
|
Line 630... |
Line 627... |
<DT><B>Returns:</B><DD>the USB device.</DL>
|
<DT><B>Returns:</B><DD>the USB device.</DL>
|
</DD>
|
</DD>
|
</DL>
|
</DL>
|
<HR>
|
<HR>
|
|
|
<A NAME="isCypress()"><!-- --></A><H3>
|
|
isCypress</H3>
|
|
<PRE>
|
|
public final boolean <B>isCypress</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns true if the device has Cypress EZ-USB vendor and product ID's (0x4b4 and 0x8613).
|
|
<P>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if the device has Cypress EZ-USB vendor and product ID's (0x4b4 and 0x8613).</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="valid()"><!-- --></A><H3>
|
<A NAME="valid()"><!-- --></A><H3>
|
valid</H3>
|
valid</H3>
|
<PRE>
|
<PRE>
|
public final boolean <B>valid</B>()</PRE>
|
public final boolean <B>valid</B>()</PRE>
|
<DL>
|
<DL>
|