| 1 |
2 |
ZTEX |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
| 2 |
|
|
<!--NewPage-->
|
| 3 |
|
|
<HTML>
|
| 4 |
|
|
<HEAD>
|
| 5 |
3 |
ZTEX |
<!-- Generated by javadoc (build 1.6.0_02) on Wed Sep 29 21:04:05 CEST 2010 -->
|
| 6 |
2 |
ZTEX |
<TITLE>
|
| 7 |
|
|
ZtexIhxFile1
|
| 8 |
|
|
</TITLE>
|
| 9 |
|
|
|
| 10 |
3 |
ZTEX |
<META NAME="date" CONTENT="2010-09-29">
|
| 11 |
2 |
ZTEX |
|
| 12 |
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
|
| 13 |
|
|
|
| 14 |
|
|
<SCRIPT type="text/javascript">
|
| 15 |
|
|
function windowTitle()
|
| 16 |
|
|
{
|
| 17 |
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
| 18 |
|
|
parent.document.title="ZtexIhxFile1";
|
| 19 |
|
|
}
|
| 20 |
|
|
}
|
| 21 |
|
|
</SCRIPT>
|
| 22 |
|
|
<NOSCRIPT>
|
| 23 |
|
|
</NOSCRIPT>
|
| 24 |
|
|
|
| 25 |
|
|
</HEAD>
|
| 26 |
|
|
|
| 27 |
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
| 28 |
|
|
<HR>
|
| 29 |
|
|
|
| 30 |
|
|
|
| 31 |
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
| 32 |
|
|
<A NAME="navbar_top"><!-- --></A>
|
| 33 |
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
| 34 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
| 35 |
|
|
<TR>
|
| 36 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| 37 |
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
| 38 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
| 39 |
|
|
<TR ALIGN="center" VALIGN="top">
|
| 40 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| 41 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| 42 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| 43 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| 44 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| 45 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| 46 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| 47 |
|
|
</TR>
|
| 48 |
|
|
</TABLE>
|
| 49 |
|
|
</TD>
|
| 50 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| 51 |
|
|
</EM>
|
| 52 |
|
|
</TD>
|
| 53 |
|
|
</TR>
|
| 54 |
|
|
|
| 55 |
|
|
<TR>
|
| 56 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 57 |
|
|
<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>PREV CLASS</B></A>
|
| 58 |
|
|
<A HREF="../ztex/ZtexScanBus1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
|
| 59 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 60 |
|
|
<A HREF="../index.html?ztex/ZtexIhxFile1.html" target="_top"><B>FRAMES</B></A>
|
| 61 |
|
|
<A HREF="ZtexIhxFile1.html" target="_top"><B>NO FRAMES</B></A>
|
| 62 |
|
|
<SCRIPT type="text/javascript">
|
| 63 |
|
|
<!--
|
| 64 |
|
|
if(window==top) {
|
| 65 |
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
| 66 |
|
|
}
|
| 67 |
|
|
//-->
|
| 68 |
|
|
</SCRIPT>
|
| 69 |
|
|
<NOSCRIPT>
|
| 70 |
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
| 71 |
|
|
</NOSCRIPT>
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
</FONT></TD>
|
| 75 |
|
|
</TR>
|
| 76 |
|
|
<TR>
|
| 77 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 78 |
|
|
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_ztex.IhxFile">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| 79 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 80 |
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| 81 |
|
|
</TR>
|
| 82 |
|
|
</TABLE>
|
| 83 |
|
|
<A NAME="skip-navbar_top"></A>
|
| 84 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
| 85 |
|
|
|
| 86 |
|
|
<HR>
|
| 87 |
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
| 88 |
|
|
<H2>
|
| 89 |
|
|
<FONT SIZE="-1">
|
| 90 |
|
|
ztex</FONT>
|
| 91 |
|
|
<BR>
|
| 92 |
|
|
Class ZtexIhxFile1</H2>
|
| 93 |
|
|
<PRE>
|
| 94 |
|
|
java.lang.Object
|
| 95 |
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../ztex/IhxFile.html" title="class in ztex">ztex.IhxFile</A>
|
| 96 |
|
|
<IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.ZtexIhxFile1</B>
|
| 97 |
|
|
</PRE>
|
| 98 |
|
|
<HR>
|
| 99 |
|
|
<DL>
|
| 100 |
|
|
<DT><PRE>public class <B>ZtexIhxFile1</B><DT>extends <A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A></DL>
|
| 101 |
|
|
</PRE>
|
| 102 |
|
|
|
| 103 |
|
|
<P>
|
| 104 |
|
|
Represents a firmware image with ZTEX descriptor 1 loaded from an ihx (Intel Hex format) file. <br>
|
| 105 |
|
|
The ZTEX descriptor is usually located at the position 0x6x of the firmware image. <br>
|
| 106 |
|
|
A description of the ZTEX descriptor 1 can be found in <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.
|
| 107 |
|
|
<P>
|
| 108 |
|
|
|
| 109 |
|
|
<P>
|
| 110 |
|
|
<DL>
|
| 111 |
|
|
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>,
|
| 112 |
|
|
<A HREF="../ztex/Ztex1.html" title="class in ztex"><CODE>Ztex1</CODE></A></DL>
|
| 113 |
|
|
<HR>
|
| 114 |
|
|
|
| 115 |
|
|
<P>
|
| 116 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
| 117 |
|
|
|
| 118 |
|
|
<A NAME="field_summary"><!-- --></A>
|
| 119 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 120 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 121 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
| 122 |
|
|
<B>Field Summary</B></FONT></TH>
|
| 123 |
|
|
</TR>
|
| 124 |
|
|
</TABLE>
|
| 125 |
|
|
<A NAME="fields_inherited_from_class_ztex.IhxFile"><!-- --></A>
|
| 126 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 127 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| 128 |
|
|
<TH ALIGN="left"><B>Fields inherited from class ztex.<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A></B></TH>
|
| 129 |
|
|
</TR>
|
| 130 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 131 |
|
|
<TD><CODE><A HREF="../ztex/IhxFile.html#ihxData">ihxData</A></CODE></TD>
|
| 132 |
|
|
</TR>
|
| 133 |
|
|
</TABLE>
|
| 134 |
|
|
|
| 135 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
| 136 |
|
|
|
| 137 |
|
|
<A NAME="constructor_summary"><!-- --></A>
|
| 138 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 139 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 140 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
| 141 |
|
|
<B>Constructor Summary</B></FONT></TH>
|
| 142 |
|
|
</TR>
|
| 143 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 144 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#ZtexIhxFile1(java.lang.String)">ZtexIhxFile1</A></B>(java.lang.String fileName)</CODE>
|
| 145 |
|
|
|
| 146 |
|
|
<BR>
|
| 147 |
|
|
Constructs an instance from a given file name.</TD>
|
| 148 |
|
|
</TR>
|
| 149 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 150 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#ZtexIhxFile1(java.lang.String, int)">ZtexIhxFile1</A></B>(java.lang.String fileName,
|
| 151 |
|
|
int pZtexDescriptorOffs)</CODE>
|
| 152 |
|
|
|
| 153 |
|
|
<BR>
|
| 154 |
|
|
Constructs an instance from a given file name and descriptor position.</TD>
|
| 155 |
|
|
</TR>
|
| 156 |
|
|
</TABLE>
|
| 157 |
|
|
|
| 158 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
| 159 |
|
|
|
| 160 |
|
|
<A NAME="method_summary"><!-- --></A>
|
| 161 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 162 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 163 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
| 164 |
|
|
<B>Method Summary</B></FONT></TH>
|
| 165 |
|
|
</TR>
|
| 166 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 167 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 168 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 169 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#fwVersion()">fwVersion</A></B>()</CODE>
|
| 170 |
|
|
|
| 171 |
|
|
<BR>
|
| 172 |
|
|
Returns the firmware version.</TD>
|
| 173 |
|
|
</TR>
|
| 174 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 175 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 176 |
|
|
<CODE> byte[]</CODE></FONT></TD>
|
| 177 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#interfaceCapabilities()">interfaceCapabilities</A></B>()</CODE>
|
| 178 |
|
|
|
| 179 |
|
|
<BR>
|
| 180 |
|
|
Returns the interface capabilities (all 6 bytes).</TD>
|
| 181 |
|
|
</TR>
|
| 182 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 183 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 184 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 185 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#interfaceCapabilities(int)">interfaceCapabilities</A></B>(int i)</CODE>
|
| 186 |
|
|
|
| 187 |
|
|
<BR>
|
| 188 |
|
|
Returns byte i of the interface capabilities.</TD>
|
| 189 |
|
|
</TR>
|
| 190 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 191 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 192 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 193 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#interfaceVersion()">interfaceVersion</A></B>()</CODE>
|
| 194 |
|
|
|
| 195 |
|
|
<BR>
|
| 196 |
|
|
Returns the interface version.</TD>
|
| 197 |
|
|
</TR>
|
| 198 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 199 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 200 |
|
|
<CODE> byte[]</CODE></FONT></TD>
|
| 201 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#moduleReserved()">moduleReserved</A></B>()</CODE>
|
| 202 |
|
|
|
| 203 |
|
|
<BR>
|
| 204 |
|
|
Returns the application specific information (all 12 bytes).</TD>
|
| 205 |
|
|
</TR>
|
| 206 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 207 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 208 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 209 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#moduleReserved(int)">moduleReserved</A></B>(int i)</CODE>
|
| 210 |
|
|
|
| 211 |
|
|
<BR>
|
| 212 |
|
|
Returns byte i of the application specific information.</TD>
|
| 213 |
|
|
</TR>
|
| 214 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 215 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 216 |
|
|
<CODE> byte[]</CODE></FONT></TD>
|
| 217 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#productId()">productId</A></B>()</CODE>
|
| 218 |
|
|
|
| 219 |
|
|
<BR>
|
| 220 |
|
|
Returns the product ID (all 4 bytes).</TD>
|
| 221 |
|
|
</TR>
|
| 222 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 223 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 224 |
|
|
<CODE> int</CODE></FONT></TD>
|
| 225 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#productId(int)">productId</A></B>(int i)</CODE>
|
| 226 |
|
|
|
| 227 |
|
|
<BR>
|
| 228 |
|
|
Returns byte i of the product ID.</TD>
|
| 229 |
|
|
</TR>
|
| 230 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 231 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 232 |
|
|
<CODE> void</CODE></FONT></TD>
|
| 233 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#setSnString(java.lang.String)">setSnString</A></B>(java.lang.String s)</CODE>
|
| 234 |
|
|
|
| 235 |
|
|
<BR>
|
| 236 |
|
|
Modifies the serial number string.</TD>
|
| 237 |
|
|
</TR>
|
| 238 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 239 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 240 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
| 241 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#snString()">snString</A></B>()</CODE>
|
| 242 |
|
|
|
| 243 |
|
|
<BR>
|
| 244 |
|
|
Returns the serial number string.</TD>
|
| 245 |
|
|
</TR>
|
| 246 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 247 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| 248 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
| 249 |
|
|
<TD><CODE><B><A HREF="../ztex/ZtexIhxFile1.html#toString()">toString</A></B>()</CODE>
|
| 250 |
|
|
|
| 251 |
|
|
<BR>
|
| 252 |
|
|
Returns a string representation if the instance.</TD>
|
| 253 |
|
|
</TR>
|
| 254 |
|
|
</TABLE>
|
| 255 |
|
|
<A NAME="methods_inherited_from_class_ztex.IhxFile"><!-- --></A>
|
| 256 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 257 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| 258 |
|
|
<TH ALIGN="left"><B>Methods inherited from class ztex.<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A></B></TH>
|
| 259 |
|
|
</TR>
|
| 260 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 261 |
|
|
<TD><CODE><A HREF="../ztex/IhxFile.html#dataInfo(java.io.PrintStream)">dataInfo</A></CODE></TD>
|
| 262 |
|
|
</TR>
|
| 263 |
|
|
</TABLE>
|
| 264 |
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
| 265 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 266 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
| 267 |
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
| 268 |
|
|
</TR>
|
| 269 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
| 270 |
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
| 271 |
|
|
</TR>
|
| 272 |
|
|
</TABLE>
|
| 273 |
|
|
|
| 274 |
|
|
<P>
|
| 275 |
|
|
|
| 276 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
| 277 |
|
|
|
| 278 |
|
|
<A NAME="constructor_detail"><!-- --></A>
|
| 279 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 280 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 281 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
| 282 |
|
|
<B>Constructor Detail</B></FONT></TH>
|
| 283 |
|
|
</TR>
|
| 284 |
|
|
</TABLE>
|
| 285 |
|
|
|
| 286 |
|
|
<A NAME="ZtexIhxFile1(java.lang.String, int)"><!-- --></A><H3>
|
| 287 |
|
|
ZtexIhxFile1</H3>
|
| 288 |
|
|
<PRE>
|
| 289 |
|
|
public <B>ZtexIhxFile1</B>(java.lang.String fileName,
|
| 290 |
|
|
int pZtexDescriptorOffs)
|
| 291 |
|
|
throws java.io.IOException,
|
| 292 |
|
|
<A HREF="../ztex/IhxFileDamagedException.html" title="class in ztex">IhxFileDamagedException</A>,
|
| 293 |
|
|
<A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></PRE>
|
| 294 |
|
|
<DL>
|
| 295 |
|
|
<DD>Constructs an instance from a given file name and descriptor position.<br>
|
| 296 |
|
|
This method can also read system resources, e.g. files from the current jar archive.
|
| 297 |
|
|
<P>
|
| 298 |
|
|
<DL>
|
| 299 |
|
|
<DT><B>Parameters:</B><DD><CODE>fileName</CODE> - The file name.<DD><CODE>pZtexDescriptorOffs</CODE> - The position of the descriptor in bytes. The default position is 0x6c.
|
| 300 |
|
|
<DT><B>Throws:</B>
|
| 301 |
|
|
<DD><CODE>java.io.IOException</CODE> - If an read error occurred.
|
| 302 |
|
|
<DD><CODE><A HREF="../ztex/IhxFileDamagedException.html" title="class in ztex">IhxFileDamagedException</A></CODE> - If the ihx file is damaged.
|
| 303 |
|
|
<DD><CODE><A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></CODE> - If the firmware image contains no valid ZTEX descriptor 1 at the specified position.</DL>
|
| 304 |
|
|
</DL>
|
| 305 |
|
|
<HR>
|
| 306 |
|
|
|
| 307 |
|
|
<A NAME="ZtexIhxFile1(java.lang.String)"><!-- --></A><H3>
|
| 308 |
|
|
ZtexIhxFile1</H3>
|
| 309 |
|
|
<PRE>
|
| 310 |
|
|
public <B>ZtexIhxFile1</B>(java.lang.String fileName)
|
| 311 |
|
|
throws java.io.IOException,
|
| 312 |
|
|
<A HREF="../ztex/IhxFileDamagedException.html" title="class in ztex">IhxFileDamagedException</A>,
|
| 313 |
|
|
<A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></PRE>
|
| 314 |
|
|
<DL>
|
| 315 |
|
|
<DD>Constructs an instance from a given file name.
|
| 316 |
|
|
The ZTEX descriptor 1 is expected to be at the position 0x6c of the firmware image.<br>
|
| 317 |
|
|
This method can also read system resources, e.g. files from the current jar archive.
|
| 318 |
|
|
<P>
|
| 319 |
|
|
<DL>
|
| 320 |
|
|
<DT><B>Parameters:</B><DD><CODE>fileName</CODE> - The file name.
|
| 321 |
|
|
<DT><B>Throws:</B>
|
| 322 |
|
|
<DD><CODE>java.io.IOException</CODE> - If an read error occurred.
|
| 323 |
|
|
<DD><CODE><A HREF="../ztex/IhxFileDamagedException.html" title="class in ztex">IhxFileDamagedException</A></CODE> - If the ihx file is damaged.
|
| 324 |
|
|
<DD><CODE><A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></CODE> - If the firmware image contains no valid ZTEX descriptor 1 at the specified position.</DL>
|
| 325 |
|
|
</DL>
|
| 326 |
|
|
|
| 327 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
| 328 |
|
|
|
| 329 |
|
|
<A NAME="method_detail"><!-- --></A>
|
| 330 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
| 331 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
| 332 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
| 333 |
|
|
<B>Method Detail</B></FONT></TH>
|
| 334 |
|
|
</TR>
|
| 335 |
|
|
</TABLE>
|
| 336 |
|
|
|
| 337 |
|
|
<A NAME="productId()"><!-- --></A><H3>
|
| 338 |
|
|
productId</H3>
|
| 339 |
|
|
<PRE>
|
| 340 |
|
|
public final byte[] <B>productId</B>()</PRE>
|
| 341 |
|
|
<DL>
|
| 342 |
|
|
<DD>Returns the product ID (all 4 bytes).
|
| 343 |
|
|
<P>
|
| 344 |
|
|
<DD><DL>
|
| 345 |
|
|
|
| 346 |
|
|
<DT><B>Returns:</B><DD>PRODUCT_ID, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 347 |
|
|
</DD>
|
| 348 |
|
|
</DL>
|
| 349 |
|
|
<HR>
|
| 350 |
|
|
|
| 351 |
|
|
<A NAME="productId(int)"><!-- --></A><H3>
|
| 352 |
|
|
productId</H3>
|
| 353 |
|
|
<PRE>
|
| 354 |
|
|
public int <B>productId</B>(int i)</PRE>
|
| 355 |
|
|
<DL>
|
| 356 |
|
|
<DD>Returns byte i of the product ID.
|
| 357 |
|
|
<P>
|
| 358 |
|
|
<DD><DL>
|
| 359 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - index
|
| 360 |
|
|
<DT><B>Returns:</B><DD>PRODUCT_ID[i], see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 361 |
|
|
</DD>
|
| 362 |
|
|
</DL>
|
| 363 |
|
|
<HR>
|
| 364 |
|
|
|
| 365 |
|
|
<A NAME="fwVersion()"><!-- --></A><H3>
|
| 366 |
|
|
fwVersion</H3>
|
| 367 |
|
|
<PRE>
|
| 368 |
|
|
public final int <B>fwVersion</B>()</PRE>
|
| 369 |
|
|
<DL>
|
| 370 |
|
|
<DD>Returns the firmware version.
|
| 371 |
|
|
<P>
|
| 372 |
|
|
<DD><DL>
|
| 373 |
|
|
|
| 374 |
|
|
<DT><B>Returns:</B><DD>FW_VERSION, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 375 |
|
|
</DD>
|
| 376 |
|
|
</DL>
|
| 377 |
|
|
<HR>
|
| 378 |
|
|
|
| 379 |
|
|
<A NAME="interfaceVersion()"><!-- --></A><H3>
|
| 380 |
|
|
interfaceVersion</H3>
|
| 381 |
|
|
<PRE>
|
| 382 |
|
|
public final int <B>interfaceVersion</B>()</PRE>
|
| 383 |
|
|
<DL>
|
| 384 |
|
|
<DD>Returns the interface version.
|
| 385 |
|
|
<P>
|
| 386 |
|
|
<DD><DL>
|
| 387 |
|
|
|
| 388 |
|
|
<DT><B>Returns:</B><DD>INTERFACE_VERSION, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 389 |
|
|
</DD>
|
| 390 |
|
|
</DL>
|
| 391 |
|
|
<HR>
|
| 392 |
|
|
|
| 393 |
|
|
<A NAME="interfaceCapabilities()"><!-- --></A><H3>
|
| 394 |
|
|
interfaceCapabilities</H3>
|
| 395 |
|
|
<PRE>
|
| 396 |
|
|
public final byte[] <B>interfaceCapabilities</B>()</PRE>
|
| 397 |
|
|
<DL>
|
| 398 |
|
|
<DD>Returns the interface capabilities (all 6 bytes).
|
| 399 |
|
|
<P>
|
| 400 |
|
|
<DD><DL>
|
| 401 |
|
|
|
| 402 |
|
|
<DT><B>Returns:</B><DD>INTERFACE_CAPABILITIES, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 403 |
|
|
</DD>
|
| 404 |
|
|
</DL>
|
| 405 |
|
|
<HR>
|
| 406 |
|
|
|
| 407 |
|
|
<A NAME="interfaceCapabilities(int)"><!-- --></A><H3>
|
| 408 |
|
|
interfaceCapabilities</H3>
|
| 409 |
|
|
<PRE>
|
| 410 |
|
|
public final int <B>interfaceCapabilities</B>(int i)</PRE>
|
| 411 |
|
|
<DL>
|
| 412 |
|
|
<DD>Returns byte i of the interface capabilities.
|
| 413 |
|
|
<P>
|
| 414 |
|
|
<DD><DL>
|
| 415 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - index
|
| 416 |
|
|
<DT><B>Returns:</B><DD>INTERFACE_CAPABILITIES[i], see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 417 |
|
|
</DD>
|
| 418 |
|
|
</DL>
|
| 419 |
|
|
<HR>
|
| 420 |
|
|
|
| 421 |
|
|
<A NAME="moduleReserved()"><!-- --></A><H3>
|
| 422 |
|
|
moduleReserved</H3>
|
| 423 |
|
|
<PRE>
|
| 424 |
|
|
public final byte[] <B>moduleReserved</B>()</PRE>
|
| 425 |
|
|
<DL>
|
| 426 |
|
|
<DD>Returns the application specific information (all 12 bytes).
|
| 427 |
|
|
<P>
|
| 428 |
|
|
<DD><DL>
|
| 429 |
|
|
|
| 430 |
|
|
<DT><B>Returns:</B><DD>MODULE_RESERVED, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 431 |
|
|
</DD>
|
| 432 |
|
|
</DL>
|
| 433 |
|
|
<HR>
|
| 434 |
|
|
|
| 435 |
|
|
<A NAME="moduleReserved(int)"><!-- --></A><H3>
|
| 436 |
|
|
moduleReserved</H3>
|
| 437 |
|
|
<PRE>
|
| 438 |
|
|
public final int <B>moduleReserved</B>(int i)</PRE>
|
| 439 |
|
|
<DL>
|
| 440 |
|
|
<DD>Returns byte i of the application specific information.
|
| 441 |
|
|
<P>
|
| 442 |
|
|
<DD><DL>
|
| 443 |
|
|
<DT><B>Parameters:</B><DD><CODE>i</CODE> - index
|
| 444 |
|
|
<DT><B>Returns:</B><DD>MODULE_RESERVED[i], see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 445 |
|
|
</DD>
|
| 446 |
|
|
</DL>
|
| 447 |
|
|
<HR>
|
| 448 |
|
|
|
| 449 |
|
|
<A NAME="snString()"><!-- --></A><H3>
|
| 450 |
|
|
snString</H3>
|
| 451 |
|
|
<PRE>
|
| 452 |
|
|
public final java.lang.String <B>snString</B>()</PRE>
|
| 453 |
|
|
<DL>
|
| 454 |
|
|
<DD>Returns the serial number string.
|
| 455 |
|
|
<P>
|
| 456 |
|
|
<DD><DL>
|
| 457 |
|
|
|
| 458 |
|
|
<DT><B>Returns:</B><DD>SN_STRING, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.</DL>
|
| 459 |
|
|
</DD>
|
| 460 |
|
|
</DL>
|
| 461 |
|
|
<HR>
|
| 462 |
|
|
|
| 463 |
|
|
<A NAME="setSnString(java.lang.String)"><!-- --></A><H3>
|
| 464 |
|
|
setSnString</H3>
|
| 465 |
|
|
<PRE>
|
| 466 |
|
|
public final void <B>setSnString</B>(java.lang.String s)
|
| 467 |
|
|
throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></PRE>
|
| 468 |
|
|
<DL>
|
| 469 |
|
|
<DD>Modifies the serial number string.
|
| 470 |
|
|
<P>
|
| 471 |
|
|
<DD><DL>
|
| 472 |
|
|
<DT><B>Parameters:</B><DD><CODE>s</CODE> - The new serial number string which must not be longer then 10 characters.
|
| 473 |
|
|
<DT><B>Throws:</B>
|
| 474 |
|
|
<DD><CODE><A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></CODE></DL>
|
| 475 |
|
|
</DD>
|
| 476 |
|
|
</DL>
|
| 477 |
|
|
<HR>
|
| 478 |
|
|
|
| 479 |
|
|
<A NAME="toString()"><!-- --></A><H3>
|
| 480 |
|
|
toString</H3>
|
| 481 |
|
|
<PRE>
|
| 482 |
|
|
public java.lang.String <B>toString</B>()</PRE>
|
| 483 |
|
|
<DL>
|
| 484 |
|
|
<DD>Returns a string representation if the instance.
|
| 485 |
|
|
<P>
|
| 486 |
|
|
<DD><DL>
|
| 487 |
|
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
| 488 |
|
|
</DD>
|
| 489 |
|
|
<DD><DL>
|
| 490 |
|
|
|
| 491 |
|
|
<DT><B>Returns:</B><DD>a string representation if the instance.</DL>
|
| 492 |
|
|
</DD>
|
| 493 |
|
|
</DL>
|
| 494 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
| 495 |
|
|
<HR>
|
| 496 |
|
|
|
| 497 |
|
|
|
| 498 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
| 499 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
| 500 |
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
| 501 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
| 502 |
|
|
<TR>
|
| 503 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
| 504 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
| 505 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
| 506 |
|
|
<TR ALIGN="center" VALIGN="top">
|
| 507 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
| 508 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
| 509 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
| 510 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
| 511 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
| 512 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
| 513 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
| 514 |
|
|
</TR>
|
| 515 |
|
|
</TABLE>
|
| 516 |
|
|
</TD>
|
| 517 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
| 518 |
|
|
</EM>
|
| 519 |
|
|
</TD>
|
| 520 |
|
|
</TR>
|
| 521 |
|
|
|
| 522 |
|
|
<TR>
|
| 523 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 524 |
|
|
<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>PREV CLASS</B></A>
|
| 525 |
|
|
<A HREF="../ztex/ZtexScanBus1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
|
| 526 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
| 527 |
|
|
<A HREF="../index.html?ztex/ZtexIhxFile1.html" target="_top"><B>FRAMES</B></A>
|
| 528 |
|
|
<A HREF="ZtexIhxFile1.html" target="_top"><B>NO FRAMES</B></A>
|
| 529 |
|
|
<SCRIPT type="text/javascript">
|
| 530 |
|
|
<!--
|
| 531 |
|
|
if(window==top) {
|
| 532 |
|
|
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
|
| 533 |
|
|
}
|
| 534 |
|
|
//-->
|
| 535 |
|
|
</SCRIPT>
|
| 536 |
|
|
<NOSCRIPT>
|
| 537 |
|
|
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
|
| 538 |
|
|
</NOSCRIPT>
|
| 539 |
|
|
|
| 540 |
|
|
|
| 541 |
|
|
</FONT></TD>
|
| 542 |
|
|
</TR>
|
| 543 |
|
|
<TR>
|
| 544 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 545 |
|
|
SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_ztex.IhxFile">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| 546 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| 547 |
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| 548 |
|
|
</TR>
|
| 549 |
|
|
</TABLE>
|
| 550 |
|
|
<A NAME="skip-navbar_bottom"></A>
|
| 551 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
| 552 |
|
|
|
| 553 |
|
|
<HR>
|
| 554 |
|
|
|
| 555 |
|
|
</BODY>
|
| 556 |
|
|
</HTML>
|