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">≥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 int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</A></B></CODE>
|
|
|
|
<BR>
|
|
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 int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</A></B></CODE>
|
|
|
|
<BR>
|
|
Capability index for EEPROM support.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</A></B></CODE>
|
|
|
|
<BR>
|
|
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 int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</A></B></CODE>
|
|
|
|
<BR>
|
|
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 int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</A></B></CODE>
|
|
|
|
<BR>
|
|
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 java.lang.String[]</CODE></FONT></TD>
|
<CODE>static 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>
|
The names of the capabilities</TD>
|
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> int</CODE></FONT></TD>
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</A></B></CODE>
|
|
|
|
<BR>
|
|
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> 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>
|
Number of bytes written to EEPROM.</TD>
|
Number of bytes written to EEPROM.</TD>
|
</TR>
|
</TR>
|
Line 316... |
Line 403... |
Means no error.</TD>
|
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 int</CODE></FONT></TD>
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</A></B></CODE>
|
|
|
|
<BR>
|
|
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 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>
|
Signals that another Flash operation is pending.</TD>
|
Signals that another Flash operation is pending.</TD>
|
</TR>
|
</TR>
|
Line 399... |
Line 494... |
Creates a String with capability information.</TD>
|
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> void</CODE></FONT></TD>
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</A></B>(int i)</CODE>
|
|
|
|
<BR>
|
|
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> void</CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int i,
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int i,
|
int j)</CODE>
|
int j)</CODE>
|
|
|
<BR>
|
<BR>
|
Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</TD>
|
Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</TD>
|
Line 446... |
Line 549... |
<BR>
|
<BR>
|
Upload a Bitstream to the FPGA.</TD>
|
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> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean, int)">configureFpga</A></B>(java.lang.String fwFileName,
|
|
boolean force,
|
|
int bs)</CODE>
|
|
|
|
<BR>
|
|
Upload a Bitstream to the FPGA.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</A></B>()</CODE>
|
|
|
|
<BR>
|
|
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> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</A></B>()</CODE>
|
|
|
|
<BR>
|
|
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> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])">debugReadMessages</A></B>(boolean all,
|
|
byte[] buf)</CODE>
|
|
|
|
<BR>
|
|
Reads debug messages from message stack.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</A></B>()</CODE>
|
|
|
|
<BR>
|
|
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> void</CODE></FONT></TD>
|
<CODE> 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>
|
Disables the firmware stored in the EEPROM.</TD>
|
Disables the firmware stored in the EEPROM.</TD>
|
Line 580... |
Line 726... |
<BR>
|
<BR>
|
Uploads a Bitstream to the Flash.</TD>
|
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> long</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)">flashUploadBitstream</A></B>(java.lang.String fwFileName,
|
|
int bs)</CODE>
|
|
|
|
<BR>
|
|
Uploads a Bitstream to the Flash.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
<CODE> void</CODE></FONT></TD>
|
<CODE> void</CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int sector,
|
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int sector,
|
byte[] buf)</CODE>
|
byte[] 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 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 productId0,
|
public void <B>checkCompatible</B>(int productId0,
|
int productId1,
|
int 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 fwFileName,
|
|
boolean force,
|
|
int 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 fwFileName,
|
public long <B>configureFpga</B>(java.lang.String fwFileName,
|
boolean force)
|
boolean 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 fwFileName)
|
public long <B>flashUploadBitstream</B>(java.lang.String fwFileName,
|
|
int 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 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 all,
|
|
byte[] 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>
|