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

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [docs/] [java/] [ztex/] [ZtexDevice1.html] - Diff between revs 3 and 5

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 3 Rev 5
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>&nbsp;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>&nbsp;p_dev,
            int&nbsp;pUsbVendorId,
            int&nbsp;pUsbVendorId,
            int&nbsp;pUsbProductId)</CODE>
            int&nbsp;pUsbProductId,
 
            boolean&nbsp;allowUnconfigured)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given USB device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given USB device.</TD>
</TR>
</TR>
</TABLE>
</TABLE>
Line 336... Line 337...
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the interface version.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;boolean</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/ZtexDevice1.html#isCypress()">isCypress</A></B>()</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;java.lang.String</CODE></FONT></TD>
<CODE>&nbsp;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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the manufacturer string of the device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;p_dev,
public <B>ZtexDevice1</B>(<A HREF="../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A>&nbsp;p_dev,
                   int&nbsp;pUsbVendorId,
                   int&nbsp;pUsbVendorId,
                   int&nbsp;pUsbProductId)
                   int&nbsp;pUsbProductId,
 
                   boolean&nbsp;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>

powered by: WebSVN 2.1.0

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