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

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [docs/] [java/] [ztex/] [Ztex1v1.html] - Blame information for rev 5

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 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 5 ZTEX
<!-- Generated by javadoc (build 1.6.0_02) on Wed Sep 29 21:04:05 CEST 2010 -->
6 3 ZTEX
<TITLE>
7
Ztex1v1
8
</TITLE>
9
 
10 5 ZTEX
<META NAME="date" CONTENT="2010-09-29">
11 3 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="Ztex1v1";
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>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../ztex/ZtexDevice1.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/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 Ztex1v1</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../ztex/Ztex1.html" title="class in ztex">ztex.Ztex1</A>
96
      <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.Ztex1v1</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Ztex1v1</B><DT>extends <A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></DL>
101
</PRE>
102
 
103
<P>
104
This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
105
 <p>
106
 The features supported by this interface can be accessed via vendor commands and vendor requests via Endpoint 0.
107
 Each feature can be enabled or disabled by the firmware and also depends from the hardware.
108
 The presence of a feature is indicated by a 1 in the corresponding feature bit of the ZTEX descriptor 1, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.
109
 The following table gives an overview about the features
110
 <table bgcolor="#404040" cellspacing=1 cellpadding=10>
111
   <tr>
112
     <td bgcolor="#d0d0d0" valign="bottom"><b>Capability bit</b></td>
113
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
114
   </tr>
115
   <tr>
116
     <td bgcolor="#ffffff" valign="top">0.0</td>
117
     <td bgcolor="#ffffff" valign="top" colspan=2>
118
          EEPROM support<p>
119
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
120
         <tr>
121
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
122
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
123
         </tr>
124
         <tr>
125
           <td bgcolor="#ffffff" valign="top">VR 0x38</td>
126
           <td bgcolor="#ffffff" valign="top">Read from EEPROM</td>
127
         </tr>
128
         <tr>
129
           <td bgcolor="#ffffff" valign="top">VC 0x39</td>
130
           <td bgcolor="#ffffff" valign="top">Write to EEPROM</td>
131
         </tr>
132
         <tr>
133
           <td bgcolor="#ffffff" valign="top">VR 0x3a</td>
134
           <td bgcolor="#ffffff" valign="top">Get EEPROM state. Returns:
135
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
136
               <tr>
137
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
138
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
139
               </tr>
140
               <tr>
141
                 <td bgcolor="#ffffff" valign="top">0-1</td>
142
                 <td bgcolor="#ffffff" valign="top">Number of bytes written.</td>
143
               </tr>
144
               <tr>
145
                 <td bgcolor="#ffffff" valign="top">2</td>
146
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
147
               </tr>
148
               <tr>
149
                 <td bgcolor="#ffffff" valign="top">3</td>
150
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
151
               </tr>
152
             </table>
153
           </td>
154
         </tr>
155
       </table>
156
        </td>
157
   </tr>
158
   <tr>
159
     <td bgcolor="#ffffff" valign="top">0.1</td>
160
     <td bgcolor="#ffffff" valign="top" colspan=2>
161
       FPGA Configuration<p>
162
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
163
         <tr>
164
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
165
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
166
         </tr>
167
         <tr>
168
           <td bgcolor="#ffffff" valign="top">VR 0x30</td>
169
           <td bgcolor="#ffffff" valign="top">Get FPGA state. Returns:
170
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
171
               <tr>
172
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
173
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
174
               </tr>
175
               <tr>
176
                 <td bgcolor="#ffffff" valign="top">0</td>
177
                 <td bgcolor="#ffffff" valign="top">1: unconfigured, 0:configured</td>
178
               </tr>
179
               <tr>
180
                 <td bgcolor="#ffffff" valign="top">1</td>
181
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
182
               </tr>
183
               <tr>
184
                 <td bgcolor="#ffffff" valign="top">2-5</td>
185
                 <td bgcolor="#ffffff" valign="top">Number of bytes transferred.</td>
186
               </tr>
187
               <tr>
188
                 <td bgcolor="#ffffff" valign="top">6</td>
189
                 <td bgcolor="#ffffff" valign="top">INIT_B states (Must be 222).</td>
190
               </tr>
191
             </table>
192
           </td>
193
         </tr>
194
         <tr>
195
           <td bgcolor="#ffffff" valign="top">VC 0x31</td>
196
           <td bgcolor="#ffffff" valign="top">Reset FPGA</td>
197
         </tr>
198
         <tr>
199
           <td bgcolor="#ffffff" valign="top">VR 0x32</td>
200
           <td bgcolor="#ffffff" valign="top">Send Bitstream</td>
201
         </tr>
202
       </table>
203
     </td>
204
   </tr>
205
   <tr>
206
     <td bgcolor="#ffffff" valign="top">0.2</td>
207
     <td bgcolor="#ffffff" valign="top" colspan=2>
208
       Flash memory support<p>
209
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
210
         <tr>
211
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
212
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
213
         </tr>
214
         <tr>
215
           <td bgcolor="#ffffff" valign="top">VR 0x40</td>
216
           <td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
217
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
218
               <tr>
219
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
220
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
221
               </tr>
222
               <tr>
223
                 <td bgcolor="#ffffff" valign="top">0</td>
224
                 <td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
225
               </tr>
226
               <tr>
227
                 <td bgcolor="#ffffff" valign="top">1-2</td>
228
                 <td bgcolor="#ffffff" valign="top">Sector size</td>
229
               </tr>
230
               <tr>
231
                 <td bgcolor="#ffffff" valign="top">3-6</td>
232
                 <td bgcolor="#ffffff" valign="top">Number of sectors</td>
233
               </tr>
234
               <tr>
235
                 <td bgcolor="#ffffff" valign="top">7</td>
236
                 <td bgcolor="#ffffff" valign="top">Error code</td>
237
               </tr>
238
             </table>
239
           </td>
240
         </tr>
241
         <tr>
242
           <td bgcolor="#ffffff" valign="top">VR 0x41</td>
243
           <td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
244
         </tr>
245
         <tr>
246
           <td bgcolor="#ffffff" valign="top">VC 0x42</td>
247
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
248
         </tr>
249
       </table>
250
     </td>
251
   </tr>
252 5 ZTEX
   <tr>
253
     <td bgcolor="#ffffff" valign="top">0.3</td>
254
     <td bgcolor="#ffffff" valign="top" colspan=2>
255
       Debug helper support<p>
256
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
257
         <tr>
258
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
259
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
260
         </tr>
261
         <tr>
262
           <td bgcolor="#ffffff" valign="top">VR 0x28</td>
263
           <td bgcolor="#ffffff" valign="top">Get debug data. Returns:
264
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
265
               <tr>
266
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
267
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
268
               </tr>
269
               <tr>
270
                 <td bgcolor="#ffffff" valign="top">0-1</td>
271
                 <td bgcolor="#ffffff" valign="top">Number of the last message</td>
272
               </tr>
273
               <tr>
274
                 <td bgcolor="#ffffff" valign="top">2</td>
275
                 <td bgcolor="#ffffff" valign="top">Stack size in messages</td>
276
               </tr>
277
               <tr>
278
                 <td bgcolor="#ffffff" valign="top">3</td>
279
                 <td bgcolor="#ffffff" valign="top">Message size in bytes</td>
280
               </tr>
281
               <tr>
282
                 <td bgcolor="#ffffff" valign="top">&ge;4</td>
283
                 <td bgcolor="#ffffff" valign="top">Message stack</td>
284
               </tr>
285
             </table>
286
           </td>
287
         </tr>
288
       </table>
289
     </td>
290
   </tr>
291 3 ZTEX
 </table>
292
<P>
293
 
294
<P>
295
<DL>
296
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>,
297
<A HREF="../ztex/Ztex1.html" title="class in ztex"><CODE>Ztex1</CODE></A></DL>
298
<HR>
299
 
300
<P>
301
<!-- =========== FIELD SUMMARY =========== -->
302
 
303
<A NAME="field_summary"><!-- --></A>
304
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
305
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
306
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
307
<B>Field Summary</B></FONT></TH>
308
</TR>
309
<TR BGCOLOR="white" CLASS="TableRowColor">
310
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
311 5 ZTEX
<CODE>static&nbsp;int</CODE></FONT></TD>
312
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</A></B></CODE>
313
 
314
<BR>
315
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for DEBUG helper support.</TD>
316
</TR>
317
<TR BGCOLOR="white" CLASS="TableRowColor">
318
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
319
<CODE>static&nbsp;int</CODE></FONT></TD>
320
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</A></B></CODE>
321
 
322
<BR>
323
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for EEPROM support.</TD>
324
</TR>
325
<TR BGCOLOR="white" CLASS="TableRowColor">
326
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
327
<CODE>static&nbsp;int</CODE></FONT></TD>
328
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</A></B></CODE>
329
 
330
<BR>
331
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FLASH memory support.</TD>
332
</TR>
333
<TR BGCOLOR="white" CLASS="TableRowColor">
334
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
335
<CODE>static&nbsp;int</CODE></FONT></TD>
336
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</A></B></CODE>
337
 
338
<BR>
339
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FPGA configuration support.</TD>
340
</TR>
341
<TR BGCOLOR="white" CLASS="TableRowColor">
342
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
343
<CODE>static&nbsp;int</CODE></FONT></TD>
344
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</A></B></CODE>
345
 
346
<BR>
347
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
348
</TR>
349
<TR BGCOLOR="white" CLASS="TableRowColor">
350
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
351 3 ZTEX
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
352
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
353
 
354
<BR>
355
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</TD>
356
</TR>
357
<TR BGCOLOR="white" CLASS="TableRowColor">
358
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
359
<CODE>&nbsp;int</CODE></FONT></TD>
360 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</A></B></CODE>
361
 
362
<BR>
363
&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>
364
</TR>
365
<TR BGCOLOR="white" CLASS="TableRowColor">
366
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
367
<CODE>&nbsp;int</CODE></FONT></TD>
368 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
369
 
370
<BR>
371
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
372
</TR>
373
<TR BGCOLOR="white" CLASS="TableRowColor">
374
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
375
<CODE>&nbsp;int</CODE></FONT></TD>
376
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</A></B></CODE>
377
 
378
<BR>
379
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checksum of the last EEPROM transfer.</TD>
380
</TR>
381
<TR BGCOLOR="white" CLASS="TableRowColor">
382
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
383
<CODE>static&nbsp;int</CODE></FONT></TD>
384
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_BUSY">FLASH_EC_BUSY</A></B></CODE>
385
 
386
<BR>
387
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that Flash memory it busy.</TD>
388
</TR>
389
<TR BGCOLOR="white" CLASS="TableRowColor">
390
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
391
<CODE>static&nbsp;int</CODE></FONT></TD>
392
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_CMD_ERROR">FLASH_EC_CMD_ERROR</A></B></CODE>
393
 
394
<BR>
395
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to execute a command.</TD>
396
</TR>
397
<TR BGCOLOR="white" CLASS="TableRowColor">
398
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
399
<CODE>static&nbsp;int</CODE></FONT></TD>
400
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</A></B></CODE>
401
 
402
<BR>
403
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
404
</TR>
405
<TR BGCOLOR="white" CLASS="TableRowColor">
406
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
407
<CODE>static&nbsp;int</CODE></FONT></TD>
408 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</A></B></CODE>
409
 
410
<BR>
411
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals the the installed Flash memeory is not supported.</TD>
412
</TR>
413
<TR BGCOLOR="white" CLASS="TableRowColor">
414
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
415
<CODE>static&nbsp;int</CODE></FONT></TD>
416 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
417
 
418
<BR>
419
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</TD>
420
</TR>
421
<TR BGCOLOR="white" CLASS="TableRowColor">
422
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
423
<CODE>static&nbsp;int</CODE></FONT></TD>
424
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</A></B></CODE>
425
 
426
<BR>
427
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to read from Flash.</TD>
428
</TR>
429
<TR BGCOLOR="white" CLASS="TableRowColor">
430
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
431
<CODE>static&nbsp;int</CODE></FONT></TD>
432
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</A></B></CODE>
433
 
434
<BR>
435
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that a timeout occurred.</TD>
436
</TR>
437
<TR BGCOLOR="white" CLASS="TableRowColor">
438
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
439
<CODE>static&nbsp;int</CODE></FONT></TD>
440
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</A></B></CODE>
441
 
442
<BR>
443
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to write to Flash.</TD>
444
</TR>
445
<TR BGCOLOR="white" CLASS="TableRowColor">
446
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447
<CODE>&nbsp;int</CODE></FONT></TD>
448
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEC">flashEC</A></B></CODE>
449
 
450
<BR>
451
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Last Flash error code obtained by <A HREF="../ztex/Ztex1v1.html#flashState()"><CODE>flashState()</CODE></A>.</TD>
452
</TR>
453
</TABLE>
454
&nbsp;<A NAME="fields_inherited_from_class_ztex.Ztex1"><!-- --></A>
455
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
456
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
457
<TH ALIGN="left"><B>Fields inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
458
</TR>
459
<TR BGCOLOR="white" CLASS="TableRowColor">
460
<TD><CODE><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A>, <A HREF="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></CODE></TD>
461
</TR>
462
</TABLE>
463
&nbsp;
464
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
465
 
466
<A NAME="constructor_summary"><!-- --></A>
467
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
468
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
469
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
470
<B>Constructor Summary</B></FONT></TH>
471
</TR>
472
<TR BGCOLOR="white" CLASS="TableRowColor">
473
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#Ztex1v1(ztex.ZtexDevice1)">Ztex1v1</A></B>(<A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A>&nbsp;pDev)</CODE>
474
 
475
<BR>
476
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given device.</TD>
477
</TR>
478
</TABLE>
479
&nbsp;
480
<!-- ========== METHOD SUMMARY =========== -->
481
 
482
<A NAME="method_summary"><!-- --></A>
483
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
484
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
485
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
486
<B>Method Summary</B></FONT></TH>
487
</TR>
488
<TR BGCOLOR="white" CLASS="TableRowColor">
489
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
491
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</A></B>(java.lang.String&nbsp;pf)</CODE>
492
 
493
<BR>
494
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</TD>
495
</TR>
496
<TR BGCOLOR="white" CLASS="TableRowColor">
497
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498
<CODE>&nbsp;void</CODE></FONT></TD>
499 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</A></B>(int&nbsp;i)</CODE>
500
 
501
<BR>
502
&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>
503
</TR>
504
<TR BGCOLOR="white" CLASS="TableRowColor">
505
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506
<CODE>&nbsp;void</CODE></FONT></TD>
507 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
508
                int&nbsp;j)</CODE>
509
 
510
<BR>
511
&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>
512
</TR>
513
<TR BGCOLOR="white" CLASS="TableRowColor">
514
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
515
<CODE>&nbsp;void</CODE></FONT></TD>
516
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCompatible(int, int, int, int)">checkCompatible</A></B>(int&nbsp;productId0,
517
                int&nbsp;productId1,
518
                int&nbsp;productId2,
519
                int&nbsp;productId3)</CODE>
520
 
521
<BR>
522
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.</TD>
523
</TR>
524
<TR BGCOLOR="white" CLASS="TableRowColor">
525
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
526
<CODE>&nbsp;void</CODE></FONT></TD>
527
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkValid()">checkValid</A></B>()</CODE>
528
 
529
<BR>
530
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</TD>
531
</TR>
532
<TR BGCOLOR="white" CLASS="TableRowColor">
533
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
534
<CODE>&nbsp;boolean</CODE></FONT></TD>
535
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)">compatible</A></B>(int&nbsp;productId0,
536
           int&nbsp;productId1,
537
           int&nbsp;productId2,
538
           int&nbsp;productId3)</CODE>
539
 
540
<BR>
541
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.</TD>
542
</TR>
543
<TR BGCOLOR="white" CLASS="TableRowColor">
544
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
545
<CODE>&nbsp;long</CODE></FONT></TD>
546
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
547
              boolean&nbsp;force)</CODE>
548
 
549
<BR>
550
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</TD>
551
</TR>
552
<TR BGCOLOR="white" CLASS="TableRowColor">
553
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
554 5 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
555
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean, int)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
556
              boolean&nbsp;force,
557
              int&nbsp;bs)</CODE>
558
 
559
<BR>
560
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</TD>
561
</TR>
562
<TR BGCOLOR="white" CLASS="TableRowColor">
563
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
564
<CODE>&nbsp;int</CODE></FONT></TD>
565
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</A></B>()</CODE>
566
 
567
<BR>
568
&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>
569
</TR>
570
<TR BGCOLOR="white" CLASS="TableRowColor">
571
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
572
<CODE>&nbsp;int</CODE></FONT></TD>
573
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</A></B>()</CODE>
574
 
575
<BR>
576
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of messages in bytes.</TD>
577
</TR>
578
<TR BGCOLOR="white" CLASS="TableRowColor">
579
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
580
<CODE>&nbsp;int</CODE></FONT></TD>
581
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])">debugReadMessages</A></B>(boolean&nbsp;all,
582
                  byte[]&nbsp;buf)</CODE>
583
 
584
<BR>
585
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads debug messages from message stack.</TD>
586
</TR>
587
<TR BGCOLOR="white" CLASS="TableRowColor">
588
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
589
<CODE>&nbsp;int</CODE></FONT></TD>
590
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</A></B>()</CODE>
591
 
592
<BR>
593
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of message stack in messages.</TD>
594
</TR>
595
<TR BGCOLOR="white" CLASS="TableRowColor">
596
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
597 3 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
598
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
599
 
600
<BR>
601
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
602
</TR>
603
<TR BGCOLOR="white" CLASS="TableRowColor">
604
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
605
<CODE>&nbsp;void</CODE></FONT></TD>
606
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromRead(int, byte[], int)">eepromRead</A></B>(int&nbsp;addr,
607
           byte[]&nbsp;buf,
608
           int&nbsp;length)</CODE>
609
 
610
<BR>
611
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the EEPROM.</TD>
612
</TR>
613
<TR BGCOLOR="white" CLASS="TableRowColor">
614
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
615
<CODE>&nbsp;boolean</CODE></FONT></TD>
616
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromState()">eepromState</A></B>()</CODE>
617
 
618
<BR>
619
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current EEPROM status.</TD>
620
</TR>
621
<TR BGCOLOR="white" CLASS="TableRowColor">
622
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
623
<CODE>&nbsp;long</CODE></FONT></TD>
624
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromUpload(java.lang.String, boolean)">eepromUpload</A></B>(java.lang.String&nbsp;ihxFileName,
625
             boolean&nbsp;force)</CODE>
626
 
627
<BR>
628
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
629
</TR>
630
<TR BGCOLOR="white" CLASS="TableRowColor">
631
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
632
<CODE>&nbsp;void</CODE></FONT></TD>
633
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromWrite(int, byte[], int)">eepromWrite</A></B>(int&nbsp;addr,
634
            byte[]&nbsp;buf,
635
            int&nbsp;length)</CODE>
636
 
637
<BR>
638
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the EEPROM.</TD>
639
</TR>
640
<TR BGCOLOR="white" CLASS="TableRowColor">
641
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
642
<CODE>&nbsp;boolean</CODE></FONT></TD>
643
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</A></B>()</CODE>
644
 
645
<BR>
646
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if Flash memory is installed.</TD>
647
</TR>
648
<TR BGCOLOR="white" CLASS="TableRowColor">
649
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
650
<CODE>&nbsp;int</CODE></FONT></TD>
651
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</A></B>()</CODE>
652
 
653
<BR>
654
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first free sector of the Flash memory.</TD>
655
</TR>
656
<TR BGCOLOR="white" CLASS="TableRowColor">
657
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
658
<CODE>&nbsp;void</CODE></FONT></TD>
659
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
660
                byte[]&nbsp;buf)</CODE>
661
 
662
<BR>
663
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one sector from the Flash.</TD>
664
</TR>
665
<TR BGCOLOR="white" CLASS="TableRowColor">
666
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
667
<CODE>&nbsp;void</CODE></FONT></TD>
668
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</A></B>()</CODE>
669
 
670
<BR>
671
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears a Bitstream from the Flash.</TD>
672
</TR>
673
<TR BGCOLOR="white" CLASS="TableRowColor">
674
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
675
<CODE>&nbsp;int</CODE></FONT></TD>
676
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectors()">flashSectors</A></B>()</CODE>
677
 
678
<BR>
679
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.</TD>
680
</TR>
681
<TR BGCOLOR="white" CLASS="TableRowColor">
682
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
683
<CODE>&nbsp;int</CODE></FONT></TD>
684
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</A></B>()</CODE>
685
 
686
<BR>
687
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the sector size of the Flash memory or 0, if no flash memory is installed.</TD>
688
</TR>
689
<TR BGCOLOR="white" CLASS="TableRowColor">
690
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
691
<CODE>&nbsp;long</CODE></FONT></TD>
692
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSize()">flashSize</A></B>()</CODE>
693
 
694
<BR>
695
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of Flash memory or 0, if no Flash memory is installed.</TD>
696
</TR>
697
<TR BGCOLOR="white" CLASS="TableRowColor">
698
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
699
<CODE>&nbsp;boolean</CODE></FONT></TD>
700
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashState()">flashState</A></B>()</CODE>
701
 
702
<BR>
703
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the the Flash memory status and information.</TD>
704
</TR>
705
<TR BGCOLOR="white" CLASS="TableRowColor">
706
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
707
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
708
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError()">flashStrError</A></B>()</CODE>
709
 
710
<BR>
711
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
712
</TR>
713
<TR BGCOLOR="white" CLASS="TableRowColor">
714
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
715
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
716
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</A></B>(int&nbsp;errNum)</CODE>
717
 
718
<BR>
719
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
720
</TR>
721
<TR BGCOLOR="white" CLASS="TableRowColor">
722
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
723
<CODE>&nbsp;long</CODE></FONT></TD>
724
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName)</CODE>
725
 
726
<BR>
727
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
728
</TR>
729
<TR BGCOLOR="white" CLASS="TableRowColor">
730
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
731 5 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
732
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName,
733
                     int&nbsp;bs)</CODE>
734
 
735
<BR>
736
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
737
</TR>
738
<TR BGCOLOR="white" CLASS="TableRowColor">
739
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
740 3 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
741
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
742
                 byte[]&nbsp;buf)</CODE>
743
 
744
<BR>
745
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one sector to the Flash.</TD>
746
</TR>
747
<TR BGCOLOR="white" CLASS="TableRowColor">
748
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
749
<CODE>&nbsp;int</CODE></FONT></TD>
750
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</A></B>()</CODE>
751
 
752
<BR>
753
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
754
</TR>
755
<TR BGCOLOR="white" CLASS="TableRowColor">
756
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
757
<CODE>&nbsp;boolean</CODE></FONT></TD>
758
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</A></B>()</CODE>
759
 
760
<BR>
761
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the FPGA is configured.</TD>
762
</TR>
763
<TR BGCOLOR="white" CLASS="TableRowColor">
764
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
765
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
766
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</A></B>()</CODE>
767
 
768
<BR>
769
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that indicates the FPGA configuration status.</TD>
770
</TR>
771
<TR BGCOLOR="white" CLASS="TableRowColor">
772
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
773
<CODE>&nbsp;void</CODE></FONT></TD>
774
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</A></B>()</CODE>
775
 
776
<BR>
777
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out the FPGA state.</TD>
778
</TR>
779
<TR BGCOLOR="white" CLASS="TableRowColor">
780
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
781
<CODE>&nbsp;boolean</CODE></FONT></TD>
782
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printMmcState()">printMmcState</A></B>()</CODE>
783
 
784
<BR>
785
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out some debug information about *SD/MMC Flash cards in SPI mode.</TD>
786
</TR>
787
<TR BGCOLOR="white" CLASS="TableRowColor">
788
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
789
<CODE>&nbsp;void</CODE></FONT></TD>
790
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#resetFpga()">resetFpga</A></B>()</CODE>
791
 
792
<BR>
793
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the FPGA.</TD>
794
</TR>
795
<TR BGCOLOR="white" CLASS="TableRowColor">
796
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
797
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
798
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#toString()">toString</A></B>()</CODE>
799
 
800
<BR>
801
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a lot of useful information about the corresponding device.</TD>
802
</TR>
803
<TR BGCOLOR="white" CLASS="TableRowColor">
804
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
805
<CODE>&nbsp;boolean</CODE></FONT></TD>
806
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid()">valid</A></B>()</CODE>
807
 
808
<BR>
809
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 is available.</TD>
810
</TR>
811
<TR BGCOLOR="white" CLASS="TableRowColor">
812
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
813
<CODE>&nbsp;boolean</CODE></FONT></TD>
814
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid(int, int)">valid</A></B>(int&nbsp;i,
815
      int&nbsp;j)</CODE>
816
 
817
<BR>
818
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 and capability i.j are available.</TD>
819
</TR>
820
</TABLE>
821
&nbsp;<A NAME="methods_inherited_from_class_ztex.Ztex1"><!-- --></A>
822
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
823
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
824
<TH ALIGN="left"><B>Methods inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
825
</TR>
826
<TR BGCOLOR="white" CLASS="TableRowColor">
827 4 ZTEX
<TD><CODE><A HREF="../ztex/Ztex1.html#claimInterface(int)">claimInterface</A>, <A HREF="../ztex/Ztex1.html#dev()">dev</A>, <A HREF="../ztex/Ztex1.html#finalize()">finalize</A>, <A HREF="../ztex/Ztex1.html#handle()">handle</A>, <A HREF="../ztex/Ztex1.html#releaseInterface(int)">releaseInterface</A>, <A HREF="../ztex/Ztex1.html#resetEzUsb()">resetEzUsb</A>, <A HREF="../ztex/Ztex1.html#setConfiguration(int)">setConfiguration</A>, <A HREF="../ztex/Ztex1.html#trySetConfiguration(int)">trySetConfiguration</A>, <A HREF="../ztex/Ztex1.html#uploadFirmware(java.lang.String, boolean)">uploadFirmware</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String, int, int)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String, int, int, byte[], int)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand2(int, java.lang.String, int, int, byte[], int)">vendorCommand2</A>, <A HREF="../ztex/Ztex1.html#vendorRequest(int, java.lang.String, byte[], int)">vendorRequest</A>, <A HREF="../ztex/Ztex1.html#vendorRequest(int, java.lang.String, int, int, byte[], int)">vendorRequest</A>, <A HREF="../ztex/Ztex1.html#vendorRequest2(int, java.lang.String, byte[], int)">vendorRequest2</A>, <A HREF="../ztex/Ztex1.html#vendorRequest2(int, java.lang.String, int, int, byte[], int)">vendorRequest2</A></CODE></TD>
828 3 ZTEX
</TR>
829
</TABLE>
830
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
831
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
832
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
833
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
834
</TR>
835
<TR BGCOLOR="white" CLASS="TableRowColor">
836
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
837
</TR>
838
</TABLE>
839
&nbsp;
840
<P>
841
 
842
<!-- ============ FIELD DETAIL =========== -->
843
 
844
<A NAME="field_detail"><!-- --></A>
845
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
846
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
847
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
848
<B>Field Detail</B></FONT></TH>
849
</TR>
850
</TABLE>
851
 
852 5 ZTEX
<A NAME="CAPABILITY_EEPROM"><!-- --></A><H3>
853
CAPABILITY_EEPROM</H3>
854
<PRE>
855
public static final int <B>CAPABILITY_EEPROM</B></PRE>
856
<DL>
857
<DD>Capability index for EEPROM support.
858
<P>
859
<DL>
860
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_EEPROM">Constant Field Values</A></DL>
861
</DL>
862
<HR>
863
 
864
<A NAME="CAPABILITY_FPGA"><!-- --></A><H3>
865
CAPABILITY_FPGA</H3>
866
<PRE>
867
public static final int <B>CAPABILITY_FPGA</B></PRE>
868
<DL>
869
<DD>Capability index for FPGA configuration support.
870
<P>
871
<DL>
872
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FPGA">Constant Field Values</A></DL>
873
</DL>
874
<HR>
875
 
876
<A NAME="CAPABILITY_FLASH"><!-- --></A><H3>
877
CAPABILITY_FLASH</H3>
878
<PRE>
879
public static final int <B>CAPABILITY_FLASH</B></PRE>
880
<DL>
881
<DD>Capability index for FLASH memory support.
882
<P>
883
<DL>
884
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH">Constant Field Values</A></DL>
885
</DL>
886
<HR>
887
 
888
<A NAME="CAPABILITY_DEBUG"><!-- --></A><H3>
889
CAPABILITY_DEBUG</H3>
890
<PRE>
891
public static final int <B>CAPABILITY_DEBUG</B></PRE>
892
<DL>
893
<DD>Capability index for DEBUG helper support.
894
<P>
895
<DL>
896
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG">Constant Field Values</A></DL>
897
</DL>
898
<HR>
899
 
900
<A NAME="CAPABILITY_XMEGA"><!-- --></A><H3>
901
CAPABILITY_XMEGA</H3>
902
<PRE>
903
public static final int <B>CAPABILITY_XMEGA</B></PRE>
904
<DL>
905
<DD>Capability index for AVR XMEGA support.
906
<P>
907
<DL>
908
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_XMEGA">Constant Field Values</A></DL>
909
</DL>
910
<HR>
911
 
912 3 ZTEX
<A NAME="capabilityStrings"><!-- --></A><H3>
913
capabilityStrings</H3>
914
<PRE>
915
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
916
<DL>
917
<DD>The names of the capabilities
918
<P>
919
<DL>
920
</DL>
921
</DL>
922
<HR>
923
 
924
<A NAME="eepromBytes"><!-- --></A><H3>
925
eepromBytes</H3>
926
<PRE>
927
public int <B>eepromBytes</B></PRE>
928
<DL>
929
<DD>Number of bytes written to EEPROM. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
930
<P>
931
<DL>
932
</DL>
933
</DL>
934
<HR>
935
 
936
<A NAME="eepromChecksum"><!-- --></A><H3>
937
eepromChecksum</H3>
938
<PRE>
939
public int <B>eepromChecksum</B></PRE>
940
<DL>
941
<DD>Checksum of the last EEPROM transfer. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
942
<P>
943
<DL>
944
</DL>
945
</DL>
946
<HR>
947
 
948
<A NAME="flashEC"><!-- --></A><H3>
949
flashEC</H3>
950
<PRE>
951
public int <B>flashEC</B></PRE>
952
<DL>
953
<DD>Last Flash error code obtained by <A HREF="../ztex/Ztex1v1.html#flashState()"><CODE>flashState()</CODE></A>. See FLASH_EC_* for possible error codes.
954
<P>
955
<DL>
956
</DL>
957
</DL>
958
<HR>
959
 
960
<A NAME="FLASH_EC_NO_ERROR"><!-- --></A><H3>
961
FLASH_EC_NO_ERROR</H3>
962
<PRE>
963
public static final int <B>FLASH_EC_NO_ERROR</B></PRE>
964
<DL>
965
<DD>Means no error.
966
<P>
967
<DL>
968
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NO_ERROR">Constant Field Values</A></DL>
969
</DL>
970
<HR>
971
 
972
<A NAME="FLASH_EC_CMD_ERROR"><!-- --></A><H3>
973
FLASH_EC_CMD_ERROR</H3>
974
<PRE>
975
public static final int <B>FLASH_EC_CMD_ERROR</B></PRE>
976
<DL>
977
<DD>Signals an error while attempting to execute a command.
978
<P>
979
<DL>
980
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_CMD_ERROR">Constant Field Values</A></DL>
981
</DL>
982
<HR>
983
 
984
<A NAME="FLASH_EC_TIMEOUT"><!-- --></A><H3>
985
FLASH_EC_TIMEOUT</H3>
986
<PRE>
987
public static final int <B>FLASH_EC_TIMEOUT</B></PRE>
988
<DL>
989
<DD>Signals that a timeout occurred.
990
<P>
991
<DL>
992
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_TIMEOUT">Constant Field Values</A></DL>
993
</DL>
994
<HR>
995
 
996
<A NAME="FLASH_EC_BUSY"><!-- --></A><H3>
997
FLASH_EC_BUSY</H3>
998
<PRE>
999
public static final int <B>FLASH_EC_BUSY</B></PRE>
1000
<DL>
1001
<DD>Signals that Flash memory it busy.
1002
<P>
1003
<DL>
1004
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_BUSY">Constant Field Values</A></DL>
1005
</DL>
1006
<HR>
1007
 
1008
<A NAME="FLASH_EC_PENDING"><!-- --></A><H3>
1009
FLASH_EC_PENDING</H3>
1010
<PRE>
1011
public static final int <B>FLASH_EC_PENDING</B></PRE>
1012
<DL>
1013
<DD>Signals that another Flash operation is pending.
1014
<P>
1015
<DL>
1016
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_PENDING">Constant Field Values</A></DL>
1017
</DL>
1018
<HR>
1019
 
1020
<A NAME="FLASH_EC_READ_ERROR"><!-- --></A><H3>
1021
FLASH_EC_READ_ERROR</H3>
1022
<PRE>
1023
public static final int <B>FLASH_EC_READ_ERROR</B></PRE>
1024
<DL>
1025
<DD>Signals an error while attempting to read from Flash.
1026
<P>
1027
<DL>
1028
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_READ_ERROR">Constant Field Values</A></DL>
1029
</DL>
1030
<HR>
1031
 
1032
<A NAME="FLASH_EC_WRITE_ERROR"><!-- --></A><H3>
1033
FLASH_EC_WRITE_ERROR</H3>
1034
<PRE>
1035
public static final int <B>FLASH_EC_WRITE_ERROR</B></PRE>
1036
<DL>
1037
<DD>Signals an error while attempting to write to Flash.
1038
<P>
1039
<DL>
1040
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
1041
</DL>
1042 5 ZTEX
<HR>
1043 3 ZTEX
 
1044 5 ZTEX
<A NAME="FLASH_EC_NOTSUPPORTED"><!-- --></A><H3>
1045
FLASH_EC_NOTSUPPORTED</H3>
1046
<PRE>
1047
public static final int <B>FLASH_EC_NOTSUPPORTED</B></PRE>
1048
<DL>
1049
<DD>Signals the the installed Flash memeory is not supported.
1050
<P>
1051
<DL>
1052
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NOTSUPPORTED">Constant Field Values</A></DL>
1053
</DL>
1054
<HR>
1055
 
1056
<A NAME="debugNewMessages"><!-- --></A><H3>
1057
debugNewMessages</H3>
1058
<PRE>
1059
public int <B>debugNewMessages</B></PRE>
1060
<DL>
1061
<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.
1062
<P>
1063
<DL>
1064
</DL>
1065
</DL>
1066
 
1067 3 ZTEX
<!-- ========= CONSTRUCTOR DETAIL ======== -->
1068
 
1069
<A NAME="constructor_detail"><!-- --></A>
1070
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1071
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1072
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1073
<B>Constructor Detail</B></FONT></TH>
1074
</TR>
1075
</TABLE>
1076
 
1077
<A NAME="Ztex1v1(ztex.ZtexDevice1)"><!-- --></A><H3>
1078
Ztex1v1</H3>
1079
<PRE>
1080
public <B>Ztex1v1</B>(<A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A>&nbsp;pDev)
1081
        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
1082
<DL>
1083
<DD>Constructs an instance from a given device.
1084
<P>
1085
<DL>
1086
<DT><B>Parameters:</B><DD><CODE>pDev</CODE> - The given device.
1087
<DT><B>Throws:</B>
1088
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an communication error occurred.</DL>
1089
</DL>
1090
 
1091
<!-- ============ METHOD DETAIL ========== -->
1092
 
1093
<A NAME="method_detail"><!-- --></A>
1094
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1095
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1096
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1097
<B>Method Detail</B></FONT></TH>
1098
</TR>
1099
</TABLE>
1100
 
1101
<A NAME="valid()"><!-- --></A><H3>
1102
valid</H3>
1103
<PRE>
1104
public boolean <B>valid</B>()</PRE>
1105
<DL>
1106
<DD>Returns true if ZTEX interface 1 is available.
1107
<P>
1108
<DD><DL>
1109
<DT><B>Overrides:</B><DD><CODE><A HREF="../ztex/Ztex1.html#valid()">valid</A></CODE> in class <CODE><A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></CODE></DL>
1110
</DD>
1111
<DD><DL>
1112
 
1113
<DT><B>Returns:</B><DD>true if ZTEX interface 1 is available.</DL>
1114
</DD>
1115
</DL>
1116
<HR>
1117
 
1118
<A NAME="valid(int, int)"><!-- --></A><H3>
1119
valid</H3>
1120
<PRE>
1121
public boolean <B>valid</B>(int&nbsp;i,
1122
                     int&nbsp;j)</PRE>
1123
<DL>
1124
<DD>Returns true if ZTEX interface 1 and capability i.j are available.
1125
<P>
1126
<DD><DL>
1127
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
1128
<DT><B>Returns:</B><DD>true if ZTEX interface 1 and capability i.j are available.</DL>
1129
</DD>
1130
</DL>
1131
<HR>
1132
 
1133
<A NAME="compatible(int, int, int, int)"><!-- --></A><H3>
1134
compatible</H3>
1135
<PRE>
1136
public boolean <B>compatible</B>(int&nbsp;productId0,
1137
                          int&nbsp;productId1,
1138
                          int&nbsp;productId2,
1139
                          int&nbsp;productId3)</PRE>
1140
<DL>
1141
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.<br>
1142
 The given product ID is compatible
1143
 <pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) &&
1144
   ( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) &&
1145
   ( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) &&
1146
   ( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre>
1147
<P>
1148
<DD><DL>
1149
<DT><B>Parameters:</B><DD><CODE>productId0</CODE> - Byte 0 of the given product ID<DD><CODE>productId1</CODE> - Byte 1 of the given product ID<DD><CODE>productId2</CODE> - Byte 2 of the given product ID<DD><CODE>productId3</CODE> - Byte 3 of the given product ID
1150
<DT><B>Returns:</B><DD>true if the given product ID is compatible and interface 1 is supported.</DL>
1151
</DD>
1152
</DL>
1153
<HR>
1154
 
1155
<A NAME="checkValid()"><!-- --></A><H3>
1156
checkValid</H3>
1157
<PRE>
1158
public void <B>checkValid</B>()
1159
                throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
1160
<DL>
1161
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 is supported.
1162
<P>
1163
<DD><DL>
1164
<DT><B>Overrides:</B><DD><CODE><A HREF="../ztex/Ztex1.html#checkValid()">checkValid</A></CODE> in class <CODE><A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></CODE></DL>
1165
</DD>
1166
<DD><DL>
1167
 
1168
<DT><B>Throws:</B>
1169
<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.</DL>
1170
</DD>
1171
</DL>
1172
<HR>
1173
 
1174
<A NAME="checkCapability(int, int)"><!-- --></A><H3>
1175
checkCapability</H3>
1176
<PRE>
1177
public void <B>checkCapability</B>(int&nbsp;i,
1178
                            int&nbsp;j)
1179
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1180
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1181
<DL>
1182
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
1183
<P>
1184
<DD><DL>
1185
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
1186
<DT><B>Throws:</B>
1187
<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.
1188
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
1189
</DD>
1190
</DL>
1191
<HR>
1192
 
1193 5 ZTEX
<A NAME="checkCapability(int)"><!-- --></A><H3>
1194
checkCapability</H3>
1195
<PRE>
1196
public void <B>checkCapability</B>(int&nbsp;i)
1197
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1198
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1199
<DL>
1200
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
1201
<P>
1202
<DD><DL>
1203
<DT><B>Parameters:</B><DD><CODE>i</CODE> - capability index (0..47)
1204
<DT><B>Throws:</B>
1205
<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.
1206
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
1207
</DD>
1208
</DL>
1209
<HR>
1210
 
1211 3 ZTEX
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
1212
checkCompatible</H3>
1213
<PRE>
1214
public void <B>checkCompatible</B>(int&nbsp;productId0,
1215
                            int&nbsp;productId1,
1216
                            int&nbsp;productId2,
1217
                            int&nbsp;productId3)
1218
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
1219
<DL>
1220
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
1221
 See <A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)"><CODE>compatible(int,int,int,int)</CODE></A>.
1222
<P>
1223
<DD><DL>
1224
<DT><B>Parameters:</B><DD><CODE>productId0</CODE> - Byte 0 of the given product ID<DD><CODE>productId1</CODE> - Byte 1 of the given product ID<DD><CODE>productId2</CODE> - Byte 2 of the given product ID<DD><CODE>productId3</CODE> - Byte 3 of the given product ID
1225
<DT><B>Throws:</B>
1226
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if the given product ID is not compatible or interface 1 is not supported.</DL>
1227
</DD>
1228
</DL>
1229
<HR>
1230
 
1231
<A NAME="printFpgaState()"><!-- --></A><H3>
1232
printFpgaState</H3>
1233
<PRE>
1234
public void <B>printFpgaState</B>()
1235
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1236
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1237
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1238
<DL>
1239
<DD>Prints out the FPGA state.
1240
<P>
1241
<DD><DL>
1242
 
1243
<DT><B>Throws:</B>
1244
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1245
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1246
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1247
</DD>
1248
</DL>
1249
<HR>
1250
 
1251
<A NAME="getFpgaConfiguration()"><!-- --></A><H3>
1252
getFpgaConfiguration</H3>
1253
<PRE>
1254
public boolean <B>getFpgaConfiguration</B>()
1255
                             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1256
                                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1257
                                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1258
<DL>
1259
<DD>Returns true if the FPGA is configured.
1260
<P>
1261
<DD><DL>
1262
 
1263
<DT><B>Returns:</B><DD>true if the FPGA is configured.
1264
<DT><B>Throws:</B>
1265
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1266
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1267
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1268
</DD>
1269
</DL>
1270
<HR>
1271
 
1272
<A NAME="getFpgaConfigurationStr()"><!-- --></A><H3>
1273
getFpgaConfigurationStr</H3>
1274
<PRE>
1275
public java.lang.String <B>getFpgaConfigurationStr</B>()
1276
                                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1277
                                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1278
                                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1279
<DL>
1280
<DD>Returns a string that indicates the FPGA configuration status.
1281
<P>
1282
<DD><DL>
1283
 
1284
<DT><B>Returns:</B><DD>a string that indicates the FPGA configuration status.
1285
<DT><B>Throws:</B>
1286
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1287
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1288
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1289
</DD>
1290
</DL>
1291
<HR>
1292
 
1293
<A NAME="resetFpga()"><!-- --></A><H3>
1294
resetFpga</H3>
1295
<PRE>
1296
public void <B>resetFpga</B>()
1297
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1298
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1299
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1300
<DL>
1301
<DD>Resets the FPGA.
1302
<P>
1303
<DD><DL>
1304
 
1305
<DT><B>Throws:</B>
1306
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1307
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
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>
1309
</DD>
1310
</DL>
1311
<HR>
1312
 
1313 5 ZTEX
<A NAME="configureFpga(java.lang.String, boolean, int)"><!-- --></A><H3>
1314
configureFpga</H3>
1315
<PRE>
1316
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
1317
                          boolean&nbsp;force,
1318
                          int&nbsp;bs)
1319
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1320
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1321
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
1322
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
1323
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1324
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1325
<DL>
1326
<DD>Upload a Bitstream to the FPGA.
1327
<P>
1328
<DD><DL>
1329
<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.
1330
<DT><B>Throws:</B>
1331
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
1332
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
1333
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
1334
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1335
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1336
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1337
</DD>
1338
</DL>
1339
<HR>
1340
 
1341 3 ZTEX
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
1342
configureFpga</H3>
1343
<PRE>
1344
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
1345
                          boolean&nbsp;force)
1346
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1347
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1348
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
1349
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
1350
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1351
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1352
<DL>
1353
<DD>Upload a Bitstream to the FPGA.
1354
<P>
1355
<DD><DL>
1356
<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).
1357
<DT><B>Throws:</B>
1358
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
1359
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
1360
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
1361
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1362
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1363
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1364
</DD>
1365
</DL>
1366
<HR>
1367
 
1368
<A NAME="eepromState()"><!-- --></A><H3>
1369
eepromState</H3>
1370
<PRE>
1371
public boolean <B>eepromState</B>()
1372
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1373
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1374
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1375
<DL>
1376
<DD>Reads the current EEPROM status.
1377
 This method also sets the varibles <A HREF="../ztex/Ztex1v1.html#eepromBytes"><CODE>eepromBytes</CODE></A> and <A HREF="../ztex/Ztex1v1.html#eepromChecksum"><CODE>eepromChecksum</CODE></A>.
1378
<P>
1379
<DD><DL>
1380
 
1381
<DT><B>Returns:</B><DD>true if EEPROM is ready.
1382
<DT><B>Throws:</B>
1383
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1384
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1385
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1386
</DD>
1387
</DL>
1388
<HR>
1389
 
1390
<A NAME="eepromWrite(int, byte[], int)"><!-- --></A><H3>
1391
eepromWrite</H3>
1392
<PRE>
1393
public void <B>eepromWrite</B>(int&nbsp;addr,
1394
                        byte[]&nbsp;buf,
1395
                        int&nbsp;length)
1396
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1397
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1398
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1399
<DL>
1400
<DD>Writes data to the EEPROM.
1401
<P>
1402
<DD><DL>
1403
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The destination address of the EEPROM.<DD><CODE>buf</CODE> - The data.<DD><CODE>length</CODE> - The amount of bytes to be sent.
1404
<DT><B>Throws:</B>
1405
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1406
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1407
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1408
</DD>
1409
</DL>
1410
<HR>
1411
 
1412
<A NAME="eepromRead(int, byte[], int)"><!-- --></A><H3>
1413
eepromRead</H3>
1414
<PRE>
1415
public void <B>eepromRead</B>(int&nbsp;addr,
1416
                       byte[]&nbsp;buf,
1417
                       int&nbsp;length)
1418
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1419
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1420
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1421
<DL>
1422
<DD>Reads data from the EEPROM.
1423
<P>
1424
<DD><DL>
1425
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address of the EEPROM.<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
1426
<DT><B>Throws:</B>
1427
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1428
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1429
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1430
</DD>
1431
</DL>
1432
<HR>
1433
 
1434
<A NAME="eepromUpload(java.lang.String, boolean)"><!-- --></A><H3>
1435
eepromUpload</H3>
1436
<PRE>
1437
public long <B>eepromUpload</B>(java.lang.String&nbsp;ihxFileName,
1438
                         boolean&nbsp;force)
1439
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
1440
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
1441
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1442
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1443
<DL>
1444
<DD>Upload the firmware to the EEPROM.
1445
 In order to start the uploaded firmware the device must be reset.
1446
<P>
1447
<DD><DL>
1448
<DT><B>Parameters:</B><DD><CODE>ihxFileName</CODE> - The file name of the firmware image in ihx format. The file can be a regular file or a system resource (e.g. a file from the current jar archive).<DD><CODE>force</CODE> - Skips the compatibility check if true.
1449
<DT><B>Throws:</B>
1450
<DD><CODE><A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A></CODE> - if the given firmware is not compatible to the installed one, see <A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)"><CODE>compatible(int,int,int,int)</CODE></A> (Upload can be enforced using the <tt>force</tt> parameter.)
1451
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1452
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
1453
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if an error occurred while attempting to upload the firmware.</DL>
1454
</DD>
1455
</DL>
1456
<HR>
1457
 
1458
<A NAME="eepromDisable()"><!-- --></A><H3>
1459
eepromDisable</H3>
1460
<PRE>
1461
public void <B>eepromDisable</B>()
1462
                   throws <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
1463
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1464
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1465
<DL>
1466
<DD>Disables the firmware stored in the EEPROM.
1467
 This is achived by writing a "0" to the address 0 of the EEPROM.
1468
<P>
1469
<DD><DL>
1470
 
1471
<DT><B>Throws:</B>
1472
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1473
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
1474
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if an error occurred while attempting to disable the firmware.</DL>
1475
</DD>
1476
</DL>
1477
<HR>
1478
 
1479
<A NAME="flashStrError(int)"><!-- --></A><H3>
1480
flashStrError</H3>
1481
<PRE>
1482
public static java.lang.String <B>flashStrError</B>(int&nbsp;errNum)</PRE>
1483
<DL>
1484
<DD>Converts a given error code into a String.
1485
<P>
1486
<DD><DL>
1487
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
1488
<DT><B>Returns:</B><DD>an error message.</DL>
1489
</DD>
1490
</DL>
1491
<HR>
1492
 
1493
<A NAME="flashStrError()"><!-- --></A><H3>
1494
flashStrError</H3>
1495
<PRE>
1496
public java.lang.String <B>flashStrError</B>()</PRE>
1497
<DL>
1498
<DD>Gets the last Flash error from the device.
1499
<P>
1500
<DD><DL>
1501
 
1502
<DT><B>Returns:</B><DD>an error message.</DL>
1503
</DD>
1504
</DL>
1505
<HR>
1506
 
1507
<A NAME="flashState()"><!-- --></A><H3>
1508
flashState</H3>
1509
<PRE>
1510
public boolean <B>flashState</B>()
1511
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1512
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1513
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1514
<DL>
1515
<DD>Reads the the Flash memory status and information.
1516
 This method also sets the variables <A HREF="../ztex/Ztex1v1.html#flashEnabled"><CODE>flashEnabled</CODE></A>, <A HREF="../ztex/Ztex1v1.html#flashSectorSize"><CODE>flashSectorSize</CODE></A> and <A HREF="../ztex/Ztex1v1.html#flashSectors"><CODE>flashSectors</CODE></A>.
1517
<P>
1518
<DD><DL>
1519
 
1520
<DT><B>Returns:</B><DD>true if Flash memory is installed.
1521
<DT><B>Throws:</B>
1522
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1523
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1524
<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>
1525
</DD>
1526
</DL>
1527
<HR>
1528
 
1529
<A NAME="getFlashEC()"><!-- --></A><H3>
1530
getFlashEC</H3>
1531
<PRE>
1532
public int <B>getFlashEC</B>()
1533
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1534
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1535
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1536
<DL>
1537
<DD>Gets the last Flash error from the device.
1538
<P>
1539
<DD><DL>
1540
 
1541 5 ZTEX
<DT><B>Returns:</B><DD>The last error code.
1542 3 ZTEX
<DT><B>Throws:</B>
1543
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1544
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1545
<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>
1546
</DD>
1547
</DL>
1548
<HR>
1549
 
1550
<A NAME="flashReadSector(int, byte[])"><!-- --></A><H3>
1551
flashReadSector</H3>
1552
<PRE>
1553
public void <B>flashReadSector</B>(int&nbsp;sector,
1554
                            byte[]&nbsp;buf)
1555
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1556
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1557
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1558
<DL>
1559
<DD>Reads one sector from the Flash.
1560
<P>
1561
<DD><DL>
1562
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be read.<DD><CODE>buf</CODE> - A buffer for the storage of the data.
1563
<DT><B>Throws:</B>
1564
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1565
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1566
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1567
</DD>
1568
</DL>
1569
<HR>
1570
 
1571
<A NAME="flashWriteSector(int, byte[])"><!-- --></A><H3>
1572
flashWriteSector</H3>
1573
<PRE>
1574
public void <B>flashWriteSector</B>(int&nbsp;sector,
1575
                             byte[]&nbsp;buf)
1576
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1577
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1578
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1579
<DL>
1580
<DD>Writes one sector to the Flash.
1581
<P>
1582
<DD><DL>
1583
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be written.<DD><CODE>buf</CODE> - The data.
1584
<DT><B>Throws:</B>
1585
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1586
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1587
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1588
</DD>
1589
</DL>
1590
<HR>
1591
 
1592
<A NAME="flashEnabled()"><!-- --></A><H3>
1593
flashEnabled</H3>
1594
<PRE>
1595
public boolean <B>flashEnabled</B>()
1596
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1597
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1598
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1599
<DL>
1600
<DD>Returns true if Flash memory is installed.
1601
<P>
1602
<DD><DL>
1603
 
1604
<DT><B>Returns:</B><DD>true if Flash memory is installed.
1605
<DT><B>Throws:</B>
1606
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1607
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1608
<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>
1609
</DD>
1610
</DL>
1611
<HR>
1612
 
1613
<A NAME="flashSectorSize()"><!-- --></A><H3>
1614
flashSectorSize</H3>
1615
<PRE>
1616
public int <B>flashSectorSize</B>()
1617
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1618
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1619
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1620
<DL>
1621
<DD>Returns the sector size of the Flash memory or 0, if no flash memory is installed.
1622
 If required, the sector size is determined form the device first.
1623
<P>
1624
<DD><DL>
1625
 
1626
<DT><B>Returns:</B><DD>the sector size of the Flash memory.
1627
<DT><B>Throws:</B>
1628
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1629
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1630
<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>
1631
</DD>
1632
</DL>
1633
<HR>
1634
 
1635
<A NAME="flashSectors()"><!-- --></A><H3>
1636
flashSectors</H3>
1637
<PRE>
1638
public int <B>flashSectors</B>()
1639
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1640
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1641
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1642
<DL>
1643
<DD>Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
1644
 If required, the number of sectors is determined form the device first.
1645
<P>
1646
<DD><DL>
1647
 
1648
<DT><B>Returns:</B><DD>the number of sectors of the Flash memory.
1649
<DT><B>Throws:</B>
1650
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1651
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1652
<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>
1653
</DD>
1654
</DL>
1655
<HR>
1656
 
1657
<A NAME="flashSize()"><!-- --></A><H3>
1658
flashSize</H3>
1659
<PRE>
1660
public long <B>flashSize</B>()
1661
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1662
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1663
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1664
<DL>
1665
<DD>Returns the size of Flash memory or 0, if no Flash memory is installed.
1666
 If required, the Flash size is determined form the device first.
1667
<P>
1668
<DD><DL>
1669
 
1670
<DT><B>Returns:</B><DD>the size of Flash memory.
1671
<DT><B>Throws:</B>
1672
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1673
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1674
<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>
1675
</DD>
1676
</DL>
1677
<HR>
1678
 
1679
<A NAME="printMmcState()"><!-- --></A><H3>
1680
printMmcState</H3>
1681
<PRE>
1682
public boolean <B>printMmcState</B>()
1683
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1684
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1685
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1686
<DL>
1687
<DD>Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
1688
 <b>Only use this method if such kind of Flash is installed.</b>
1689
<P>
1690
<DD><DL>
1691
 
1692
<DT><B>Throws:</B>
1693
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1694
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
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>
1696
</DD>
1697
</DL>
1698
<HR>
1699
 
1700 5 ZTEX
<A NAME="flashUploadBitstream(java.lang.String, int)"><!-- --></A><H3>
1701 3 ZTEX
flashUploadBitstream</H3>
1702
<PRE>
1703 5 ZTEX
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName,
1704
                                 int&nbsp;bs)
1705 3 ZTEX
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1706
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1707
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1708
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1709
<DL>
1710
<DD>Uploads a Bitstream to the Flash.
1711
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
1712
 it is possible to construct fully autonomous devices.
1713
 <p>
1714
 Information about the bitstream is stored in sector 0.
1715
 This so called boot sector has the following format:
1716
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
1717
   <tr>
1718
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
1719
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
1720
   </tr>
1721
   <tr>
1722
     <td bgcolor="#ffffff" valign="top">0..7</td>
1723
     <td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
1724
   </tr>
1725
   <tr>
1726
     <td bgcolor="#ffffff" valign="top">8..9</td>
1727
     <td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
1728
   </tr>
1729
   <tr>
1730
     <td bgcolor="#ffffff" valign="top">10..11</td>
1731
     <td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
1732
   </tr>
1733
   <tr>
1734
     <td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
1735
     <td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
1736
   </tr>
1737
 </table>
1738
 <p>
1739
 The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
1740
 where bs[i] denotes byte i of the boot sector.
1741
 <p>
1742
 The first sector of the Bitstream is sector 1.
1743
<P>
1744
<DD><DL>
1745 5 ZTEX
<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.
1746
<DT><B>Throws:</B>
1747
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1748
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1749
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
1750
<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>
1751
</DD>
1752
</DL>
1753
<HR>
1754
 
1755
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
1756
flashUploadBitstream</H3>
1757
<PRE>
1758
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
1759
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1760
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1761
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1762
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1763
<DL>
1764
<DD>Uploads a Bitstream to the Flash.
1765
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
1766
 it is possible to construct fully autonomous devices.
1767
 See <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)"><CODE>flashUploadBitstream(String,int)</CODE></A> for further details.
1768
<P>
1769
<DD><DL>
1770 3 ZTEX
<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).
1771
<DT><B>Throws:</B>
1772
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1773
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1774
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
1775
<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>
1776
</DD>
1777
</DL>
1778
<HR>
1779
 
1780
<A NAME="flashResetBitstream()"><!-- --></A><H3>
1781
flashResetBitstream</H3>
1782
<PRE>
1783
public void <B>flashResetBitstream</B>()
1784
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1785
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1786
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1787
<DL>
1788
<DD>Clears a Bitstream from the Flash.
1789
 This is achieved by writing 0 to bytes 8..9 of the boot sector, see <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)"><CODE>flashUploadBitstream(String)</CODE></A>.
1790
 If no boot sector is installed the method returns without any write action.
1791
<P>
1792
<DD><DL>
1793
 
1794
<DT><B>Throws:</B>
1795
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1796
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1797
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1798
</DD>
1799
</DL>
1800
<HR>
1801
 
1802
<A NAME="flashFirstFreeSector()"><!-- --></A><H3>
1803
flashFirstFreeSector</H3>
1804
<PRE>
1805
public int <B>flashFirstFreeSector</B>()
1806
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1807
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1808
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1809
<DL>
1810
<DD>Returns the first free sector of the Flash memory.
1811
 This is the first sector behind the Bitstream, or 0 if no boot sector is installed (or 1 if a boot sector but no Bitstream is installed).
1812
<P>
1813
<DD><DL>
1814
 
1815
<DT><B>Returns:</B><DD>the first free sector of the Flash memory.
1816
<DT><B>Throws:</B>
1817
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1818
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1819
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1820
</DD>
1821
</DL>
1822
<HR>
1823
 
1824 5 ZTEX
<A NAME="debugStackSize()"><!-- --></A><H3>
1825
debugStackSize</H3>
1826
<PRE>
1827
public int <B>debugStackSize</B>()
1828
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1829
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1830
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1831
<DL>
1832
<DD>Returns the size of message stack in messages.
1833
<P>
1834
<DD><DL>
1835
 
1836
<DT><B>Returns:</B><DD>the size of message stack in messages.
1837
<DT><B>Throws:</B>
1838
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1839
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1840
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1841
</DD>
1842
</DL>
1843
<HR>
1844
 
1845
<A NAME="debugMsgSize()"><!-- --></A><H3>
1846
debugMsgSize</H3>
1847
<PRE>
1848
public int <B>debugMsgSize</B>()
1849
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1850
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1851
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1852
<DL>
1853
<DD>Returns the size of messages in bytes.
1854
<P>
1855
<DD><DL>
1856
 
1857
<DT><B>Returns:</B><DD>the size of messages in bytes.
1858
<DT><B>Throws:</B>
1859
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1860
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1861
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1862
</DD>
1863
</DL>
1864
<HR>
1865
 
1866
<A NAME="debugLastMsg()"><!-- --></A><H3>
1867
debugLastMsg</H3>
1868
<PRE>
1869
public final int <B>debugLastMsg</B>()</PRE>
1870
<DL>
1871
<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>
1872
<P>
1873
<DD><DL>
1874
 
1875
<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>
1876
</DD>
1877
</DL>
1878
<HR>
1879
 
1880
<A NAME="debugReadMessages(boolean, byte[])"><!-- --></A><H3>
1881
debugReadMessages</H3>
1882
<PRE>
1883
public int <B>debugReadMessages</B>(boolean&nbsp;all,
1884
                             byte[]&nbsp;buf)
1885
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1886
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1887
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1888
<DL>
1889
<DD>Reads debug messages from message stack.
1890
 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>.
1891
 The number of the latest message is returned by <A HREF="../ztex/Ztex1v1.html#debugLastMsg()"><CODE>debugLastMsg()</CODE></A>.
1892
<P>
1893
<DD><DL>
1894
<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.
1895
<DT><B>Returns:</B><DD>the size of messages stored in buffer.
1896
<DT><B>Throws:</B>
1897
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1898
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1899
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1900
</DD>
1901
</DL>
1902
<HR>
1903
 
1904 3 ZTEX
<A NAME="toString()"><!-- --></A><H3>
1905
toString</H3>
1906
<PRE>
1907
public java.lang.String <B>toString</B>()</PRE>
1908
<DL>
1909
<DD>Returns a lot of useful information about the corresponding device.
1910
<P>
1911
<DD><DL>
1912
<DT><B>Overrides:</B><DD><CODE><A HREF="../ztex/Ztex1.html#toString()">toString</A></CODE> in class <CODE><A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></CODE></DL>
1913
</DD>
1914
<DD><DL>
1915
 
1916
<DT><B>Returns:</B><DD>a lot of useful information about the corresponding device.</DL>
1917
</DD>
1918
</DL>
1919
<HR>
1920
 
1921
<A NAME="capabilityInfo(java.lang.String)"><!-- --></A><H3>
1922
capabilityInfo</H3>
1923
<PRE>
1924
public java.lang.String <B>capabilityInfo</B>(java.lang.String&nbsp;pf)</PRE>
1925
<DL>
1926
<DD>Creates a String with capability information.
1927
<P>
1928
<DD><DL>
1929
<DT><B>Parameters:</B><DD><CODE>pf</CODE> - A separator between the single capabilities, e.g. ", "
1930
<DT><B>Returns:</B><DD>a string of the supported capabilities.</DL>
1931
</DD>
1932
</DL>
1933
<!-- ========= END OF CLASS DATA ========= -->
1934
<HR>
1935
 
1936
 
1937
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1938
<A NAME="navbar_bottom"><!-- --></A>
1939
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1940
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1941
<TR>
1942
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1943
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1944
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1945
  <TR ALIGN="center" VALIGN="top">
1946
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1947
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1948
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1949
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1950
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1951
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1952
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1953
  </TR>
1954
</TABLE>
1955
</TD>
1956
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1957
</EM>
1958
</TD>
1959
</TR>
1960
 
1961
<TR>
1962
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1963
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
1964
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
1965
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1966
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1967
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1968
&nbsp;<SCRIPT type="text/javascript">
1969
  <!--
1970
  if(window==top) {
1971
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
1972
  }
1973
  //-->
1974
</SCRIPT>
1975
<NOSCRIPT>
1976
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
1977
</NOSCRIPT>
1978
 
1979
 
1980
</FONT></TD>
1981
</TR>
1982
<TR>
1983
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1984
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1985
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1986
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1987
</TR>
1988
</TABLE>
1989
<A NAME="skip-navbar_bottom"></A>
1990
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1991
 
1992
<HR>
1993
 
1994
</BODY>
1995
</HTML>

powered by: WebSVN 2.1.0

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