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 Thu Dec 10 20:53:19 CET 2009 -->
|
<!-- Generated by javadoc (build 1.6.0_02) on Fri Jun 11 14:15:44 CEST 2010 -->
|
<TITLE>
|
<TITLE>
|
Ztex1
|
Ztex1
|
</TITLE>
|
</TITLE>
|
|
|
<META NAME="date" CONTENT="2009-12-10">
|
<META NAME="date" CONTENT="2010-06-11">
|
|
|
<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 133... |
Line 133... |
<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>
|
<CODE> boolean</CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A></B></CODE>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A></B></CODE>
|
|
|
<BR>
|
<BR>
|
Setting to true will enable certain workarounds, e.g. to deal with bad driver/OS implementations.</TD>
|
Setting to true enables certain workarounds, e.g. to deal with bad driver/OS implementations.</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/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></B></CODE>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></B></CODE>
|
Line 179... |
Line 179... |
<BR>
|
<BR>
|
Checks whether ZTEX descriptor 1 is available.</TD>
|
Checks whether ZTEX descriptor 1 is available.</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>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#claimInterface(int)">claimInterface</A></B>(int iface)</CODE>
|
|
|
|
<BR>
|
|
Claims an interface.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
<CODE> <A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A></CODE></FONT></TD>
|
<CODE> <A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A></CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#dev()">dev</A></B>()</CODE>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#dev()">dev</A></B>()</CODE>
|
|
|
<BR>
|
<BR>
|
Returns the corresponding <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</TD>
|
Returns the corresponding <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</TD>
|
Line 204... |
Line 212... |
Returns the USB file handle.</TD>
|
Returns the USB file handle.</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/Ztex1.html#releaseInterface(int)">releaseInterface</A></B>(int iface)</CODE>
|
|
|
|
<BR>
|
|
Releases an interface.</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/Ztex1.html#resetEzUsb()">resetEzUsb</A></B>()</CODE>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#resetEzUsb()">resetEzUsb</A></B>()</CODE>
|
|
|
<BR>
|
<BR>
|
Resets the EZ-USB and manages the renumeration process.</TD>
|
Resets the EZ-USB and manages the renumeration process.</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>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#setConfiguration(int)">setConfiguration</A></B>(int config)</CODE>
|
|
|
|
<BR>
|
|
Sets the configuration.</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/Ztex1.html#toString()">toString</A></B>()</CODE>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#toString()">toString</A></B>()</CODE>
|
|
|
<BR>
|
<BR>
|
Returns a lot of useful information about the corresponding device.</TD>
|
Returns a lot of useful information about the corresponding device.</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>
|
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#trySetConfiguration(int)">trySetConfiguration</A></B>(int config)</CODE>
|
|
|
|
<BR>
|
|
Tries to set the configuration.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
<CODE> long</CODE></FONT></TD>
|
<CODE> long</CODE></FONT></TD>
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#uploadFirmware(java.lang.String, boolean)">uploadFirmware</A></B>(java.lang.String ihxFileName,
|
<TD><CODE><B><A HREF="../ztex/Ztex1.html#uploadFirmware(java.lang.String, boolean)">uploadFirmware</A></B>(java.lang.String ihxFileName,
|
boolean force)</CODE>
|
boolean force)</CODE>
|
|
|
<BR>
|
<BR>
|
Line 356... |
Line 388... |
<A NAME="certainWorkarounds"><!-- --></A><H3>
|
<A NAME="certainWorkarounds"><!-- --></A><H3>
|
certainWorkarounds</H3>
|
certainWorkarounds</H3>
|
<PRE>
|
<PRE>
|
public boolean <B>certainWorkarounds</B></PRE>
|
public boolean <B>certainWorkarounds</B></PRE>
|
<DL>
|
<DL>
|
<DD>Setting to true will enable certain workarounds, e.g. to deal with bad driver/OS implementations.
|
<DD>Setting to true enables certain workarounds, e.g. to deal with bad driver/OS implementations.
|
<P>
|
<P>
|
<DL>
|
<DL>
|
</DL>
|
</DL>
|
</DL>
|
</DL>
|
<HR>
|
<HR>
|
Line 652... |
Line 684... |
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs or not all of the payload has been received.</DL>
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs or not all of the payload has been received.</DL>
|
</DD>
|
</DD>
|
</DL>
|
</DL>
|
<HR>
|
<HR>
|
|
|
|
<A NAME="setConfiguration(int)"><!-- --></A><H3>
|
|
setConfiguration</H3>
|
|
<PRE>
|
|
public void <B>setConfiguration</B>(int config)
|
|
throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
|
|
<DL>
|
|
<DD>Sets the configuration.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>config</CODE> - The configuration number (usually 1)
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an error occurs while attempting to set the configuration.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="trySetConfiguration(int)"><!-- --></A><H3>
|
|
trySetConfiguration</H3>
|
|
<PRE>
|
|
public void <B>trySetConfiguration</B>(int config)</PRE>
|
|
<DL>
|
|
<DD>Tries to set the configuration.
|
|
If an error occurs while attempting to set the configuration, a warning messaage is printed to stderr.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>config</CODE> - The configuration number (usually 1)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="claimInterface(int)"><!-- --></A><H3>
|
|
claimInterface</H3>
|
|
<PRE>
|
|
public void <B>claimInterface</B>(int iface)
|
|
throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
|
|
<DL>
|
|
<DD>Claims an interface.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>iface</CODE> - The interface number (usually 0)
|
|
<DT><B>Throws:</B>
|
|
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an error occurs while attempting to claim the interface.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="releaseInterface(int)"><!-- --></A><H3>
|
|
releaseInterface</H3>
|
|
<PRE>
|
|
public void <B>releaseInterface</B>(int iface)</PRE>
|
|
<DL>
|
|
<DD>Releases an interface.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>iface</CODE> - The interface number (usually 0)</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
<A NAME="uploadFirmware(java.lang.String, boolean)"><!-- --></A><H3>
|
<A NAME="uploadFirmware(java.lang.String, boolean)"><!-- --></A><H3>
|
uploadFirmware</H3>
|
uploadFirmware</H3>
|
<PRE>
|
<PRE>
|
public long <B>uploadFirmware</B>(java.lang.String ihxFileName,
|
public long <B>uploadFirmware</B>(java.lang.String ihxFileName,
|
boolean force)
|
boolean force)
|