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/] [Ztex1v1.html] - Diff between revs 2 and 3

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

Rev 2 Rev 3
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 Fri Jun 11 14:15:44 CEST 2010 -->
<!-- Generated by javadoc (build 1.6.0_02) on Wed Sep 29 21:04:05 CEST 2010 -->
<TITLE>
<TITLE>
Ztex1v1
Ztex1v1
</TITLE>
</TITLE>
 
 
<META NAME="date" CONTENT="2010-06-11">
<META NAME="date" CONTENT="2010-09-29">
 
 
<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 247... Line 247...
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
         </tr>
         </tr>
       </table>
       </table>
     </td>
     </td>
   </tr>
   </tr>
 
   <tr>
 
     <td bgcolor="#ffffff" valign="top">0.3</td>
 
     <td bgcolor="#ffffff" valign="top" colspan=2>
 
       Debug helper support<p>
 
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
 
         <tr>
 
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
 
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
 
         </tr>
 
         <tr>
 
           <td bgcolor="#ffffff" valign="top">VR 0x28</td>
 
           <td bgcolor="#ffffff" valign="top">Get debug data. Returns:
 
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
 
               <tr>
 
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
 
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
 
               </tr>
 
               <tr>
 
                 <td bgcolor="#ffffff" valign="top">0-1</td>
 
                 <td bgcolor="#ffffff" valign="top">Number of the last message</td>
 
               </tr>
 
               <tr>
 
                 <td bgcolor="#ffffff" valign="top">2</td>
 
                 <td bgcolor="#ffffff" valign="top">Stack size in messages</td>
 
               </tr>
 
               <tr>
 
                 <td bgcolor="#ffffff" valign="top">3</td>
 
                 <td bgcolor="#ffffff" valign="top">Message size in bytes</td>
 
               </tr>
 
               <tr>
 
                 <td bgcolor="#ffffff" valign="top">&ge;4</td>
 
                 <td bgcolor="#ffffff" valign="top">Message stack</td>
 
               </tr>
 
             </table>
 
           </td>
 
         </tr>
 
       </table>
 
     </td>
 
   </tr>
 </table>
 </table>
<P>
<P>
 
 
<P>
<P>
<DL>
<DL>
Line 267... Line 306...
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
<B>Field Summary</B></FONT></TH>
</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>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for DEBUG helper support.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for EEPROM support.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FLASH memory support.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FPGA configuration support.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</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;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is set by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A> and conains the number of new messages.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
</TR>
</TR>
Line 316... Line 403...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</A></B></CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals the the installed Flash memeory is not supported.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</TD>
</TR>
</TR>
Line 399... Line 494...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</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;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</A></B>(int&nbsp;i)</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
                int&nbsp;j)</CODE>
                int&nbsp;j)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</TD>
Line 446... Line 549...
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</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;long</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean, int)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
 
              boolean&nbsp;force,
 
              int&nbsp;bs)</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</A></B>()</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the last message read out by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A></TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</A></B>()</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of messages in bytes.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])">debugReadMessages</A></B>(boolean&nbsp;all,
 
                  byte[]&nbsp;buf)</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads debug messages from message stack.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
<CODE>&nbsp;int</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</A></B>()</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of message stack in messages.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
Line 580... Line 726...
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</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;long</CODE></FONT></TD>
 
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName,
 
                     int&nbsp;bs)</CODE>
 
 
 
<BR>
 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
 
</TR>
 
<TR BGCOLOR="white" CLASS="TableRowColor">
 
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
                 byte[]&nbsp;buf)</CODE>
                 byte[]&nbsp;buf)</CODE>
 
 
<BR>
<BR>
Line 692... Line 847...
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
<B>Field Detail</B></FONT></TH>
</TR>
</TR>
</TABLE>
</TABLE>
 
 
 
<A NAME="CAPABILITY_EEPROM"><!-- --></A><H3>
 
CAPABILITY_EEPROM</H3>
 
<PRE>
 
public static final int <B>CAPABILITY_EEPROM</B></PRE>
 
<DL>
 
<DD>Capability index for EEPROM support.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_EEPROM">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
 
<A NAME="CAPABILITY_FPGA"><!-- --></A><H3>
 
CAPABILITY_FPGA</H3>
 
<PRE>
 
public static final int <B>CAPABILITY_FPGA</B></PRE>
 
<DL>
 
<DD>Capability index for FPGA configuration support.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FPGA">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
 
<A NAME="CAPABILITY_FLASH"><!-- --></A><H3>
 
CAPABILITY_FLASH</H3>
 
<PRE>
 
public static final int <B>CAPABILITY_FLASH</B></PRE>
 
<DL>
 
<DD>Capability index for FLASH memory support.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
 
<A NAME="CAPABILITY_DEBUG"><!-- --></A><H3>
 
CAPABILITY_DEBUG</H3>
 
<PRE>
 
public static final int <B>CAPABILITY_DEBUG</B></PRE>
 
<DL>
 
<DD>Capability index for DEBUG helper support.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
 
<A NAME="CAPABILITY_XMEGA"><!-- --></A><H3>
 
CAPABILITY_XMEGA</H3>
 
<PRE>
 
public static final int <B>CAPABILITY_XMEGA</B></PRE>
 
<DL>
 
<DD>Capability index for AVR XMEGA support.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_XMEGA">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
<A NAME="capabilityStrings"><!-- --></A><H3>
<A NAME="capabilityStrings"><!-- --></A><H3>
capabilityStrings</H3>
capabilityStrings</H3>
<PRE>
<PRE>
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
<DL>
<DL>
Line 822... Line 1037...
<DD>Signals an error while attempting to write to Flash.
<DD>Signals an error while attempting to write to Flash.
<P>
<P>
<DL>
<DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
</DL>
</DL>
 
<HR>
 
 
 
<A NAME="FLASH_EC_NOTSUPPORTED"><!-- --></A><H3>
 
FLASH_EC_NOTSUPPORTED</H3>
 
<PRE>
 
public static final int <B>FLASH_EC_NOTSUPPORTED</B></PRE>
 
<DL>
 
<DD>Signals the the installed Flash memeory is not supported.
 
<P>
 
<DL>
 
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NOTSUPPORTED">Constant Field Values</A></DL>
 
</DL>
 
<HR>
 
 
 
<A NAME="debugNewMessages"><!-- --></A><H3>
 
debugNewMessages</H3>
 
<PRE>
 
public int <B>debugNewMessages</B></PRE>
 
<DL>
 
<DD>Is set by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A> and conains the number of new messages.
 
<P>
 
<DL>
 
</DL>
 
</DL>
 
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
 
<A NAME="constructor_detail"><!-- --></A>
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
Line 949... Line 1188...
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
 
<A NAME="checkCapability(int)"><!-- --></A><H3>
 
checkCapability</H3>
 
<PRE>
 
public void <B>checkCapability</B>(int&nbsp;i)
 
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
 
<P>
 
<DD><DL>
 
<DT><B>Parameters:</B><DD><CODE>i</CODE> - capability index (0..47)
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if ZTEX descriptor 1 is not available or interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
 
</DD>
 
</DL>
 
<HR>
 
 
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
checkCompatible</H3>
checkCompatible</H3>
<PRE>
<PRE>
public void <B>checkCompatible</B>(int&nbsp;productId0,
public void <B>checkCompatible</B>(int&nbsp;productId0,
                            int&nbsp;productId1,
                            int&nbsp;productId1,
Line 1051... Line 1308...
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
 
<A NAME="configureFpga(java.lang.String, boolean, int)"><!-- --></A><H3>
 
configureFpga</H3>
 
<PRE>
 
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
 
                          boolean&nbsp;force,
 
                          int&nbsp;bs)
 
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
 
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
 
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
 
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
 
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Upload a Bitstream to the FPGA.
 
<P>
 
<DD><DL>
 
<DT><B>Parameters:</B><DD><CODE>fwFileName</CODE> - The file name of the Bitstream. The file can be a regular file or a system resource (e.g. a file from the current jar archive).<DD><CODE>force</CODE> - If set to true existing configurations will be overwritten. (By default an <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex"><CODE>AlreadyConfiguredException</CODE></A> is thrown).<DD><CODE>bs</CODE> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
 
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
 
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
 
</DD>
 
</DL>
 
<HR>
 
 
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
configureFpga</H3>
configureFpga</H3>
<PRE>
<PRE>
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
                          boolean&nbsp;force)
                          boolean&nbsp;force)
Line 1251... Line 1536...
<DL>
<DL>
<DD>Gets the last Flash error from the device.
<DD>Gets the last Flash error from the device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
 
<DT><B>Returns:</B><DD>The last error code.
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not supported by the firmware.</DL>
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not supported by the firmware.</DL>
</DD>
</DD>
Line 1409... Line 1695...
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not supported by the firmware.</DL>
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not supported by the firmware.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
<A NAME="flashUploadBitstream(java.lang.String, int)"><!-- --></A><H3>
flashUploadBitstream</H3>
flashUploadBitstream</H3>
<PRE>
<PRE>
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName,
 
                                 int&nbsp;bs)
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
<DL>
<DL>
Line 1453... Line 1740...
 where bs[i] denotes byte i of the boot sector.
 where bs[i] denotes byte i of the boot sector.
 <p>
 <p>
 The first sector of the Bitstream is sector 1.
 The first sector of the Bitstream is sector 1.
<P>
<P>
<DD><DL>
<DD><DL>
 
<DT><B>Parameters:</B><DD><CODE>fwFileName</CODE> - The file name of the Bitstream. The file can be a regular file or a system resource (e.g. a file from the current jar archive).<DD><CODE>bs</CODE> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
 
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.</DL>
 
</DD>
 
</DL>
 
<HR>
 
 
 
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
 
flashUploadBitstream</H3>
 
<PRE>
 
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
 
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
 
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
 
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Uploads a Bitstream to the Flash.
 
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
 
 it is possible to construct fully autonomous devices.
 
 See <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)"><CODE>flashUploadBitstream(String,int)</CODE></A> for further details.
 
<P>
 
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fwFileName</CODE> - The file name of the Bitstream. The file can be a regular file or a system resource (e.g. a file from the current jar archive).
<DT><B>Parameters:</B><DD><CODE>fwFileName</CODE> - The file name of the Bitstream. The file can be a regular file or a system resource (e.g. a file from the current jar archive).
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
Line 1504... Line 1816...
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
</DD>
</DD>
 
</DL>
 
<HR>
 
 
 
<A NAME="debugStackSize()"><!-- --></A><H3>
 
debugStackSize</H3>
 
<PRE>
 
public int <B>debugStackSize</B>()
 
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
 
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Returns the size of message stack in messages.
 
<P>
 
<DD><DL>
 
 
 
<DT><B>Returns:</B><DD>the size of message stack in messages.
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
 
</DD>
 
</DL>
 
<HR>
 
 
 
<A NAME="debugMsgSize()"><!-- --></A><H3>
 
debugMsgSize</H3>
 
<PRE>
 
public int <B>debugMsgSize</B>()
 
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
 
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Returns the size of messages in bytes.
 
<P>
 
<DD><DL>
 
 
 
<DT><B>Returns:</B><DD>the size of messages in bytes.
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
 
</DD>
 
</DL>
 
<HR>
 
 
 
<A NAME="debugLastMsg()"><!-- --></A><H3>
 
debugLastMsg</H3>
 
<PRE>
 
public final int <B>debugLastMsg</B>()</PRE>
 
<DL>
 
<DD>Returns the number of the last message read out by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A>
 
<P>
 
<DD><DL>
 
 
 
<DT><B>Returns:</B><DD>the number of the last message read out by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A></DL>
 
</DD>
 
</DL>
 
<HR>
 
 
 
<A NAME="debugReadMessages(boolean, byte[])"><!-- --></A><H3>
 
debugReadMessages</H3>
 
<PRE>
 
public int <B>debugReadMessages</B>(boolean&nbsp;all,
 
                             byte[]&nbsp;buf)
 
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
 
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
 
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
 
<DL>
 
<DD>Reads debug messages from message stack.
 
 The number of messages stored in buf is returned. The total number of new messages is stored in <A HREF="../ztex/Ztex1v1.html#debugNewMessages"><CODE>debugNewMessages</CODE></A>.
 
 The number of the latest message is returned by <A HREF="../ztex/Ztex1v1.html#debugLastMsg()"><CODE>debugLastMsg()</CODE></A>.
 
<P>
 
<DD><DL>
 
<DT><B>Parameters:</B><DD><CODE>all</CODE> - If true, all messages from stack are written to buf. If it is false, only the new messages are written to buf.<DD><CODE>buf</CODE> - The buffer to store the messages.
 
<DT><B>Returns:</B><DD>the size of messages stored in buffer.
 
<DT><B>Throws:</B>
 
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
 
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
 
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
 
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="toString()"><!-- --></A><H3>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
toString</H3>

powered by: WebSVN 2.1.0

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