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

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [docs/] [java/] [ztex/] [Ztex1v1.html] - Blame information for rev 6

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

Line No. Rev Author Line
1 2 ZTEX
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5 6 ZTEX
<!-- Generated by javadoc (build 1.6.0_18) on Thu Apr 12 22:51:27 CEST 2012 -->
6 2 ZTEX
<TITLE>
7
Ztex1v1
8
</TITLE>
9
 
10 6 ZTEX
<META NAME="date" CONTENT="2012-04-12">
11 2 ZTEX
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="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 5 ZTEX
                 <td bgcolor="#ffffff" valign="top">INIT_B states.</td>
190 2 ZTEX
               </tr>
191 6 ZTEX
               <tr>
192
                 <td bgcolor="#ffffff" valign="top">7</td>
193
                 <td bgcolor="#ffffff" valign="top">Flash configuration result.</td>
194
               </tr>
195
               <tr>
196
                 <td bgcolor="#ffffff" valign="top">8</td>
197
                 <td bgcolor="#ffffff" valign="top">Flash Bitstreambit order (1=swapped).</td>
198
               </tr>
199 2 ZTEX
             </table>
200
           </td>
201
         </tr>
202
         <tr>
203
           <td bgcolor="#ffffff" valign="top">VC 0x31</td>
204
           <td bgcolor="#ffffff" valign="top">Reset FPGA</td>
205
         </tr>
206
         <tr>
207
           <td bgcolor="#ffffff" valign="top">VR 0x32</td>
208
           <td bgcolor="#ffffff" valign="top">Send Bitstream</td>
209
         </tr>
210
       </table>
211
     </td>
212
   </tr>
213
   <tr>
214
     <td bgcolor="#ffffff" valign="top">0.2</td>
215
     <td bgcolor="#ffffff" valign="top" colspan=2>
216
       Flash memory support<p>
217
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
218
         <tr>
219
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
220
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
221
         </tr>
222
         <tr>
223
           <td bgcolor="#ffffff" valign="top">VR 0x40</td>
224
           <td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
225
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
226
               <tr>
227
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
228
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
229
               </tr>
230
               <tr>
231
                 <td bgcolor="#ffffff" valign="top">0</td>
232
                 <td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
233
               </tr>
234
               <tr>
235
                 <td bgcolor="#ffffff" valign="top">1-2</td>
236
                 <td bgcolor="#ffffff" valign="top">Sector size</td>
237
               </tr>
238
               <tr>
239
                 <td bgcolor="#ffffff" valign="top">3-6</td>
240
                 <td bgcolor="#ffffff" valign="top">Number of sectors</td>
241
               </tr>
242
               <tr>
243
                 <td bgcolor="#ffffff" valign="top">7</td>
244
                 <td bgcolor="#ffffff" valign="top">Error code</td>
245
               </tr>
246
             </table>
247
           </td>
248
         </tr>
249
         <tr>
250
           <td bgcolor="#ffffff" valign="top">VR 0x41</td>
251
           <td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
252
         </tr>
253
         <tr>
254
           <td bgcolor="#ffffff" valign="top">VC 0x42</td>
255
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
256
         </tr>
257
       </table>
258
     </td>
259
   </tr>
260 3 ZTEX
   <tr>
261
     <td bgcolor="#ffffff" valign="top">0.3</td>
262
     <td bgcolor="#ffffff" valign="top" colspan=2>
263
       Debug helper support<p>
264
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
265
         <tr>
266
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
267
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
268
         </tr>
269
         <tr>
270
           <td bgcolor="#ffffff" valign="top">VR 0x28</td>
271
           <td bgcolor="#ffffff" valign="top">Get debug data. Returns:
272
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
273
               <tr>
274
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
275
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
276
               </tr>
277
               <tr>
278
                 <td bgcolor="#ffffff" valign="top">0-1</td>
279
                 <td bgcolor="#ffffff" valign="top">Number of the last message</td>
280
               </tr>
281
               <tr>
282
                 <td bgcolor="#ffffff" valign="top">2</td>
283
                 <td bgcolor="#ffffff" valign="top">Stack size in messages</td>
284
               </tr>
285
               <tr>
286
                 <td bgcolor="#ffffff" valign="top">3</td>
287
                 <td bgcolor="#ffffff" valign="top">Message size in bytes</td>
288
               </tr>
289
               <tr>
290
                 <td bgcolor="#ffffff" valign="top">&ge;4</td>
291
                 <td bgcolor="#ffffff" valign="top">Message stack</td>
292
               </tr>
293
             </table>
294
           </td>
295
         </tr>
296
       </table>
297
     </td>
298
   </tr>
299 5 ZTEX
   <tr>
300
     <td bgcolor="#ffffff" valign="top">0.4</td>
301
     <td bgcolor="#ffffff" valign="top" colspan=2>
302
       XMEGA support<p>
303
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
304
         <tr>
305
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
306
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
307
         </tr>
308
         <tr>
309
           <td bgcolor="#ffffff" valign="top">VR 0x48</td>
310
           <td bgcolor="#ffffff" valign="top">Read XMEGA status information. Returns:
311
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
312
               <tr>
313
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
314
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
315
               </tr>
316
               <tr>
317
                 <td bgcolor="#ffffff" valign="top">0</td>
318
                 <td bgcolor="#ffffff" valign="top">Error code</td>
319
               </tr>
320
               <tr>
321
                 <td bgcolor="#ffffff" valign="top">1-2</td>
322
                 <td bgcolor="#ffffff" valign="top">Flash size in pages</td>
323
               </tr>
324
               <tr>
325
                 <td bgcolor="#ffffff" valign="top">3-4</td>
326
                 <td bgcolor="#ffffff" valign="top">EEPROM sie in pages</td>
327
               </tr>
328
               <tr>
329
                 <td bgcolor="#ffffff" valign="top">5</td>
330
                 <td bgcolor="#ffffff" valign="top">Flash page size as power of two     (e.g. 9 means 512 bytes)</td>
331
               </tr>
332
               <tr>
333
                 <td bgcolor="#ffffff" valign="top">6</td>
334
                 <td bgcolor="#ffffff" valign="top">EEPROM page size as power of two</td>
335
               </tr>
336
             </table>
337
           </td>
338
         </tr>
339
         <tr>
340
           <td bgcolor="#ffffff" valign="top">VC 0x49</td>
341
           <td bgcolor="#ffffff" valign="top">Reset XMEGA</td>
342
         </tr>
343
         <tr>
344
           <td bgcolor="#ffffff" valign="top">VRs 0x4A, 0x4B, 0x4C, 0x4D</td>
345
           <td bgcolor="#ffffff" valign="top">Read XMEGA NVM using PDI address space / relative to Flash address base / EEPROM address base / Fuse address base</td>
346
         </tr>
347
         <tr>
348
           <td bgcolor="#ffffff" valign="top">VCs 0x4B, 0x4C</td>
349
           <td bgcolor="#ffffff" valign="top">Write exactly one Flash / EEPROM page</td>
350
         </tr>
351
         <tr>
352
           <td bgcolor="#ffffff" valign="top">VCs 0x4D</td>
353
           <td bgcolor="#ffffff" valign="top">Write Fuse</td>
354
         </tr>
355
       </table>
356
     </td>
357
   </tr>
358
   <tr>
359
     <td bgcolor="#ffffff" valign="top">0.5</td>
360
     <td bgcolor="#ffffff" valign="top" colspan=2>
361
          High speed FPGA configuration support<p>
362
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
363
         <tr>
364
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
365
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
366
         </tr>
367
         <tr>
368
           <td bgcolor="#ffffff" valign="top">VR 0x33</td>
369
           <td bgcolor="#ffffff" valign="top">Read Endpoint settings. Returns:
370
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
371
               <tr>
372
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
373
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
374
               </tr>
375
               <tr>
376
                 <td bgcolor="#ffffff" valign="top">0</td>
377
                 <td bgcolor="#ffffff" valign="top">Endpoint number</td>
378
               </tr>
379
               <tr>
380
                 <td bgcolor="#ffffff" valign="top">1</td>
381
                 <td bgcolor="#ffffff" valign="top">Interface number</td>
382
               </tr>
383
             </table>
384
           </td>
385
         </tr>
386
         <tr>
387
           <td bgcolor="#ffffff" valign="top">VR 0x34</td>
388
           <td bgcolor="#ffffff" valign="top">Start FPGA configuration</td>
389
         </tr>
390
         <tr>
391
           <td bgcolor="#ffffff" valign="top">VC 0x35</td>
392
           <td bgcolor="#ffffff" valign="top">Finish FPGA configuration</td>
393
         </tr>
394
       </table>
395
        </td>
396
   </tr>
397
   <tr>
398
     <td bgcolor="#ffffff" valign="top">0.6</td>
399
     <td bgcolor="#ffffff" valign="top" colspan=2>
400
          MAC EEPROM support<p>
401
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
402
         <tr>
403
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
404
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
405
         </tr>
406
         <tr>
407
           <td bgcolor="#ffffff" valign="top">VR 0x3B</td>
408
           <td bgcolor="#ffffff" valign="top">Read from MAC EEPROM</td>
409
         </tr>
410
         <tr>
411
           <td bgcolor="#ffffff" valign="top">VC 0x3C</td>
412
           <td bgcolor="#ffffff" valign="top">Write to MAC EEPROM</td>
413
         </tr>
414
         <tr>
415
           <td bgcolor="#ffffff" valign="top">VR 0x3D</td>
416
           <td bgcolor="#ffffff" valign="top">Get MAC EEPROM state. Returns:
417
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
418
               <tr>
419
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
420
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
421
               </tr>
422
               <tr>
423
                 <td bgcolor="#ffffff" valign="top">0</td>
424
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
425
               </tr>
426
             </table>
427
           </td>
428
         </tr>
429
       </table>
430
        </td>
431
   </tr>
432 6 ZTEX
   <tr>
433
     <td bgcolor="#ffffff" valign="top">0.7</td>
434
     <td bgcolor="#ffffff" valign="top" colspan=2>
435
          Multi-FPGA support<p>
436
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
437
         <tr>
438
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
439
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
440
         </tr>
441
         <tr>
442
           <td bgcolor="#ffffff" valign="top">VR 0x50</td>
443
           <td bgcolor="#ffffff" valign="top">Return multi-FPGA information:
444
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
445
               <tr>
446
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
447
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
448
               </tr>
449
               <tr>
450
                 <td bgcolor="#ffffff" valign="top">0</td>
451
                 <td bgcolor="#ffffff" valign="top">Number of FPGA's - 1</td>
452
               </tr>
453
               <tr>
454
                 <td bgcolor="#ffffff" valign="top">1</td>
455
                 <td bgcolor="#ffffff" valign="top">Selected FPGA - 1</td>
456
               </tr>
457
               <tr>
458
                    <td bgcolor="#ffffff" valign="top">2</td>
459
                    <td bgcolor="#ffffff" valign="top">Parallel configuration support (0:no, 1:yes)</td>
460
               </tr>
461
             </table>
462
           </td>
463
         </tr>
464
         <tr>
465
           <td bgcolor="#ffffff" valign="top">VC 0x51</td>
466
           <td bgcolor="#ffffff" valign="top">Parameters:
467
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
468
               <tr>
469
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Parameter</b></td>
470
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
471
               </tr>
472
               <tr>
473
                 <td bgcolor="#ffffff" valign="top">index</td>
474
                 <td bgcolor="#ffffff" valign="top">Select command<br> 0: Select single FPGA <br> 1: Select all FPGA's for configuration</td>
475
               </tr>
476
               <tr>
477
                 <td bgcolor="#ffffff" valign="top">value</td>
478
                 <td bgcolor="#ffffff" valign="top">FPGA to select - 1</td>
479
               </tr>
480
             </table>
481
           </td>
482
         </tr>
483
       </table>
484
        </td>
485
   </tr>
486 2 ZTEX
 </table>
487
<P>
488
 
489
<P>
490
<DL>
491
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>,
492
<A HREF="../ztex/Ztex1.html" title="class in ztex"><CODE>Ztex1</CODE></A></DL>
493
<HR>
494
 
495
<P>
496
<!-- =========== FIELD SUMMARY =========== -->
497
 
498
<A NAME="field_summary"><!-- --></A>
499
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
500
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
501
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
502
<B>Field Summary</B></FONT></TH>
503
</TR>
504
<TR BGCOLOR="white" CLASS="TableRowColor">
505
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506 3 ZTEX
<CODE>static&nbsp;int</CODE></FONT></TD>
507
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</A></B></CODE>
508
 
509
<BR>
510
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for DEBUG helper support.</TD>
511
</TR>
512
<TR BGCOLOR="white" CLASS="TableRowColor">
513
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514
<CODE>static&nbsp;int</CODE></FONT></TD>
515
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</A></B></CODE>
516
 
517
<BR>
518
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for EEPROM support.</TD>
519
</TR>
520
<TR BGCOLOR="white" CLASS="TableRowColor">
521
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
522
<CODE>static&nbsp;int</CODE></FONT></TD>
523
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</A></B></CODE>
524
 
525
<BR>
526
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FLASH memory support.</TD>
527
</TR>
528
<TR BGCOLOR="white" CLASS="TableRowColor">
529
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
530
<CODE>static&nbsp;int</CODE></FONT></TD>
531
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</A></B></CODE>
532
 
533
<BR>
534
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FPGA configuration support.</TD>
535
</TR>
536
<TR BGCOLOR="white" CLASS="TableRowColor">
537
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
538
<CODE>static&nbsp;int</CODE></FONT></TD>
539 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_HS_FPGA">CAPABILITY_HS_FPGA</A></B></CODE>
540
 
541
<BR>
542
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
543
</TR>
544
<TR BGCOLOR="white" CLASS="TableRowColor">
545
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
546
<CODE>static&nbsp;int</CODE></FONT></TD>
547
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_MAC_EEPROM">CAPABILITY_MAC_EEPROM</A></B></CODE>
548
 
549
<BR>
550
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
551
</TR>
552
<TR BGCOLOR="white" CLASS="TableRowColor">
553
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
554
<CODE>static&nbsp;int</CODE></FONT></TD>
555 6 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_MULTI_FPGA">CAPABILITY_MULTI_FPGA</A></B></CODE>
556
 
557
<BR>
558
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for multi FPGA support</TD>
559
</TR>
560
<TR BGCOLOR="white" CLASS="TableRowColor">
561
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
562
<CODE>static&nbsp;int</CODE></FONT></TD>
563 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</A></B></CODE>
564
 
565
<BR>
566
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
567
</TR>
568
<TR BGCOLOR="white" CLASS="TableRowColor">
569
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
570 2 ZTEX
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
571
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
572
 
573
<BR>
574
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</TD>
575
</TR>
576
<TR BGCOLOR="white" CLASS="TableRowColor">
577
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
578
<CODE>&nbsp;int</CODE></FONT></TD>
579 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</A></B></CODE>
580
 
581
<BR>
582 5 ZTEX
&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 contains the number of new messages.</TD>
583 3 ZTEX
</TR>
584
<TR BGCOLOR="white" CLASS="TableRowColor">
585
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
586
<CODE>&nbsp;int</CODE></FONT></TD>
587 2 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
588
 
589
<BR>
590
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
591
</TR>
592
<TR BGCOLOR="white" CLASS="TableRowColor">
593
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
594
<CODE>&nbsp;int</CODE></FONT></TD>
595
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</A></B></CODE>
596
 
597
<BR>
598
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checksum of the last EEPROM transfer.</TD>
599
</TR>
600
<TR BGCOLOR="white" CLASS="TableRowColor">
601
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
602 6 ZTEX
<CODE>&nbsp;boolean</CODE></FONT></TD>
603
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#enableExtraFpgaConfigurationChecks">enableExtraFpgaConfigurationChecks</A></B></CODE>
604
 
605
<BR>
606
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables extra FPGA configuration checks.</TD>
607
</TR>
608
<TR BGCOLOR="white" CLASS="TableRowColor">
609
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
610 2 ZTEX
<CODE>static&nbsp;int</CODE></FONT></TD>
611
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_BUSY">FLASH_EC_BUSY</A></B></CODE>
612
 
613
<BR>
614
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that Flash memory it busy.</TD>
615
</TR>
616
<TR BGCOLOR="white" CLASS="TableRowColor">
617
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
618
<CODE>static&nbsp;int</CODE></FONT></TD>
619
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_CMD_ERROR">FLASH_EC_CMD_ERROR</A></B></CODE>
620
 
621
<BR>
622
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to execute a command.</TD>
623
</TR>
624
<TR BGCOLOR="white" CLASS="TableRowColor">
625
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
626
<CODE>static&nbsp;int</CODE></FONT></TD>
627
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</A></B></CODE>
628
 
629
<BR>
630
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
631
</TR>
632
<TR BGCOLOR="white" CLASS="TableRowColor">
633
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
634
<CODE>static&nbsp;int</CODE></FONT></TD>
635 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</A></B></CODE>
636
 
637
<BR>
638 5 ZTEX
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals the the installed Flash memory is not supported.</TD>
639 3 ZTEX
</TR>
640
<TR BGCOLOR="white" CLASS="TableRowColor">
641
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
642
<CODE>static&nbsp;int</CODE></FONT></TD>
643 2 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
644
 
645
<BR>
646
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</TD>
647
</TR>
648
<TR BGCOLOR="white" CLASS="TableRowColor">
649
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
650
<CODE>static&nbsp;int</CODE></FONT></TD>
651
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</A></B></CODE>
652
 
653
<BR>
654
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to read from Flash.</TD>
655
</TR>
656
<TR BGCOLOR="white" CLASS="TableRowColor">
657
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
658
<CODE>static&nbsp;int</CODE></FONT></TD>
659
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</A></B></CODE>
660
 
661
<BR>
662
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that a timeout occurred.</TD>
663
</TR>
664
<TR BGCOLOR="white" CLASS="TableRowColor">
665
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
666
<CODE>static&nbsp;int</CODE></FONT></TD>
667
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</A></B></CODE>
668
 
669
<BR>
670
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to write to Flash.</TD>
671
</TR>
672
<TR BGCOLOR="white" CLASS="TableRowColor">
673
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
674
<CODE>&nbsp;int</CODE></FONT></TD>
675
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEC">flashEC</A></B></CODE>
676
 
677
<BR>
678
&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>
679
</TR>
680 5 ZTEX
<TR BGCOLOR="white" CLASS="TableRowColor">
681
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
682
<CODE>static&nbsp;int</CODE></FONT></TD>
683
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_ADDRESS_ERROR">XMEGA_EC_ADDRESS_ERROR</A></B></CODE>
684
 
685
<BR>
686
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an address error (invalid address or wrong page size).</TD>
687
</TR>
688
<TR BGCOLOR="white" CLASS="TableRowColor">
689
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
690
<CODE>static&nbsp;int</CODE></FONT></TD>
691
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_INVALID_DEVICE">XMEGA_EC_INVALID_DEVICE</A></B></CODE>
692
 
693
<BR>
694
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that the ATxmega controller is not supported.</TD>
695
</TR>
696
<TR BGCOLOR="white" CLASS="TableRowColor">
697
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
698
<CODE>static&nbsp;int</CODE></FONT></TD>
699
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NO_ERROR">XMEGA_EC_NO_ERROR</A></B></CODE>
700
 
701
<BR>
702
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
703
</TR>
704
<TR BGCOLOR="white" CLASS="TableRowColor">
705
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
706
<CODE>static&nbsp;int</CODE></FONT></TD>
707
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NVM_BUSY">XMEGA_EC_NVM_BUSY</A></B></CODE>
708
 
709
<BR>
710
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that the NVM is busy.</TD>
711
</TR>
712
<TR BGCOLOR="white" CLASS="TableRowColor">
713
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
714
<CODE>static&nbsp;int</CODE></FONT></TD>
715
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NVM_TIMEOUT">XMEGA_EC_NVM_TIMEOUT</A></B></CODE>
716
 
717
<BR>
718
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that an NVM timeout occurred.</TD>
719
</TR>
720
<TR BGCOLOR="white" CLASS="TableRowColor">
721
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
722
<CODE>static&nbsp;int</CODE></FONT></TD>
723
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_PDI_READ_ERROR">XMEGA_EC_PDI_READ_ERROR</A></B></CODE>
724
 
725
<BR>
726
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals a PDI read error.</TD>
727
</TR>
728
<TR BGCOLOR="white" CLASS="TableRowColor">
729
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
730
<CODE>&nbsp;int</CODE></FONT></TD>
731
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEC">xmegaEC</A></B></CODE>
732
 
733
<BR>
734
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Last ATxmega error code obtained by <A HREF="../ztex/Ztex1v1.html#xmegaState()"><CODE>xmegaState()</CODE></A>.</TD>
735
</TR>
736 2 ZTEX
</TABLE>
737
&nbsp;<A NAME="fields_inherited_from_class_ztex.Ztex1"><!-- --></A>
738
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
739
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
740
<TH ALIGN="left"><B>Fields inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
741
</TR>
742
<TR BGCOLOR="white" CLASS="TableRowColor">
743
<TD><CODE><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A>, <A HREF="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></CODE></TD>
744
</TR>
745
</TABLE>
746
&nbsp;
747
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
748
 
749
<A NAME="constructor_summary"><!-- --></A>
750
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
751
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
752
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
753
<B>Constructor Summary</B></FONT></TH>
754
</TR>
755
<TR BGCOLOR="white" CLASS="TableRowColor">
756
<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>
757
 
758
<BR>
759
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given device.</TD>
760
</TR>
761
</TABLE>
762
&nbsp;
763
<!-- ========== METHOD SUMMARY =========== -->
764
 
765
<A NAME="method_summary"><!-- --></A>
766
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
767
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
768
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
769
<B>Method Summary</B></FONT></TH>
770
</TR>
771
<TR BGCOLOR="white" CLASS="TableRowColor">
772
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
773
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
774
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</A></B>(java.lang.String&nbsp;pf)</CODE>
775
 
776
<BR>
777
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</TD>
778
</TR>
779
<TR BGCOLOR="white" CLASS="TableRowColor">
780
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
781
<CODE>&nbsp;void</CODE></FONT></TD>
782 3 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</A></B>(int&nbsp;i)</CODE>
783
 
784
<BR>
785
&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>
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 2 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
791
                int&nbsp;j)</CODE>
792
 
793
<BR>
794
&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>
795
</TR>
796
<TR BGCOLOR="white" CLASS="TableRowColor">
797
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
798
<CODE>&nbsp;void</CODE></FONT></TD>
799
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCompatible(int, int, int, int)">checkCompatible</A></B>(int&nbsp;productId0,
800
                int&nbsp;productId1,
801
                int&nbsp;productId2,
802
                int&nbsp;productId3)</CODE>
803
 
804
<BR>
805
&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>
806
</TR>
807
<TR BGCOLOR="white" CLASS="TableRowColor">
808
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
809
<CODE>&nbsp;void</CODE></FONT></TD>
810
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkValid()">checkValid</A></B>()</CODE>
811
 
812
<BR>
813
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</TD>
814
</TR>
815
<TR BGCOLOR="white" CLASS="TableRowColor">
816
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
817
<CODE>&nbsp;boolean</CODE></FONT></TD>
818
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)">compatible</A></B>(int&nbsp;productId0,
819
           int&nbsp;productId1,
820
           int&nbsp;productId2,
821
           int&nbsp;productId3)</CODE>
822
 
823
<BR>
824
&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>
825
</TR>
826
<TR BGCOLOR="white" CLASS="TableRowColor">
827
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
828
<CODE>&nbsp;long</CODE></FONT></TD>
829
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
830
              boolean&nbsp;force)</CODE>
831
 
832
<BR>
833 5 ZTEX
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</TD>
834 2 ZTEX
</TR>
835
<TR BGCOLOR="white" CLASS="TableRowColor">
836
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
837 3 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
838
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean, int)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
839
              boolean&nbsp;force,
840
              int&nbsp;bs)</CODE>
841
 
842
<BR>
843 5 ZTEX
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</TD>
844 3 ZTEX
</TR>
845
<TR BGCOLOR="white" CLASS="TableRowColor">
846
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
847 5 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
848
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaHS(java.lang.String, boolean, int)">configureFpgaHS</A></B>(java.lang.String&nbsp;fwFileName,
849
                boolean&nbsp;force,
850
                int&nbsp;bs)</CODE>
851
 
852
<BR>
853
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using high speed mode.</TD>
854
</TR>
855
<TR BGCOLOR="white" CLASS="TableRowColor">
856
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
857
<CODE>&nbsp;long</CODE></FONT></TD>
858
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaLS(java.lang.String, boolean, int)">configureFpgaLS</A></B>(java.lang.String&nbsp;fwFileName,
859
                boolean&nbsp;force,
860
                int&nbsp;bs)</CODE>
861
 
862
<BR>
863
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using low speed mode.</TD>
864
</TR>
865
<TR BGCOLOR="white" CLASS="TableRowColor">
866
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
867 3 ZTEX
<CODE>&nbsp;int</CODE></FONT></TD>
868
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</A></B>()</CODE>
869
 
870
<BR>
871
&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>
872
</TR>
873
<TR BGCOLOR="white" CLASS="TableRowColor">
874
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
875
<CODE>&nbsp;int</CODE></FONT></TD>
876
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</A></B>()</CODE>
877
 
878
<BR>
879
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of messages in bytes.</TD>
880
</TR>
881
<TR BGCOLOR="white" CLASS="TableRowColor">
882
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
883
<CODE>&nbsp;int</CODE></FONT></TD>
884
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])">debugReadMessages</A></B>(boolean&nbsp;all,
885
                  byte[]&nbsp;buf)</CODE>
886
 
887
<BR>
888
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads debug messages from message stack.</TD>
889
</TR>
890
<TR BGCOLOR="white" CLASS="TableRowColor">
891
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
892
<CODE>&nbsp;int</CODE></FONT></TD>
893
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</A></B>()</CODE>
894
 
895
<BR>
896
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of message stack in messages.</TD>
897
</TR>
898
<TR BGCOLOR="white" CLASS="TableRowColor">
899
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
900 2 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
901
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
902
 
903
<BR>
904
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
905
</TR>
906
<TR BGCOLOR="white" CLASS="TableRowColor">
907
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
908
<CODE>&nbsp;void</CODE></FONT></TD>
909
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromRead(int, byte[], int)">eepromRead</A></B>(int&nbsp;addr,
910
           byte[]&nbsp;buf,
911
           int&nbsp;length)</CODE>
912
 
913
<BR>
914
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the EEPROM.</TD>
915
</TR>
916
<TR BGCOLOR="white" CLASS="TableRowColor">
917
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
918
<CODE>&nbsp;boolean</CODE></FONT></TD>
919
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromState()">eepromState</A></B>()</CODE>
920
 
921
<BR>
922
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current EEPROM status.</TD>
923
</TR>
924
<TR BGCOLOR="white" CLASS="TableRowColor">
925
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
926
<CODE>&nbsp;long</CODE></FONT></TD>
927
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromUpload(java.lang.String, boolean)">eepromUpload</A></B>(java.lang.String&nbsp;ihxFileName,
928
             boolean&nbsp;force)</CODE>
929
 
930
<BR>
931
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
932
</TR>
933
<TR BGCOLOR="white" CLASS="TableRowColor">
934
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
935 5 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
936
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromUpload(ztex.ZtexIhxFile1, boolean)">eepromUpload</A></B>(<A HREF="../ztex/ZtexIhxFile1.html" title="class in ztex">ZtexIhxFile1</A>&nbsp;ihxFile,
937
             boolean&nbsp;force)</CODE>
938
 
939
<BR>
940
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
941
</TR>
942
<TR BGCOLOR="white" CLASS="TableRowColor">
943
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
944 2 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
945
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromWrite(int, byte[], int)">eepromWrite</A></B>(int&nbsp;addr,
946
            byte[]&nbsp;buf,
947
            int&nbsp;length)</CODE>
948
 
949
<BR>
950
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the EEPROM.</TD>
951
</TR>
952
<TR BGCOLOR="white" CLASS="TableRowColor">
953
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
954
<CODE>&nbsp;boolean</CODE></FONT></TD>
955
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</A></B>()</CODE>
956
 
957
<BR>
958
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if Flash memory is installed.</TD>
959
</TR>
960
<TR BGCOLOR="white" CLASS="TableRowColor">
961
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
962
<CODE>&nbsp;int</CODE></FONT></TD>
963
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</A></B>()</CODE>
964
 
965
<BR>
966
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first free sector of the Flash memory.</TD>
967
</TR>
968
<TR BGCOLOR="white" CLASS="TableRowColor">
969
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
970
<CODE>&nbsp;void</CODE></FONT></TD>
971
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
972
                byte[]&nbsp;buf)</CODE>
973
 
974
<BR>
975
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one sector from the Flash.</TD>
976
</TR>
977
<TR BGCOLOR="white" CLASS="TableRowColor">
978
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
979
<CODE>&nbsp;void</CODE></FONT></TD>
980 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
981
                int&nbsp;num,
982
                byte[]&nbsp;buf)</CODE>
983
 
984
<BR>
985
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a integer number of sectors from the Flash.</TD>
986
</TR>
987
<TR BGCOLOR="white" CLASS="TableRowColor">
988
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
989
<CODE>&nbsp;void</CODE></FONT></TD>
990 2 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</A></B>()</CODE>
991
 
992
<BR>
993
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears a Bitstream from the Flash.</TD>
994
</TR>
995
<TR BGCOLOR="white" CLASS="TableRowColor">
996
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
997
<CODE>&nbsp;int</CODE></FONT></TD>
998
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectors()">flashSectors</A></B>()</CODE>
999
 
1000
<BR>
1001
&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>
1002
</TR>
1003
<TR BGCOLOR="white" CLASS="TableRowColor">
1004
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1005
<CODE>&nbsp;int</CODE></FONT></TD>
1006
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</A></B>()</CODE>
1007
 
1008
<BR>
1009
&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>
1010
</TR>
1011
<TR BGCOLOR="white" CLASS="TableRowColor">
1012
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1013
<CODE>&nbsp;long</CODE></FONT></TD>
1014
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSize()">flashSize</A></B>()</CODE>
1015
 
1016
<BR>
1017
&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>
1018
</TR>
1019
<TR BGCOLOR="white" CLASS="TableRowColor">
1020
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1021
<CODE>&nbsp;boolean</CODE></FONT></TD>
1022
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashState()">flashState</A></B>()</CODE>
1023
 
1024
<BR>
1025
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the the Flash memory status and information.</TD>
1026
</TR>
1027
<TR BGCOLOR="white" CLASS="TableRowColor">
1028
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1029
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1030
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError()">flashStrError</A></B>()</CODE>
1031
 
1032
<BR>
1033
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
1034
</TR>
1035
<TR BGCOLOR="white" CLASS="TableRowColor">
1036
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1037
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
1038
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</A></B>(int&nbsp;errNum)</CODE>
1039
 
1040
<BR>
1041
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
1042
</TR>
1043
<TR BGCOLOR="white" CLASS="TableRowColor">
1044
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1045
<CODE>&nbsp;long</CODE></FONT></TD>
1046
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName)</CODE>
1047
 
1048
<BR>
1049
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
1050
</TR>
1051
<TR BGCOLOR="white" CLASS="TableRowColor">
1052
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1053 3 ZTEX
<CODE>&nbsp;long</CODE></FONT></TD>
1054
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName,
1055
                     int&nbsp;bs)</CODE>
1056
 
1057
<BR>
1058
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
1059
</TR>
1060
<TR BGCOLOR="white" CLASS="TableRowColor">
1061
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1062 2 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
1063
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
1064
                 byte[]&nbsp;buf)</CODE>
1065
 
1066
<BR>
1067
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one sector to the Flash.</TD>
1068
</TR>
1069
<TR BGCOLOR="white" CLASS="TableRowColor">
1070
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1071 5 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
1072
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
1073
                 int&nbsp;num,
1074
                 byte[]&nbsp;buf)</CODE>
1075
 
1076
<BR>
1077
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a integer number of sectors to the Flash.</TD>
1078
</TR>
1079
<TR BGCOLOR="white" CLASS="TableRowColor">
1080
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1081 2 ZTEX
<CODE>&nbsp;int</CODE></FONT></TD>
1082
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</A></B>()</CODE>
1083
 
1084
<BR>
1085
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
1086
</TR>
1087
<TR BGCOLOR="white" CLASS="TableRowColor">
1088
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1089
<CODE>&nbsp;boolean</CODE></FONT></TD>
1090
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</A></B>()</CODE>
1091
 
1092
<BR>
1093
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the FPGA is configured.</TD>
1094
</TR>
1095
<TR BGCOLOR="white" CLASS="TableRowColor">
1096
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1097
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1098
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</A></B>()</CODE>
1099
 
1100
<BR>
1101
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that indicates the FPGA configuration status.</TD>
1102
</TR>
1103
<TR BGCOLOR="white" CLASS="TableRowColor">
1104
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1105
<CODE>&nbsp;void</CODE></FONT></TD>
1106 5 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromRead(int, byte[], int)">macEepromRead</A></B>(int&nbsp;addr,
1107
              byte[]&nbsp;buf,
1108
              int&nbsp;length)</CODE>
1109
 
1110
<BR>
1111
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the MAC EEPROM.</TD>
1112
</TR>
1113
<TR BGCOLOR="white" CLASS="TableRowColor">
1114
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1115
<CODE>&nbsp;boolean</CODE></FONT></TD>
1116
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromState()">macEepromState</A></B>()</CODE>
1117
 
1118
<BR>
1119
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current MAC EEPROM status.</TD>
1120
</TR>
1121
<TR BGCOLOR="white" CLASS="TableRowColor">
1122
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1123
<CODE>&nbsp;void</CODE></FONT></TD>
1124
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromWrite(int, byte[], int)">macEepromWrite</A></B>(int&nbsp;addr,
1125
               byte[]&nbsp;buf,
1126
               int&nbsp;length)</CODE>
1127
 
1128
<BR>
1129
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the MAC EEPROM.</TD>
1130
</TR>
1131
<TR BGCOLOR="white" CLASS="TableRowColor">
1132
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1133
<CODE>&nbsp;void</CODE></FONT></TD>
1134
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macRead(byte[])">macRead</A></B>(byte[]&nbsp;buf)</CODE>
1135
 
1136
<BR>
1137
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads MAC address from MAC EEPROM.</TD>
1138
</TR>
1139
<TR BGCOLOR="white" CLASS="TableRowColor">
1140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1141 6 ZTEX
<CODE>&nbsp;int</CODE></FONT></TD>
1142
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#numberOfFpgas()">numberOfFpgas</A></B>()</CODE>
1143
 
1144
<BR>
1145
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of FPGA's</TD>
1146
</TR>
1147
<TR BGCOLOR="white" CLASS="TableRowColor">
1148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1149 5 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
1150 2 ZTEX
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</A></B>()</CODE>
1151
 
1152
<BR>
1153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out the FPGA state.</TD>
1154
</TR>
1155
<TR BGCOLOR="white" CLASS="TableRowColor">
1156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1157
<CODE>&nbsp;boolean</CODE></FONT></TD>
1158
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printMmcState()">printMmcState</A></B>()</CODE>
1159
 
1160
<BR>
1161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out some debug information about *SD/MMC Flash cards in SPI mode.</TD>
1162
</TR>
1163
<TR BGCOLOR="white" CLASS="TableRowColor">
1164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1165
<CODE>&nbsp;void</CODE></FONT></TD>
1166
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#resetFpga()">resetFpga</A></B>()</CODE>
1167
 
1168
<BR>
1169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the FPGA.</TD>
1170
</TR>
1171
<TR BGCOLOR="white" CLASS="TableRowColor">
1172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1173 6 ZTEX
<CODE>&nbsp;void</CODE></FONT></TD>
1174
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#selectFpga(int)">selectFpga</A></B>(int&nbsp;num)</CODE>
1175
 
1176
<BR>
1177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select a FPGA</TD>
1178
</TR>
1179
<TR BGCOLOR="white" CLASS="TableRowColor">
1180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1181 2 ZTEX
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1182
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#toString()">toString</A></B>()</CODE>
1183
 
1184
<BR>
1185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a lot of useful information about the corresponding device.</TD>
1186
</TR>
1187
<TR BGCOLOR="white" CLASS="TableRowColor">
1188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1189
<CODE>&nbsp;boolean</CODE></FONT></TD>
1190
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid()">valid</A></B>()</CODE>
1191
 
1192
<BR>
1193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 is available.</TD>
1194
</TR>
1195
<TR BGCOLOR="white" CLASS="TableRowColor">
1196
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1197
<CODE>&nbsp;boolean</CODE></FONT></TD>
1198
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid(int, int)">valid</A></B>(int&nbsp;i,
1199
      int&nbsp;j)</CODE>
1200
 
1201
<BR>
1202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 and capability i.j are available.</TD>
1203
</TR>
1204 5 ZTEX
<TR BGCOLOR="white" CLASS="TableRowColor">
1205
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1206
<CODE>&nbsp;int</CODE></FONT></TD>
1207
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPages()">xmegaEepromPages</A></B>()</CODE>
1208
 
1209
<BR>
1210
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the ATxmega EEPROM pages.</TD>
1211
</TR>
1212
<TR BGCOLOR="white" CLASS="TableRowColor">
1213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1214
<CODE>&nbsp;int</CODE></FONT></TD>
1215
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPageSize()">xmegaEepromPageSize</A></B>()</CODE>
1216
 
1217
<BR>
1218
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the ATXmega EEPROM pages.</TD>
1219
</TR>
1220
<TR BGCOLOR="white" CLASS="TableRowColor">
1221
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1222
<CODE>&nbsp;void</CODE></FONT></TD>
1223
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPageWrite(int, byte[])">xmegaEepromPageWrite</A></B>(int&nbsp;addr,
1224
                     byte[]&nbsp;buf)</CODE>
1225
 
1226
<BR>
1227
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to EEPROM memory of ATxmega.</TD>
1228
</TR>
1229
<TR BGCOLOR="white" CLASS="TableRowColor">
1230
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1231
<CODE>&nbsp;void</CODE></FONT></TD>
1232
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromRead(int, byte[], int)">xmegaEepromRead</A></B>(int&nbsp;addr,
1233
                byte[]&nbsp;buf,
1234
                int&nbsp;length)</CODE>
1235
 
1236
<BR>
1237
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from EEPROM memory of ATxmega.</TD>
1238
</TR>
1239
<TR BGCOLOR="white" CLASS="TableRowColor">
1240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1241
<CODE>&nbsp;boolean</CODE></FONT></TD>
1242
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEnabled()">xmegaEnabled</A></B>()</CODE>
1243
 
1244
<BR>
1245
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ATxmega controller is available.</TD>
1246
</TR>
1247
<TR BGCOLOR="white" CLASS="TableRowColor">
1248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1249
<CODE>&nbsp;int</CODE></FONT></TD>
1250
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPages()">xmegaFlashPages</A></B>()</CODE>
1251
 
1252
<BR>
1253
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the ATxmega Flash pages.</TD>
1254
</TR>
1255
<TR BGCOLOR="white" CLASS="TableRowColor">
1256
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1257
<CODE>&nbsp;int</CODE></FONT></TD>
1258
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPageSize()">xmegaFlashPageSize</A></B>()</CODE>
1259
 
1260
<BR>
1261
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the ATxmega Flash pages.</TD>
1262
</TR>
1263
<TR BGCOLOR="white" CLASS="TableRowColor">
1264
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1265
<CODE>&nbsp;void</CODE></FONT></TD>
1266
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPageWrite(int, byte[])">xmegaFlashPageWrite</A></B>(int&nbsp;addr,
1267
                    byte[]&nbsp;buf)</CODE>
1268
 
1269
<BR>
1270
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to Flash memory of ATxmega.</TD>
1271
</TR>
1272
<TR BGCOLOR="white" CLASS="TableRowColor">
1273
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1274
<CODE>&nbsp;void</CODE></FONT></TD>
1275
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashRead(int, byte[], int)">xmegaFlashRead</A></B>(int&nbsp;addr,
1276
               byte[]&nbsp;buf,
1277
               int&nbsp;length)</CODE>
1278
 
1279
<BR>
1280
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from Flash memory of ATxmega.</TD>
1281
</TR>
1282
<TR BGCOLOR="white" CLASS="TableRowColor">
1283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1284
<CODE>&nbsp;int</CODE></FONT></TD>
1285
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseRead(int)">xmegaFuseRead</A></B>(int&nbsp;addr)</CODE>
1286
 
1287
<BR>
1288
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data one Fuse of ATxmega.</TD>
1289
</TR>
1290
<TR BGCOLOR="white" CLASS="TableRowColor">
1291
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1292
<CODE>&nbsp;void</CODE></FONT></TD>
1293
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseRead(int, byte[], int)">xmegaFuseRead</A></B>(int&nbsp;addr,
1294
              byte[]&nbsp;buf,
1295
              int&nbsp;length)</CODE>
1296
 
1297
<BR>
1298
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from Fuse memory of ATxmega.</TD>
1299
</TR>
1300
<TR BGCOLOR="white" CLASS="TableRowColor">
1301
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1302
<CODE>&nbsp;void</CODE></FONT></TD>
1303
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseWrite(int, int)">xmegaFuseWrite</A></B>(int&nbsp;addr,
1304
               int&nbsp;val)</CODE>
1305
 
1306
<BR>
1307
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one Fuse of the ATxmega.</TD>
1308
</TR>
1309
<TR BGCOLOR="white" CLASS="TableRowColor">
1310
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1311
<CODE>&nbsp;void</CODE></FONT></TD>
1312
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaNvmRead(int, byte[], int)">xmegaNvmRead</A></B>(int&nbsp;addr,
1313
             byte[]&nbsp;buf,
1314
             int&nbsp;length)</CODE>
1315
 
1316
<BR>
1317
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the NVM of ATxmega.</TD>
1318
</TR>
1319
<TR BGCOLOR="white" CLASS="TableRowColor">
1320
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1321
<CODE>&nbsp;void</CODE></FONT></TD>
1322
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaReset()">xmegaReset</A></B>()</CODE>
1323
 
1324
<BR>
1325
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the ATxmega.</TD>
1326
</TR>
1327
<TR BGCOLOR="white" CLASS="TableRowColor">
1328
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1329
<CODE>&nbsp;int</CODE></FONT></TD>
1330
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaState()">xmegaState</A></B>()</CODE>
1331
 
1332
<BR>
1333
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read ATxmega error and status information from the device.</TD>
1334
</TR>
1335
<TR BGCOLOR="white" CLASS="TableRowColor">
1336
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1337
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1338
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaStrError()">xmegaStrError</A></B>()</CODE>
1339
 
1340
<BR>
1341
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last ATxmega error from the device.</TD>
1342
</TR>
1343
<TR BGCOLOR="white" CLASS="TableRowColor">
1344
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1345
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1346
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaStrError(int)">xmegaStrError</A></B>(int&nbsp;errNum)</CODE>
1347
 
1348
<BR>
1349
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
1350
</TR>
1351
<TR BGCOLOR="white" CLASS="TableRowColor">
1352
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1353
<CODE>&nbsp;long</CODE></FONT></TD>
1354
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaWriteEeprom(ztex.IhxFile)">xmegaWriteEeprom</A></B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)</CODE>
1355
 
1356
<BR>
1357
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads data to the EEPROM memory</TD>
1358
</TR>
1359
<TR BGCOLOR="white" CLASS="TableRowColor">
1360
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1361
<CODE>&nbsp;long</CODE></FONT></TD>
1362
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaWriteFirmware(ztex.IhxFile)">xmegaWriteFirmware</A></B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)</CODE>
1363
 
1364
<BR>
1365
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads firmware to the flash memory</TD>
1366
</TR>
1367 2 ZTEX
</TABLE>
1368
&nbsp;<A NAME="methods_inherited_from_class_ztex.Ztex1"><!-- --></A>
1369
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1370
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
1371
<TH ALIGN="left"><B>Methods inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
1372
</TR>
1373
<TR BGCOLOR="white" CLASS="TableRowColor">
1374 5 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#getInterfaceClaimed(int)">getInterfaceClaimed</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#uploadFirmware(ztex.ZtexIhxFile1, 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>
1375 2 ZTEX
</TR>
1376
</TABLE>
1377
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
1378
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1379
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
1380
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
1381
</TR>
1382
<TR BGCOLOR="white" CLASS="TableRowColor">
1383
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
1384
</TR>
1385
</TABLE>
1386
&nbsp;
1387
<P>
1388
 
1389
<!-- ============ FIELD DETAIL =========== -->
1390
 
1391
<A NAME="field_detail"><!-- --></A>
1392
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1393
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1394
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1395
<B>Field Detail</B></FONT></TH>
1396
</TR>
1397
</TABLE>
1398
 
1399 3 ZTEX
<A NAME="CAPABILITY_EEPROM"><!-- --></A><H3>
1400
CAPABILITY_EEPROM</H3>
1401
<PRE>
1402
public static final int <B>CAPABILITY_EEPROM</B></PRE>
1403
<DL>
1404
<DD>Capability index for EEPROM support.
1405
<P>
1406
<DL>
1407
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_EEPROM">Constant Field Values</A></DL>
1408
</DL>
1409
<HR>
1410
 
1411
<A NAME="CAPABILITY_FPGA"><!-- --></A><H3>
1412
CAPABILITY_FPGA</H3>
1413
<PRE>
1414
public static final int <B>CAPABILITY_FPGA</B></PRE>
1415
<DL>
1416
<DD>Capability index for FPGA configuration support.
1417
<P>
1418
<DL>
1419
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FPGA">Constant Field Values</A></DL>
1420
</DL>
1421
<HR>
1422
 
1423
<A NAME="CAPABILITY_FLASH"><!-- --></A><H3>
1424
CAPABILITY_FLASH</H3>
1425
<PRE>
1426
public static final int <B>CAPABILITY_FLASH</B></PRE>
1427
<DL>
1428
<DD>Capability index for FLASH memory support.
1429
<P>
1430
<DL>
1431
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH">Constant Field Values</A></DL>
1432
</DL>
1433
<HR>
1434
 
1435
<A NAME="CAPABILITY_DEBUG"><!-- --></A><H3>
1436
CAPABILITY_DEBUG</H3>
1437
<PRE>
1438
public static final int <B>CAPABILITY_DEBUG</B></PRE>
1439
<DL>
1440
<DD>Capability index for DEBUG helper support.
1441
<P>
1442
<DL>
1443
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG">Constant Field Values</A></DL>
1444
</DL>
1445
<HR>
1446
 
1447
<A NAME="CAPABILITY_XMEGA"><!-- --></A><H3>
1448
CAPABILITY_XMEGA</H3>
1449
<PRE>
1450
public static final int <B>CAPABILITY_XMEGA</B></PRE>
1451
<DL>
1452
<DD>Capability index for AVR XMEGA support.
1453
<P>
1454
<DL>
1455
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_XMEGA">Constant Field Values</A></DL>
1456
</DL>
1457
<HR>
1458
 
1459 5 ZTEX
<A NAME="CAPABILITY_HS_FPGA"><!-- --></A><H3>
1460
CAPABILITY_HS_FPGA</H3>
1461
<PRE>
1462
public static final int <B>CAPABILITY_HS_FPGA</B></PRE>
1463
<DL>
1464
<DD>Capability index for AVR XMEGA support.
1465
<P>
1466
<DL>
1467
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_HS_FPGA">Constant Field Values</A></DL>
1468
</DL>
1469
<HR>
1470
 
1471
<A NAME="CAPABILITY_MAC_EEPROM"><!-- --></A><H3>
1472
CAPABILITY_MAC_EEPROM</H3>
1473
<PRE>
1474
public static final int <B>CAPABILITY_MAC_EEPROM</B></PRE>
1475
<DL>
1476
<DD>Capability index for AVR XMEGA support.
1477
<P>
1478
<DL>
1479
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MAC_EEPROM">Constant Field Values</A></DL>
1480
</DL>
1481
<HR>
1482
 
1483 6 ZTEX
<A NAME="CAPABILITY_MULTI_FPGA"><!-- --></A><H3>
1484
CAPABILITY_MULTI_FPGA</H3>
1485
<PRE>
1486
public static final int <B>CAPABILITY_MULTI_FPGA</B></PRE>
1487
<DL>
1488
<DD>Capability index for multi FPGA support
1489
<P>
1490
<DL>
1491
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MULTI_FPGA">Constant Field Values</A></DL>
1492
</DL>
1493
<HR>
1494
 
1495 2 ZTEX
<A NAME="capabilityStrings"><!-- --></A><H3>
1496
capabilityStrings</H3>
1497
<PRE>
1498
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
1499
<DL>
1500
<DD>The names of the capabilities
1501
<P>
1502
<DL>
1503
</DL>
1504
</DL>
1505
<HR>
1506
 
1507 6 ZTEX
<A NAME="enableExtraFpgaConfigurationChecks"><!-- --></A><H3>
1508
enableExtraFpgaConfigurationChecks</H3>
1509
<PRE>
1510
public boolean <B>enableExtraFpgaConfigurationChecks</B></PRE>
1511
<DL>
1512
<DD>Enables extra FPGA configuration checks. Certain Bistream settings may cause false warnings.
1513
<P>
1514
<DL>
1515
</DL>
1516
</DL>
1517
<HR>
1518
 
1519 2 ZTEX
<A NAME="eepromBytes"><!-- --></A><H3>
1520
eepromBytes</H3>
1521
<PRE>
1522
public int <B>eepromBytes</B></PRE>
1523
<DL>
1524
<DD>Number of bytes written to EEPROM. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
1525
<P>
1526
<DL>
1527
</DL>
1528
</DL>
1529
<HR>
1530
 
1531
<A NAME="eepromChecksum"><!-- --></A><H3>
1532
eepromChecksum</H3>
1533
<PRE>
1534
public int <B>eepromChecksum</B></PRE>
1535
<DL>
1536
<DD>Checksum of the last EEPROM transfer. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
1537
<P>
1538
<DL>
1539
</DL>
1540
</DL>
1541
<HR>
1542
 
1543
<A NAME="flashEC"><!-- --></A><H3>
1544
flashEC</H3>
1545
<PRE>
1546
public int <B>flashEC</B></PRE>
1547
<DL>
1548
<DD>Last Flash error code obtained by <A HREF="../ztex/Ztex1v1.html#flashState()"><CODE>flashState()</CODE></A>. See FLASH_EC_* for possible error codes.
1549
<P>
1550
<DL>
1551
</DL>
1552
</DL>
1553
<HR>
1554
 
1555
<A NAME="FLASH_EC_NO_ERROR"><!-- --></A><H3>
1556
FLASH_EC_NO_ERROR</H3>
1557
<PRE>
1558
public static final int <B>FLASH_EC_NO_ERROR</B></PRE>
1559
<DL>
1560
<DD>Means no error.
1561
<P>
1562
<DL>
1563
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NO_ERROR">Constant Field Values</A></DL>
1564
</DL>
1565
<HR>
1566
 
1567
<A NAME="FLASH_EC_CMD_ERROR"><!-- --></A><H3>
1568
FLASH_EC_CMD_ERROR</H3>
1569
<PRE>
1570
public static final int <B>FLASH_EC_CMD_ERROR</B></PRE>
1571
<DL>
1572
<DD>Signals an error while attempting to execute a command.
1573
<P>
1574
<DL>
1575
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_CMD_ERROR">Constant Field Values</A></DL>
1576
</DL>
1577
<HR>
1578
 
1579
<A NAME="FLASH_EC_TIMEOUT"><!-- --></A><H3>
1580
FLASH_EC_TIMEOUT</H3>
1581
<PRE>
1582
public static final int <B>FLASH_EC_TIMEOUT</B></PRE>
1583
<DL>
1584
<DD>Signals that a timeout occurred.
1585
<P>
1586
<DL>
1587
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_TIMEOUT">Constant Field Values</A></DL>
1588
</DL>
1589
<HR>
1590
 
1591
<A NAME="FLASH_EC_BUSY"><!-- --></A><H3>
1592
FLASH_EC_BUSY</H3>
1593
<PRE>
1594
public static final int <B>FLASH_EC_BUSY</B></PRE>
1595
<DL>
1596
<DD>Signals that Flash memory it busy.
1597
<P>
1598
<DL>
1599
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_BUSY">Constant Field Values</A></DL>
1600
</DL>
1601
<HR>
1602
 
1603
<A NAME="FLASH_EC_PENDING"><!-- --></A><H3>
1604
FLASH_EC_PENDING</H3>
1605
<PRE>
1606
public static final int <B>FLASH_EC_PENDING</B></PRE>
1607
<DL>
1608
<DD>Signals that another Flash operation is pending.
1609
<P>
1610
<DL>
1611
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_PENDING">Constant Field Values</A></DL>
1612
</DL>
1613
<HR>
1614
 
1615
<A NAME="FLASH_EC_READ_ERROR"><!-- --></A><H3>
1616
FLASH_EC_READ_ERROR</H3>
1617
<PRE>
1618
public static final int <B>FLASH_EC_READ_ERROR</B></PRE>
1619
<DL>
1620
<DD>Signals an error while attempting to read from Flash.
1621
<P>
1622
<DL>
1623
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_READ_ERROR">Constant Field Values</A></DL>
1624
</DL>
1625
<HR>
1626
 
1627
<A NAME="FLASH_EC_WRITE_ERROR"><!-- --></A><H3>
1628
FLASH_EC_WRITE_ERROR</H3>
1629
<PRE>
1630
public static final int <B>FLASH_EC_WRITE_ERROR</B></PRE>
1631
<DL>
1632
<DD>Signals an error while attempting to write to Flash.
1633
<P>
1634
<DL>
1635
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
1636
</DL>
1637 3 ZTEX
<HR>
1638 2 ZTEX
 
1639 3 ZTEX
<A NAME="FLASH_EC_NOTSUPPORTED"><!-- --></A><H3>
1640
FLASH_EC_NOTSUPPORTED</H3>
1641
<PRE>
1642
public static final int <B>FLASH_EC_NOTSUPPORTED</B></PRE>
1643
<DL>
1644 5 ZTEX
<DD>Signals the the installed Flash memory is not supported.
1645 3 ZTEX
<P>
1646
<DL>
1647
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NOTSUPPORTED">Constant Field Values</A></DL>
1648
</DL>
1649
<HR>
1650
 
1651
<A NAME="debugNewMessages"><!-- --></A><H3>
1652
debugNewMessages</H3>
1653
<PRE>
1654
public int <B>debugNewMessages</B></PRE>
1655
<DL>
1656 5 ZTEX
<DD>Is set by <A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])"><CODE>debugReadMessages(boolean,byte[])</CODE></A> and contains the number of new messages.
1657 3 ZTEX
<P>
1658
<DL>
1659
</DL>
1660
</DL>
1661 5 ZTEX
<HR>
1662 3 ZTEX
 
1663 5 ZTEX
<A NAME="xmegaEC"><!-- --></A><H3>
1664
xmegaEC</H3>
1665
<PRE>
1666
public int <B>xmegaEC</B></PRE>
1667
<DL>
1668
<DD>Last ATxmega error code obtained by <A HREF="../ztex/Ztex1v1.html#xmegaState()"><CODE>xmegaState()</CODE></A>. See XMEGA_EC_* for possible error codes.
1669
<P>
1670
<DL>
1671
</DL>
1672
</DL>
1673
<HR>
1674
 
1675
<A NAME="XMEGA_EC_NO_ERROR"><!-- --></A><H3>
1676
XMEGA_EC_NO_ERROR</H3>
1677
<PRE>
1678
public static final int <B>XMEGA_EC_NO_ERROR</B></PRE>
1679
<DL>
1680
<DD>Means no error.
1681
<P>
1682
<DL>
1683
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NO_ERROR">Constant Field Values</A></DL>
1684
</DL>
1685
<HR>
1686
 
1687
<A NAME="XMEGA_EC_PDI_READ_ERROR"><!-- --></A><H3>
1688
XMEGA_EC_PDI_READ_ERROR</H3>
1689
<PRE>
1690
public static final int <B>XMEGA_EC_PDI_READ_ERROR</B></PRE>
1691
<DL>
1692
<DD>Signals a PDI read error.
1693
<P>
1694
<DL>
1695
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_PDI_READ_ERROR">Constant Field Values</A></DL>
1696
</DL>
1697
<HR>
1698
 
1699
<A NAME="XMEGA_EC_NVM_TIMEOUT"><!-- --></A><H3>
1700
XMEGA_EC_NVM_TIMEOUT</H3>
1701
<PRE>
1702
public static final int <B>XMEGA_EC_NVM_TIMEOUT</B></PRE>
1703
<DL>
1704
<DD>Signals that an NVM timeout occurred.
1705
<P>
1706
<DL>
1707
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_TIMEOUT">Constant Field Values</A></DL>
1708
</DL>
1709
<HR>
1710
 
1711
<A NAME="XMEGA_EC_INVALID_DEVICE"><!-- --></A><H3>
1712
XMEGA_EC_INVALID_DEVICE</H3>
1713
<PRE>
1714
public static final int <B>XMEGA_EC_INVALID_DEVICE</B></PRE>
1715
<DL>
1716
<DD>Signals that the ATxmega controller is not supported.
1717
<P>
1718
<DL>
1719
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_INVALID_DEVICE">Constant Field Values</A></DL>
1720
</DL>
1721
<HR>
1722
 
1723
<A NAME="XMEGA_EC_ADDRESS_ERROR"><!-- --></A><H3>
1724
XMEGA_EC_ADDRESS_ERROR</H3>
1725
<PRE>
1726
public static final int <B>XMEGA_EC_ADDRESS_ERROR</B></PRE>
1727
<DL>
1728
<DD>Signals an address error (invalid address or wrong page size).
1729
<P>
1730
<DL>
1731
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_ADDRESS_ERROR">Constant Field Values</A></DL>
1732
</DL>
1733
<HR>
1734
 
1735
<A NAME="XMEGA_EC_NVM_BUSY"><!-- --></A><H3>
1736
XMEGA_EC_NVM_BUSY</H3>
1737
<PRE>
1738
public static final int <B>XMEGA_EC_NVM_BUSY</B></PRE>
1739
<DL>
1740
<DD>Signals that the NVM is busy.
1741
<P>
1742
<DL>
1743
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_BUSY">Constant Field Values</A></DL>
1744
</DL>
1745
 
1746 2 ZTEX
<!-- ========= CONSTRUCTOR DETAIL ======== -->
1747
 
1748
<A NAME="constructor_detail"><!-- --></A>
1749
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1750
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1751
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1752
<B>Constructor Detail</B></FONT></TH>
1753
</TR>
1754
</TABLE>
1755
 
1756
<A NAME="Ztex1v1(ztex.ZtexDevice1)"><!-- --></A><H3>
1757
Ztex1v1</H3>
1758
<PRE>
1759
public <B>Ztex1v1</B>(<A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A>&nbsp;pDev)
1760
        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
1761
<DL>
1762
<DD>Constructs an instance from a given device.
1763
<P>
1764
<DL>
1765
<DT><B>Parameters:</B><DD><CODE>pDev</CODE> - The given device.
1766
<DT><B>Throws:</B>
1767
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an communication error occurred.</DL>
1768
</DL>
1769
 
1770
<!-- ============ METHOD DETAIL ========== -->
1771
 
1772
<A NAME="method_detail"><!-- --></A>
1773
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1774
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1775
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1776
<B>Method Detail</B></FONT></TH>
1777
</TR>
1778
</TABLE>
1779
 
1780
<A NAME="valid()"><!-- --></A><H3>
1781
valid</H3>
1782
<PRE>
1783
public boolean <B>valid</B>()</PRE>
1784
<DL>
1785
<DD>Returns true if ZTEX interface 1 is available.
1786
<P>
1787
<DD><DL>
1788
<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>
1789
</DD>
1790
<DD><DL>
1791
 
1792
<DT><B>Returns:</B><DD>true if ZTEX interface 1 is available.</DL>
1793
</DD>
1794
</DL>
1795
<HR>
1796
 
1797
<A NAME="valid(int, int)"><!-- --></A><H3>
1798
valid</H3>
1799
<PRE>
1800
public boolean <B>valid</B>(int&nbsp;i,
1801
                     int&nbsp;j)</PRE>
1802
<DL>
1803
<DD>Returns true if ZTEX interface 1 and capability i.j are available.
1804
<P>
1805
<DD><DL>
1806
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
1807
<DT><B>Returns:</B><DD>true if ZTEX interface 1 and capability i.j are available.</DL>
1808
</DD>
1809
</DL>
1810
<HR>
1811
 
1812
<A NAME="compatible(int, int, int, int)"><!-- --></A><H3>
1813
compatible</H3>
1814
<PRE>
1815
public boolean <B>compatible</B>(int&nbsp;productId0,
1816
                          int&nbsp;productId1,
1817
                          int&nbsp;productId2,
1818
                          int&nbsp;productId3)</PRE>
1819
<DL>
1820
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.<br>
1821
 The given product ID is compatible
1822
 <pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) &&
1823
   ( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) &&
1824
   ( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) &&
1825
   ( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre>
1826
<P>
1827
<DD><DL>
1828
<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
1829
<DT><B>Returns:</B><DD>true if the given product ID is compatible and interface 1 is supported.</DL>
1830
</DD>
1831
</DL>
1832
<HR>
1833
 
1834
<A NAME="checkValid()"><!-- --></A><H3>
1835
checkValid</H3>
1836
<PRE>
1837
public void <B>checkValid</B>()
1838
                throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
1839
<DL>
1840
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 is supported.
1841
<P>
1842
<DD><DL>
1843
<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>
1844
</DD>
1845
<DD><DL>
1846
 
1847
<DT><B>Throws:</B>
1848
<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>
1849
</DD>
1850
</DL>
1851
<HR>
1852
 
1853
<A NAME="checkCapability(int, int)"><!-- --></A><H3>
1854
checkCapability</H3>
1855
<PRE>
1856
public void <B>checkCapability</B>(int&nbsp;i,
1857
                            int&nbsp;j)
1858
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1859
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1860
<DL>
1861
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
1862
<P>
1863
<DD><DL>
1864
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
1865
<DT><B>Throws:</B>
1866
<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.
1867
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
1868
</DD>
1869
</DL>
1870
<HR>
1871
 
1872 3 ZTEX
<A NAME="checkCapability(int)"><!-- --></A><H3>
1873
checkCapability</H3>
1874
<PRE>
1875
public void <B>checkCapability</B>(int&nbsp;i)
1876
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1877
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1878
<DL>
1879
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
1880
<P>
1881
<DD><DL>
1882
<DT><B>Parameters:</B><DD><CODE>i</CODE> - capability index (0..47)
1883
<DT><B>Throws:</B>
1884
<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.
1885
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
1886
</DD>
1887
</DL>
1888
<HR>
1889
 
1890 2 ZTEX
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
1891
checkCompatible</H3>
1892
<PRE>
1893
public void <B>checkCompatible</B>(int&nbsp;productId0,
1894
                            int&nbsp;productId1,
1895
                            int&nbsp;productId2,
1896
                            int&nbsp;productId3)
1897
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
1898
<DL>
1899
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
1900
 See <A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)"><CODE>compatible(int,int,int,int)</CODE></A>.
1901
<P>
1902
<DD><DL>
1903
<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
1904
<DT><B>Throws:</B>
1905
<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>
1906
</DD>
1907
</DL>
1908
<HR>
1909
 
1910
<A NAME="printFpgaState()"><!-- --></A><H3>
1911
printFpgaState</H3>
1912
<PRE>
1913
public void <B>printFpgaState</B>()
1914
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1915
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1916
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1917
<DL>
1918
<DD>Prints out the FPGA state.
1919
<P>
1920
<DD><DL>
1921
 
1922
<DT><B>Throws:</B>
1923
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1924
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1925
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1926
</DD>
1927
</DL>
1928
<HR>
1929
 
1930
<A NAME="getFpgaConfiguration()"><!-- --></A><H3>
1931
getFpgaConfiguration</H3>
1932
<PRE>
1933
public boolean <B>getFpgaConfiguration</B>()
1934
                             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1935
                                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1936
                                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1937
<DL>
1938
<DD>Returns true if the FPGA is configured.
1939
<P>
1940
<DD><DL>
1941
 
1942
<DT><B>Returns:</B><DD>true if the FPGA is configured.
1943
<DT><B>Throws:</B>
1944
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1945
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1946
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1947
</DD>
1948
</DL>
1949
<HR>
1950
 
1951
<A NAME="getFpgaConfigurationStr()"><!-- --></A><H3>
1952
getFpgaConfigurationStr</H3>
1953
<PRE>
1954
public java.lang.String <B>getFpgaConfigurationStr</B>()
1955
                                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1956
                                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1957
                                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1958
<DL>
1959
<DD>Returns a string that indicates the FPGA configuration status.
1960
<P>
1961
<DD><DL>
1962
 
1963
<DT><B>Returns:</B><DD>a string that indicates the FPGA configuration status.
1964
<DT><B>Throws:</B>
1965
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1966
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1967
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1968
</DD>
1969
</DL>
1970
<HR>
1971
 
1972
<A NAME="resetFpga()"><!-- --></A><H3>
1973
resetFpga</H3>
1974
<PRE>
1975
public void <B>resetFpga</B>()
1976
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1977
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1978
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1979
<DL>
1980
<DD>Resets the FPGA.
1981
<P>
1982
<DD><DL>
1983
 
1984
<DT><B>Throws:</B>
1985
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1986
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1987
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1988
</DD>
1989
</DL>
1990
<HR>
1991
 
1992 5 ZTEX
<A NAME="configureFpgaLS(java.lang.String, boolean, int)"><!-- --></A><H3>
1993
configureFpgaLS</H3>
1994 3 ZTEX
<PRE>
1995 5 ZTEX
public long <B>configureFpgaLS</B>(java.lang.String&nbsp;fwFileName,
1996
                            boolean&nbsp;force,
1997
                            int&nbsp;bs)
1998
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1999
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2000
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
2001
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
2002
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2003
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2004 3 ZTEX
<DL>
2005 5 ZTEX
<DD>Upload a Bitstream to the FPGA using low speed mode.
2006 3 ZTEX
<P>
2007
<DD><DL>
2008
<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.
2009
<DT><B>Throws:</B>
2010
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
2011
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
2012
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
2013
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2014
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2015
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2016
</DD>
2017
</DL>
2018
<HR>
2019
 
2020 2 ZTEX
<A NAME="eepromState()"><!-- --></A><H3>
2021
eepromState</H3>
2022
<PRE>
2023
public boolean <B>eepromState</B>()
2024
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2025
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2026
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2027
<DL>
2028
<DD>Reads the current EEPROM status.
2029
 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>.
2030
<P>
2031
<DD><DL>
2032
 
2033
<DT><B>Returns:</B><DD>true if EEPROM is ready.
2034
<DT><B>Throws:</B>
2035
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2036
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2037
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2038
</DD>
2039
</DL>
2040
<HR>
2041
 
2042
<A NAME="eepromWrite(int, byte[], int)"><!-- --></A><H3>
2043
eepromWrite</H3>
2044
<PRE>
2045
public void <B>eepromWrite</B>(int&nbsp;addr,
2046
                        byte[]&nbsp;buf,
2047
                        int&nbsp;length)
2048
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2049
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2050
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2051
<DL>
2052
<DD>Writes data to the EEPROM.
2053
<P>
2054
<DD><DL>
2055
<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.
2056
<DT><B>Throws:</B>
2057
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2058
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2059
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2060
</DD>
2061
</DL>
2062
<HR>
2063
 
2064
<A NAME="eepromRead(int, byte[], int)"><!-- --></A><H3>
2065
eepromRead</H3>
2066
<PRE>
2067
public void <B>eepromRead</B>(int&nbsp;addr,
2068
                       byte[]&nbsp;buf,
2069
                       int&nbsp;length)
2070
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2071
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2072
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2073
<DL>
2074
<DD>Reads data from the EEPROM.
2075
<P>
2076
<DD><DL>
2077
<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.
2078
<DT><B>Throws:</B>
2079
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2080
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2081
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2082
</DD>
2083
</DL>
2084
<HR>
2085
 
2086 5 ZTEX
<A NAME="eepromUpload(ztex.ZtexIhxFile1, boolean)"><!-- --></A><H3>
2087
eepromUpload</H3>
2088
<PRE>
2089
public long <B>eepromUpload</B>(<A HREF="../ztex/ZtexIhxFile1.html" title="class in ztex">ZtexIhxFile1</A>&nbsp;ihxFile,
2090
                         boolean&nbsp;force)
2091
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
2092
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2093
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2094
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2095
<DL>
2096
<DD>Upload the firmware to the EEPROM.
2097
 In order to start the uploaded firmware the device must be reset.
2098
<P>
2099
<DD><DL>
2100
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware image.<DD><CODE>force</CODE> - Skips the compatibility check if true.
2101
<DT><B>Throws:</B>
2102
<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.)
2103
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2104
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2105
<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>
2106
</DD>
2107
</DL>
2108
<HR>
2109
 
2110 2 ZTEX
<A NAME="eepromUpload(java.lang.String, boolean)"><!-- --></A><H3>
2111
eepromUpload</H3>
2112
<PRE>
2113
public long <B>eepromUpload</B>(java.lang.String&nbsp;ihxFileName,
2114
                         boolean&nbsp;force)
2115
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
2116
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2117
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2118
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2119
<DL>
2120
<DD>Upload the firmware to the EEPROM.
2121
 In order to start the uploaded firmware the device must be reset.
2122
<P>
2123
<DD><DL>
2124
<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.
2125
<DT><B>Throws:</B>
2126
<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.)
2127
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2128
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2129
<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>
2130
</DD>
2131
</DL>
2132
<HR>
2133
 
2134
<A NAME="eepromDisable()"><!-- --></A><H3>
2135
eepromDisable</H3>
2136
<PRE>
2137
public void <B>eepromDisable</B>()
2138
                   throws <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2139
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2140
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2141
<DL>
2142
<DD>Disables the firmware stored in the EEPROM.
2143
 This is achived by writing a "0" to the address 0 of the EEPROM.
2144
<P>
2145
<DD><DL>
2146
 
2147
<DT><B>Throws:</B>
2148
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2149
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2150
<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>
2151
</DD>
2152
</DL>
2153
<HR>
2154
 
2155
<A NAME="flashStrError(int)"><!-- --></A><H3>
2156
flashStrError</H3>
2157
<PRE>
2158
public static java.lang.String <B>flashStrError</B>(int&nbsp;errNum)</PRE>
2159
<DL>
2160
<DD>Converts a given error code into a String.
2161
<P>
2162
<DD><DL>
2163
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
2164
<DT><B>Returns:</B><DD>an error message.</DL>
2165
</DD>
2166
</DL>
2167
<HR>
2168
 
2169
<A NAME="flashStrError()"><!-- --></A><H3>
2170
flashStrError</H3>
2171
<PRE>
2172
public java.lang.String <B>flashStrError</B>()</PRE>
2173
<DL>
2174
<DD>Gets the last Flash error from the device.
2175
<P>
2176
<DD><DL>
2177
 
2178
<DT><B>Returns:</B><DD>an error message.</DL>
2179
</DD>
2180
</DL>
2181
<HR>
2182
 
2183
<A NAME="flashState()"><!-- --></A><H3>
2184
flashState</H3>
2185
<PRE>
2186
public boolean <B>flashState</B>()
2187
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2188
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2189
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2190
<DL>
2191
<DD>Reads the the Flash memory status and information.
2192 5 ZTEX
 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>.
2193 2 ZTEX
<P>
2194
<DD><DL>
2195
 
2196
<DT><B>Returns:</B><DD>true if Flash memory is installed.
2197
<DT><B>Throws:</B>
2198
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2199
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2200
<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>
2201
</DD>
2202
</DL>
2203
<HR>
2204
 
2205
<A NAME="getFlashEC()"><!-- --></A><H3>
2206
getFlashEC</H3>
2207
<PRE>
2208
public int <B>getFlashEC</B>()
2209
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2210
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2211
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2212
<DL>
2213
<DD>Gets the last Flash error from the device.
2214
<P>
2215
<DD><DL>
2216
 
2217 3 ZTEX
<DT><B>Returns:</B><DD>The last error code.
2218 2 ZTEX
<DT><B>Throws:</B>
2219
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2220
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2221
<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>
2222
</DD>
2223
</DL>
2224
<HR>
2225
 
2226
<A NAME="flashReadSector(int, byte[])"><!-- --></A><H3>
2227
flashReadSector</H3>
2228
<PRE>
2229
public void <B>flashReadSector</B>(int&nbsp;sector,
2230
                            byte[]&nbsp;buf)
2231
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2232
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2233 5 ZTEX
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2234
                            java.lang.IndexOutOfBoundsException</PRE>
2235 2 ZTEX
<DL>
2236
<DD>Reads one sector from the Flash.
2237
<P>
2238
<DD><DL>
2239
<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.
2240
<DT><B>Throws:</B>
2241
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2242
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2243 5 ZTEX
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2244
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash sector size.</DL>
2245 2 ZTEX
</DD>
2246
</DL>
2247
<HR>
2248
 
2249 5 ZTEX
<A NAME="flashReadSector(int, int, byte[])"><!-- --></A><H3>
2250
flashReadSector</H3>
2251
<PRE>
2252
public void <B>flashReadSector</B>(int&nbsp;sector,
2253
                            int&nbsp;num,
2254
                            byte[]&nbsp;buf)
2255
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2256
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2257
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2258
                            java.lang.IndexOutOfBoundsException</PRE>
2259
<DL>
2260
<DD>Reads a integer number of sectors from the Flash.
2261
<P>
2262
<DD><DL>
2263
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The number of the first sector to be read.<DD><CODE>num</CODE> - The number of sectors to be read.<DD><CODE>buf</CODE> - A buffer for the storage of the data.
2264
<DT><B>Throws:</B>
2265
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2266
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2267
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2268
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is to small.</DL>
2269
</DD>
2270
</DL>
2271
<HR>
2272
 
2273 2 ZTEX
<A NAME="flashWriteSector(int, byte[])"><!-- --></A><H3>
2274
flashWriteSector</H3>
2275
<PRE>
2276
public void <B>flashWriteSector</B>(int&nbsp;sector,
2277
                             byte[]&nbsp;buf)
2278
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2279
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2280 5 ZTEX
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2281
                             java.lang.IndexOutOfBoundsException</PRE>
2282 2 ZTEX
<DL>
2283
<DD>Writes one sector to the Flash.
2284
<P>
2285
<DD><DL>
2286
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be written.<DD><CODE>buf</CODE> - The data.
2287
<DT><B>Throws:</B>
2288
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2289
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2290 5 ZTEX
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2291
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash sector size.</DL>
2292 2 ZTEX
</DD>
2293
</DL>
2294
<HR>
2295
 
2296 5 ZTEX
<A NAME="flashWriteSector(int, int, byte[])"><!-- --></A><H3>
2297
flashWriteSector</H3>
2298
<PRE>
2299
public void <B>flashWriteSector</B>(int&nbsp;sector,
2300
                             int&nbsp;num,
2301
                             byte[]&nbsp;buf)
2302
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2303
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2304
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2305
                             java.lang.IndexOutOfBoundsException</PRE>
2306
<DL>
2307
<DD>Writes a integer number of sectors to the Flash.
2308
<P>
2309
<DD><DL>
2310
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be written.<DD><CODE>num</CODE> - The number of sectors to be read.<DD><CODE>buf</CODE> - The data.
2311
<DT><B>Throws:</B>
2312
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2313
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2314
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2315
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is to small.</DL>
2316
</DD>
2317
</DL>
2318
<HR>
2319
 
2320 2 ZTEX
<A NAME="flashEnabled()"><!-- --></A><H3>
2321
flashEnabled</H3>
2322
<PRE>
2323
public boolean <B>flashEnabled</B>()
2324
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2325
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2326
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2327
<DL>
2328
<DD>Returns true if Flash memory is installed.
2329
<P>
2330
<DD><DL>
2331
 
2332
<DT><B>Returns:</B><DD>true if Flash memory is installed.
2333
<DT><B>Throws:</B>
2334
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2335
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2336
<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>
2337
</DD>
2338
</DL>
2339
<HR>
2340
 
2341
<A NAME="flashSectorSize()"><!-- --></A><H3>
2342
flashSectorSize</H3>
2343
<PRE>
2344
public int <B>flashSectorSize</B>()
2345
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2346
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2347
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2348
<DL>
2349
<DD>Returns the sector size of the Flash memory or 0, if no flash memory is installed.
2350
 If required, the sector size is determined form the device first.
2351
<P>
2352
<DD><DL>
2353
 
2354
<DT><B>Returns:</B><DD>the sector size of the Flash memory.
2355
<DT><B>Throws:</B>
2356
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2357
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2358
<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>
2359
</DD>
2360
</DL>
2361
<HR>
2362
 
2363
<A NAME="flashSectors()"><!-- --></A><H3>
2364
flashSectors</H3>
2365
<PRE>
2366
public int <B>flashSectors</B>()
2367
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2368
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2369
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2370
<DL>
2371
<DD>Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
2372
 If required, the number of sectors is determined form the device first.
2373
<P>
2374
<DD><DL>
2375
 
2376
<DT><B>Returns:</B><DD>the number of sectors of the Flash memory.
2377
<DT><B>Throws:</B>
2378
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2379
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2380
<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>
2381
</DD>
2382
</DL>
2383
<HR>
2384
 
2385
<A NAME="flashSize()"><!-- --></A><H3>
2386
flashSize</H3>
2387
<PRE>
2388
public long <B>flashSize</B>()
2389
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2390
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2391
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2392
<DL>
2393
<DD>Returns the size of Flash memory or 0, if no Flash memory is installed.
2394
 If required, the Flash size is determined form the device first.
2395
<P>
2396
<DD><DL>
2397
 
2398
<DT><B>Returns:</B><DD>the size of Flash memory.
2399
<DT><B>Throws:</B>
2400
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2401
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2402
<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>
2403
</DD>
2404
</DL>
2405
<HR>
2406
 
2407
<A NAME="printMmcState()"><!-- --></A><H3>
2408
printMmcState</H3>
2409
<PRE>
2410
public boolean <B>printMmcState</B>()
2411
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2412
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2413
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2414
<DL>
2415
<DD>Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
2416
 <b>Only use this method if such kind of Flash is installed.</b>
2417
<P>
2418
<DD><DL>
2419
 
2420
<DT><B>Throws:</B>
2421
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2422
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2423
<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>
2424
</DD>
2425
</DL>
2426
<HR>
2427
 
2428 3 ZTEX
<A NAME="flashUploadBitstream(java.lang.String, int)"><!-- --></A><H3>
2429 2 ZTEX
flashUploadBitstream</H3>
2430
<PRE>
2431 3 ZTEX
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName,
2432
                                 int&nbsp;bs)
2433 2 ZTEX
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2434
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2435
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2436
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2437
<DL>
2438
<DD>Uploads a Bitstream to the Flash.
2439
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
2440
 it is possible to construct fully autonomous devices.
2441
 <p>
2442
 Information about the bitstream is stored in sector 0.
2443
 This so called boot sector has the following format:
2444
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
2445
   <tr>
2446
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
2447
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
2448
   </tr>
2449
   <tr>
2450
     <td bgcolor="#ffffff" valign="top">0..7</td>
2451
     <td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
2452
   </tr>
2453
   <tr>
2454
     <td bgcolor="#ffffff" valign="top">8..9</td>
2455
     <td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
2456
   </tr>
2457
   <tr>
2458
     <td bgcolor="#ffffff" valign="top">10..11</td>
2459
     <td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
2460
   </tr>
2461
   <tr>
2462
     <td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
2463
     <td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
2464
   </tr>
2465
 </table>
2466
 <p>
2467
 The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
2468
 where bs[i] denotes byte i of the boot sector.
2469
 <p>
2470
 The first sector of the Bitstream is sector 1.
2471
<P>
2472
<DD><DL>
2473 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).<DD><CODE>bs</CODE> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.
2474
<DT><B>Throws:</B>
2475
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2476
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2477
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2478
<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>
2479
</DD>
2480
</DL>
2481
<HR>
2482
 
2483
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
2484
flashUploadBitstream</H3>
2485
<PRE>
2486
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
2487
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2488
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2489
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2490
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2491
<DL>
2492
<DD>Uploads a Bitstream to the Flash.
2493
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
2494
 it is possible to construct fully autonomous devices.
2495
 See <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)"><CODE>flashUploadBitstream(String,int)</CODE></A> for further details.
2496
<P>
2497
<DD><DL>
2498 2 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).
2499
<DT><B>Throws:</B>
2500
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2501
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2502
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2503
<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>
2504
</DD>
2505
</DL>
2506
<HR>
2507
 
2508
<A NAME="flashResetBitstream()"><!-- --></A><H3>
2509
flashResetBitstream</H3>
2510
<PRE>
2511
public void <B>flashResetBitstream</B>()
2512
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2513
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2514
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2515
<DL>
2516
<DD>Clears a Bitstream from the Flash.
2517
 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>.
2518
 If no boot sector is installed the method returns without any write action.
2519
<P>
2520
<DD><DL>
2521
 
2522
<DT><B>Throws:</B>
2523
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2524
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2525
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2526
</DD>
2527
</DL>
2528
<HR>
2529
 
2530
<A NAME="flashFirstFreeSector()"><!-- --></A><H3>
2531
flashFirstFreeSector</H3>
2532
<PRE>
2533
public int <B>flashFirstFreeSector</B>()
2534
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2535
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2536
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2537
<DL>
2538
<DD>Returns the first free sector of the Flash memory.
2539
 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).
2540
<P>
2541
<DD><DL>
2542
 
2543
<DT><B>Returns:</B><DD>the first free sector of the Flash memory.
2544
<DT><B>Throws:</B>
2545
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2546
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2547
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2548
</DD>
2549
</DL>
2550
<HR>
2551
 
2552 3 ZTEX
<A NAME="debugStackSize()"><!-- --></A><H3>
2553
debugStackSize</H3>
2554
<PRE>
2555
public int <B>debugStackSize</B>()
2556
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2557
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2558
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2559
<DL>
2560
<DD>Returns the size of message stack in messages.
2561
<P>
2562
<DD><DL>
2563
 
2564
<DT><B>Returns:</B><DD>the size of message stack in messages.
2565
<DT><B>Throws:</B>
2566
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2567
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2568
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2569
</DD>
2570
</DL>
2571
<HR>
2572
 
2573
<A NAME="debugMsgSize()"><!-- --></A><H3>
2574
debugMsgSize</H3>
2575
<PRE>
2576
public int <B>debugMsgSize</B>()
2577
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2578
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2579
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2580
<DL>
2581
<DD>Returns the size of messages in bytes.
2582
<P>
2583
<DD><DL>
2584
 
2585
<DT><B>Returns:</B><DD>the size of messages in bytes.
2586
<DT><B>Throws:</B>
2587
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2588
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2589
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2590
</DD>
2591
</DL>
2592
<HR>
2593
 
2594
<A NAME="debugLastMsg()"><!-- --></A><H3>
2595
debugLastMsg</H3>
2596
<PRE>
2597
public final int <B>debugLastMsg</B>()</PRE>
2598
<DL>
2599
<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>
2600
<P>
2601
<DD><DL>
2602
 
2603
<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>
2604
</DD>
2605
</DL>
2606
<HR>
2607
 
2608
<A NAME="debugReadMessages(boolean, byte[])"><!-- --></A><H3>
2609
debugReadMessages</H3>
2610
<PRE>
2611
public int <B>debugReadMessages</B>(boolean&nbsp;all,
2612
                             byte[]&nbsp;buf)
2613
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2614
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2615
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2616
<DL>
2617
<DD>Reads debug messages from message stack.
2618
 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>.
2619
 The number of the latest message is returned by <A HREF="../ztex/Ztex1v1.html#debugLastMsg()"><CODE>debugLastMsg()</CODE></A>.
2620
<P>
2621
<DD><DL>
2622
<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.
2623
<DT><B>Returns:</B><DD>the size of messages stored in buffer.
2624
<DT><B>Throws:</B>
2625
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2626
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2627
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2628
</DD>
2629
</DL>
2630
<HR>
2631
 
2632 5 ZTEX
<A NAME="xmegaStrError(int)"><!-- --></A><H3>
2633
xmegaStrError</H3>
2634
<PRE>
2635
public java.lang.String <B>xmegaStrError</B>(int&nbsp;errNum)</PRE>
2636
<DL>
2637
<DD>Converts a given error code into a String.
2638
<P>
2639
<DD><DL>
2640
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
2641
<DT><B>Returns:</B><DD>an error message.</DL>
2642
</DD>
2643
</DL>
2644
<HR>
2645
 
2646
<A NAME="xmegaStrError()"><!-- --></A><H3>
2647
xmegaStrError</H3>
2648
<PRE>
2649
public java.lang.String <B>xmegaStrError</B>()</PRE>
2650
<DL>
2651
<DD>Gets the last ATxmega error from the device.
2652
<P>
2653
<DD><DL>
2654
 
2655
<DT><B>Returns:</B><DD>an error message.</DL>
2656
</DD>
2657
</DL>
2658
<HR>
2659
 
2660
<A NAME="xmegaState()"><!-- --></A><H3>
2661
xmegaState</H3>
2662
<PRE>
2663
public int <B>xmegaState</B>()
2664
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2665
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2666
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2667
<DL>
2668
<DD>Read ATxmega error and status information from the device.
2669
<P>
2670
<DD><DL>
2671
 
2672
<DT><B>Returns:</B><DD>The last error code.
2673
<DT><B>Throws:</B>
2674
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2675
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2676
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2677
</DD>
2678
</DL>
2679
<HR>
2680
 
2681
<A NAME="xmegaEnabled()"><!-- --></A><H3>
2682
xmegaEnabled</H3>
2683
<PRE>
2684
public boolean <B>xmegaEnabled</B>()
2685
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2686
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2687
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2688
<DL>
2689
<DD>Returns true if ATxmega controller is available.
2690
<P>
2691
<DD><DL>
2692
 
2693
<DT><B>Returns:</B><DD>true if ATxmega controller is available.
2694
<DT><B>Throws:</B>
2695
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2696
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2697
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2698
</DD>
2699
</DL>
2700
<HR>
2701
 
2702
<A NAME="xmegaFlashPages()"><!-- --></A><H3>
2703
xmegaFlashPages</H3>
2704
<PRE>
2705
public int <B>xmegaFlashPages</B>()
2706
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2707
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2708
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2709
<DL>
2710
<DD>Returns the number of the ATxmega Flash pages.
2711
<P>
2712
<DD><DL>
2713
 
2714
<DT><B>Returns:</B><DD>The number of the ATxmega Flash pages.
2715
<DT><B>Throws:</B>
2716
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2717
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2718
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2719
</DD>
2720
</DL>
2721
<HR>
2722
 
2723
<A NAME="xmegaEepromPages()"><!-- --></A><H3>
2724
xmegaEepromPages</H3>
2725
<PRE>
2726
public int <B>xmegaEepromPages</B>()
2727
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2728
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2729
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2730
<DL>
2731
<DD>Returns the number of the ATxmega EEPROM pages.
2732
<P>
2733
<DD><DL>
2734
 
2735
<DT><B>Returns:</B><DD>The number of the ATxmega EEPROM pages.
2736
<DT><B>Throws:</B>
2737
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2738
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2739
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2740
</DD>
2741
</DL>
2742
<HR>
2743
 
2744
<A NAME="xmegaFlashPageSize()"><!-- --></A><H3>
2745
xmegaFlashPageSize</H3>
2746
<PRE>
2747
public int <B>xmegaFlashPageSize</B>()
2748
                       throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2749
                              <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2750
                              <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2751
<DL>
2752
<DD>Returns the size of the ATxmega Flash pages.
2753
<P>
2754
<DD><DL>
2755
 
2756
<DT><B>Returns:</B><DD>The size of the ATxmega Flash pages.
2757
<DT><B>Throws:</B>
2758
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2759
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2760
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2761
</DD>
2762
</DL>
2763
<HR>
2764
 
2765
<A NAME="xmegaEepromPageSize()"><!-- --></A><H3>
2766
xmegaEepromPageSize</H3>
2767
<PRE>
2768
public int <B>xmegaEepromPageSize</B>()
2769
                        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2770
                               <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2771
                               <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2772
<DL>
2773
<DD>Returns the size of the ATXmega EEPROM pages.
2774
<P>
2775
<DD><DL>
2776
 
2777
<DT><B>Returns:</B><DD>The size of the ATXmega EEPROM pages.
2778
<DT><B>Throws:</B>
2779
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2780
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2781
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATXmega controllers are not supported by the firmware.</DL>
2782
</DD>
2783
</DL>
2784
<HR>
2785
 
2786
<A NAME="xmegaReset()"><!-- --></A><H3>
2787
xmegaReset</H3>
2788
<PRE>
2789
public void <B>xmegaReset</B>()
2790
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2791
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2792
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2793
<DL>
2794
<DD>Resets the ATxmega.
2795
<P>
2796
<DD><DL>
2797
 
2798
<DT><B>Throws:</B>
2799
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2800
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2801
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.</DL>
2802
</DD>
2803
</DL>
2804
<HR>
2805
 
2806
<A NAME="xmegaNvmRead(int, byte[], int)"><!-- --></A><H3>
2807
xmegaNvmRead</H3>
2808
<PRE>
2809
public void <B>xmegaNvmRead</B>(int&nbsp;addr,
2810
                         byte[]&nbsp;buf,
2811
                         int&nbsp;length)
2812
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2813
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2814
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2815
<DL>
2816
<DD>Reads data from the NVM of ATxmega.
2817
<P>
2818
<DD><DL>
2819
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address of the NVM (PDI address space).<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
2820
<DT><B>Throws:</B>
2821
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2822
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2823
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.</DL>
2824
</DD>
2825
</DL>
2826
<HR>
2827
 
2828
<A NAME="xmegaFlashRead(int, byte[], int)"><!-- --></A><H3>
2829
xmegaFlashRead</H3>
2830
<PRE>
2831
public void <B>xmegaFlashRead</B>(int&nbsp;addr,
2832
                           byte[]&nbsp;buf,
2833
                           int&nbsp;length)
2834
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2835
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2836
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2837
<DL>
2838
<DD>Reads data from Flash memory of ATxmega.
2839
<P>
2840
<DD><DL>
2841
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address relative to the Flash memory base.<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
2842
<DT><B>Throws:</B>
2843
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2844
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
2845
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If NVRAM access to ATxmega is not supported by the firmware.</DL>
2846
</DD>
2847
</DL>
2848
<HR>
2849
 
2850
<A NAME="xmegaEepromRead(int, byte[], int)"><!-- --></A><H3>
2851
xmegaEepromRead</H3>
2852
<PRE>
2853
public void <B>xmegaEepromRead</B>(int&nbsp;addr,
2854
                            byte[]&nbsp;buf,
2855
                            int&nbsp;length)
2856
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2857
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2858
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2859
<DL>
2860
<DD>Reads data from EEPROM memory of ATxmega.
2861
<P>
2862
<DD><DL>
2863
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address relative to the EEPROM memory base.<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
2864
<DT><B>Throws:</B>
2865
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2866
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
2867
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If NVRAM access to ATxmega is not supported by the firmware.</DL>
2868
</DD>
2869
</DL>
2870
<HR>
2871
 
2872
<A NAME="xmegaFuseRead(int, byte[], int)"><!-- --></A><H3>
2873
xmegaFuseRead</H3>
2874
<PRE>
2875
public void <B>xmegaFuseRead</B>(int&nbsp;addr,
2876
                          byte[]&nbsp;buf,
2877
                          int&nbsp;length)
2878
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2879
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2880
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2881
<DL>
2882
<DD>Reads data from Fuse memory of ATxmega.
2883
<P>
2884
<DD><DL>
2885
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address relative to the Fuse memory base.<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
2886
<DT><B>Throws:</B>
2887
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2888
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
2889
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If NVRAM access to ATxmega is not supported by the firmware.</DL>
2890
</DD>
2891
</DL>
2892
<HR>
2893
 
2894
<A NAME="xmegaFuseRead(int)"><!-- --></A><H3>
2895
xmegaFuseRead</H3>
2896
<PRE>
2897
public int <B>xmegaFuseRead</B>(int&nbsp;addr)
2898
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2899
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2900
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2901
<DL>
2902
<DD>Reads data one Fuse of ATxmega.
2903
<P>
2904
<DD><DL>
2905
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The index of th Fuse.
2906
<DT><B>Returns:</B><DD>The Fuse read.
2907
<DT><B>Throws:</B>
2908
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2909
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
2910
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - If NVRAM access to ATxmega is not supported by the firmware.</DL>
2911
</DD>
2912
</DL>
2913
<HR>
2914
 
2915
<A NAME="xmegaFlashPageWrite(int, byte[])"><!-- --></A><H3>
2916
xmegaFlashPageWrite</H3>
2917
<PRE>
2918
public void <B>xmegaFlashPageWrite</B>(int&nbsp;addr,
2919
                                byte[]&nbsp;buf)
2920
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2921
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2922
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2923
                                java.lang.IndexOutOfBoundsException</PRE>
2924
<DL>
2925
<DD>Writes data to Flash memory of ATxmega.
2926
<P>
2927
<DD><DL>
2928
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address relative to the Flash memory base.<DD><CODE>buf</CODE> - A buffer that stores the data.
2929
<DT><B>Throws:</B>
2930
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2931
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2932
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.
2933
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash page size.</DL>
2934
</DD>
2935
</DL>
2936
<HR>
2937
 
2938
<A NAME="xmegaEepromPageWrite(int, byte[])"><!-- --></A><H3>
2939
xmegaEepromPageWrite</H3>
2940
<PRE>
2941
public void <B>xmegaEepromPageWrite</B>(int&nbsp;addr,
2942
                                 byte[]&nbsp;buf)
2943
                          throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2944
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2945
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2946
                                 java.lang.IndexOutOfBoundsException</PRE>
2947
<DL>
2948
<DD>Writes data to EEPROM memory of ATxmega.
2949
<P>
2950
<DD><DL>
2951
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address relative to the EEPROM memory base.<DD><CODE>buf</CODE> - A buffer that stores the data.
2952
<DT><B>Throws:</B>
2953
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2954
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2955
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.
2956
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the EEPROM page size.</DL>
2957
</DD>
2958
</DL>
2959
<HR>
2960
 
2961
<A NAME="xmegaFuseWrite(int, int)"><!-- --></A><H3>
2962
xmegaFuseWrite</H3>
2963
<PRE>
2964
public void <B>xmegaFuseWrite</B>(int&nbsp;addr,
2965
                           int&nbsp;val)
2966
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2967
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2968
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2969
<DL>
2970
<DD>Writes one Fuse of the ATxmega.
2971
<P>
2972
<DD><DL>
2973
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The index of th Fuse.<DD><CODE>val</CODE> - The value of th Fuse.
2974
<DT><B>Throws:</B>
2975
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2976
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2977
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.</DL>
2978
</DD>
2979
</DL>
2980
<HR>
2981
 
2982
<A NAME="xmegaWriteFirmware(ztex.IhxFile)"><!-- --></A><H3>
2983
xmegaWriteFirmware</H3>
2984
<PRE>
2985
public long <B>xmegaWriteFirmware</B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)
2986
                        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2987
                               <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2988
                               <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2989
                               <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></PRE>
2990
<DL>
2991
<DD>Uploads firmware to the flash memory
2992
<P>
2993
<DD><DL>
2994
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware / data image.
2995
<DT><B>Returns:</B><DD>the upload time in ms.
2996
<DT><B>Throws:</B>
2997
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2998
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2999
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.
3000
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if the verification fails.</DL>
3001
</DD>
3002
</DL>
3003
<HR>
3004
 
3005
<A NAME="xmegaWriteEeprom(ztex.IhxFile)"><!-- --></A><H3>
3006
xmegaWriteEeprom</H3>
3007
<PRE>
3008
public long <B>xmegaWriteEeprom</B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)
3009
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3010
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3011
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3012
                             <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></PRE>
3013
<DL>
3014
<DD>Uploads data to the EEPROM memory
3015
<P>
3016
<DD><DL>
3017
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware / data image.
3018
<DT><B>Returns:</B><DD>the upload time in ms.
3019
<DT><B>Throws:</B>
3020
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3021
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3022
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if NVRAM access to ATxmega is not supported by the firmware.
3023
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if the verification fails.</DL>
3024
</DD>
3025
</DL>
3026
<HR>
3027
 
3028 2 ZTEX
<A NAME="toString()"><!-- --></A><H3>
3029
toString</H3>
3030
<PRE>
3031
public java.lang.String <B>toString</B>()</PRE>
3032
<DL>
3033
<DD>Returns a lot of useful information about the corresponding device.
3034
<P>
3035
<DD><DL>
3036
<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>
3037
</DD>
3038
<DD><DL>
3039
 
3040
<DT><B>Returns:</B><DD>a lot of useful information about the corresponding device.</DL>
3041
</DD>
3042
</DL>
3043
<HR>
3044
 
3045
<A NAME="capabilityInfo(java.lang.String)"><!-- --></A><H3>
3046
capabilityInfo</H3>
3047
<PRE>
3048
public java.lang.String <B>capabilityInfo</B>(java.lang.String&nbsp;pf)</PRE>
3049
<DL>
3050
<DD>Creates a String with capability information.
3051
<P>
3052
<DD><DL>
3053
<DT><B>Parameters:</B><DD><CODE>pf</CODE> - A separator between the single capabilities, e.g. ", "
3054
<DT><B>Returns:</B><DD>a string of the supported capabilities.</DL>
3055
</DD>
3056
</DL>
3057 5 ZTEX
<HR>
3058
 
3059
<A NAME="configureFpgaHS(java.lang.String, boolean, int)"><!-- --></A><H3>
3060
configureFpgaHS</H3>
3061
<PRE>
3062
public long <B>configureFpgaHS</B>(java.lang.String&nbsp;fwFileName,
3063
                            boolean&nbsp;force,
3064
                            int&nbsp;bs)
3065
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3066
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3067
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3068
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3069
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3070
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3071
<DL>
3072
<DD>Upload a Bitstream to the FPGA using high speed mode.
3073
<P>
3074
<DD><DL>
3075
<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.
3076
<DT><B>Throws:</B>
3077
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3078
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3079
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3080
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3081
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3082
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3083
</DD>
3084
</DL>
3085
<HR>
3086
 
3087
<A NAME="configureFpga(java.lang.String, boolean, int)"><!-- --></A><H3>
3088
configureFpga</H3>
3089
<PRE>
3090
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
3091
                          boolean&nbsp;force,
3092
                          int&nbsp;bs)
3093
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3094
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3095
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3096
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3097
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3098
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3099
<DL>
3100
<DD>Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
3101
<P>
3102
<DD><DL>
3103
<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.
3104
<DT><B>Throws:</B>
3105
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3106
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3107
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3108
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3109
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3110
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3111
</DD>
3112
</DL>
3113
<HR>
3114
 
3115
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
3116
configureFpga</H3>
3117
<PRE>
3118
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
3119
                          boolean&nbsp;force)
3120
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3121
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3122
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3123
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3124
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3125
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3126
<DL>
3127
<DD>Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
3128
<P>
3129
<DD><DL>
3130
<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).
3131
<DT><B>Throws:</B>
3132
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3133
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3134
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3135
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3136
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3137
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3138
</DD>
3139
</DL>
3140
<HR>
3141
 
3142
<A NAME="macEepromWrite(int, byte[], int)"><!-- --></A><H3>
3143
macEepromWrite</H3>
3144
<PRE>
3145
public void <B>macEepromWrite</B>(int&nbsp;addr,
3146
                           byte[]&nbsp;buf,
3147
                           int&nbsp;length)
3148
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3149
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3150
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3151
<DL>
3152
<DD>Writes data to the MAC EEPROM.
3153
<P>
3154
<DD><DL>
3155
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The destination address of the MAC EEPROM.<DD><CODE>buf</CODE> - The data.<DD><CODE>length</CODE> - The amount of bytes to be sent.
3156
<DT><B>Throws:</B>
3157
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3158
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3159
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware.</DL>
3160
</DD>
3161
</DL>
3162
<HR>
3163
 
3164
<A NAME="macEepromRead(int, byte[], int)"><!-- --></A><H3>
3165
macEepromRead</H3>
3166
<PRE>
3167
public void <B>macEepromRead</B>(int&nbsp;addr,
3168
                          byte[]&nbsp;buf,
3169
                          int&nbsp;length)
3170
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3171
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3172
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3173
<DL>
3174
<DD>Reads data from the MAC EEPROM.
3175
<P>
3176
<DD><DL>
3177
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The source address of the MAC EEPROM.<DD><CODE>buf</CODE> - A buffer for the storage of the data.<DD><CODE>length</CODE> - The amount of bytes to be read.
3178
<DT><B>Throws:</B>
3179
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3180
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3181
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware.</DL>
3182
</DD>
3183
</DL>
3184
<HR>
3185
 
3186
<A NAME="macEepromState()"><!-- --></A><H3>
3187
macEepromState</H3>
3188
<PRE>
3189
public boolean <B>macEepromState</B>()
3190
                       throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3191
                              <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3192
                              <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3193
<DL>
3194
<DD>Reads the current MAC EEPROM status.
3195
<P>
3196
<DD><DL>
3197
 
3198
<DT><B>Returns:</B><DD>true if MAC EEPROM is ready.
3199
<DT><B>Throws:</B>
3200
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3201
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3202
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware.</DL>
3203
</DD>
3204
</DL>
3205
<HR>
3206
 
3207
<A NAME="macRead(byte[])"><!-- --></A><H3>
3208
macRead</H3>
3209
<PRE>
3210
public void <B>macRead</B>(byte[]&nbsp;buf)
3211
             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3212
                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3213
                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3214
                    java.lang.IndexOutOfBoundsException</PRE>
3215
<DL>
3216
<DD>Reads MAC address from MAC EEPROM.
3217
<P>
3218
<DD><DL>
3219
<DT><B>Parameters:</B><DD><CODE>buf</CODE> - A buffer with a minimum size of 6 bytes.
3220
<DT><B>Throws:</B>
3221
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3222
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3223
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware.
3224
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than 6 bytes.</DL>
3225
</DD>
3226
</DL>
3227 6 ZTEX
<HR>
3228
 
3229
<A NAME="numberOfFpgas()"><!-- --></A><H3>
3230
numberOfFpgas</H3>
3231
<PRE>
3232
public int <B>numberOfFpgas</B>()
3233
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3234
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
3235
<DL>
3236
<DD>Returns the number of FPGA's
3237
<P>
3238
<DD><DL>
3239
 
3240
<DT><B>Returns:</B><DD>number of FPGA's
3241
<DT><B>Throws:</B>
3242
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3243
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.</DL>
3244
</DD>
3245
</DL>
3246
<HR>
3247
 
3248
<A NAME="selectFpga(int)"><!-- --></A><H3>
3249
selectFpga</H3>
3250
<PRE>
3251
public void <B>selectFpga</B>(int&nbsp;num)
3252
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3253
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3254
                       java.lang.IndexOutOfBoundsException</PRE>
3255
<DL>
3256
<DD>Select a FPGA
3257
<P>
3258
<DD><DL>
3259
<DT><B>Parameters:</B><DD><CODE>num</CODE> - FPGA to select. Valid values are 0 to <A HREF="../ztex/Ztex1v1.html#numberOfFpgas()"><CODE>numberOfFpgas()</CODE></A>-1
3260
<DT><B>Throws:</B>
3261
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3262
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3263
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If FPGA number is not in range.</DL>
3264
</DD>
3265
</DL>
3266 2 ZTEX
<!-- ========= END OF CLASS DATA ========= -->
3267
<HR>
3268
 
3269
 
3270
<!-- ======= START OF BOTTOM NAVBAR ====== -->
3271
<A NAME="navbar_bottom"><!-- --></A>
3272
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
3273
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
3274
<TR>
3275
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
3276
<A NAME="navbar_bottom_firstrow"><!-- --></A>
3277
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
3278
  <TR ALIGN="center" VALIGN="top">
3279
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
3280
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
3281
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
3282
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
3283
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
3284
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
3285
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
3286
  </TR>
3287
</TABLE>
3288
</TD>
3289
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
3290
</EM>
3291
</TD>
3292
</TR>
3293
 
3294
<TR>
3295
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3296
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
3297
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
3298
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3299
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
3300
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
3301
&nbsp;<SCRIPT type="text/javascript">
3302
  <!--
3303
  if(window==top) {
3304
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
3305
  }
3306
  //-->
3307
</SCRIPT>
3308
<NOSCRIPT>
3309
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
3310
</NOSCRIPT>
3311
 
3312
 
3313
</FONT></TD>
3314
</TR>
3315
<TR>
3316
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3317
  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>
3318
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3319
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>
3320
</TR>
3321
</TABLE>
3322
<A NAME="skip-navbar_bottom"></A>
3323
<!-- ======== END OF BOTTOM NAVBAR ======= -->
3324
 
3325
<HR>
3326
 
3327
</BODY>
3328
</HTML>

powered by: WebSVN 2.1.0

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