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

Subversion Repositories usb_fpga_2_04

[/] [usb_fpga_2_04/] [trunk/] [docs/] [java/] [ztex/] [Ztex1v1.html] - Blame information for rev 2

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
<!-- Generated by javadoc (build 1.6.0_18) on Wed Oct 30 21:18:13 CET 2013 -->
6
<TITLE>
7
Ztex1v1
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-10-30">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Ztex1v1";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47
  </TR>
48
</TABLE>
49
</TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
</EM>
52
</TD>
53
</TR>
54
 
55
<TR>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62
&nbsp;<SCRIPT type="text/javascript">
63
  <!--
64
  if(window==top) {
65
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
66
  }
67
  //-->
68
</SCRIPT>
69
<NOSCRIPT>
70
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
71
</NOSCRIPT>
72
 
73
 
74
</FONT></TD>
75
</TR>
76
<TR>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81
</TR>
82
</TABLE>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
85
 
86
<HR>
87
<!-- ======== START OF CLASS DATA ======== -->
88
<H2>
89
<FONT SIZE="-1">
90
ztex</FONT>
91
<BR>
92
Class Ztex1v1</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../ztex/Ztex1.html" title="class in ztex">ztex.Ztex1</A>
96
      <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.Ztex1v1</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Ztex1v1</B><DT>extends <A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></DL>
101
</PRE>
102
 
103
<P>
104
This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
105
 <p>
106
 The features supported by this interface can be accessed via vendor commands and vendor requests via Endpoint 0.
107
 Each feature can be enabled or disabled by the firmware and also depends from the hardware.
108
 The presence of a feature is indicated by a 1 in the corresponding feature bit of the ZTEX descriptor 1, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.
109
 The following table gives an overview about the features
110
 <table bgcolor="#404040" cellspacing=1 cellpadding=10>
111
   <tr>
112
     <td bgcolor="#d0d0d0" valign="bottom"><b>Capability bit</b></td>
113
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
114
   </tr>
115
   <tr>
116
     <td bgcolor="#ffffff" valign="top">0.0</td>
117
     <td bgcolor="#ffffff" valign="top" colspan=2>
118
          EEPROM support<p>
119
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
120
         <tr>
121
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
122
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
123
         </tr>
124
         <tr>
125
           <td bgcolor="#ffffff" valign="top">VR 0x38</td>
126
           <td bgcolor="#ffffff" valign="top">Read from EEPROM</td>
127
         </tr>
128
         <tr>
129
           <td bgcolor="#ffffff" valign="top">VC 0x39</td>
130
           <td bgcolor="#ffffff" valign="top">Write to EEPROM</td>
131
         </tr>
132
         <tr>
133
           <td bgcolor="#ffffff" valign="top">VR 0x3a</td>
134
           <td bgcolor="#ffffff" valign="top">Get EEPROM state. Returns:
135
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
136
               <tr>
137
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
138
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
139
               </tr>
140
               <tr>
141
                 <td bgcolor="#ffffff" valign="top">0-1</td>
142
                 <td bgcolor="#ffffff" valign="top">Number of bytes written.</td>
143
               </tr>
144
               <tr>
145
                 <td bgcolor="#ffffff" valign="top">2</td>
146
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
147
               </tr>
148
               <tr>
149
                 <td bgcolor="#ffffff" valign="top">3</td>
150
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
151
               </tr>
152
             </table>
153
           </td>
154
         </tr>
155
       </table>
156
        </td>
157
   </tr>
158
   <tr>
159
     <td bgcolor="#ffffff" valign="top">0.1</td>
160
     <td bgcolor="#ffffff" valign="top" colspan=2>
161
       FPGA Configuration<p>
162
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
163
         <tr>
164
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
165
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
166
         </tr>
167
         <tr>
168
           <td bgcolor="#ffffff" valign="top">VR 0x30</td>
169
           <td bgcolor="#ffffff" valign="top">Get FPGA state. Returns:
170
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
171
               <tr>
172
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
173
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
174
               </tr>
175
               <tr>
176
                 <td bgcolor="#ffffff" valign="top">0</td>
177
                 <td bgcolor="#ffffff" valign="top">1: unconfigured, 0:configured</td>
178
               </tr>
179
               <tr>
180
                 <td bgcolor="#ffffff" valign="top">1</td>
181
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
182
               </tr>
183
               <tr>
184
                 <td bgcolor="#ffffff" valign="top">2-5</td>
185
                 <td bgcolor="#ffffff" valign="top">Number of bytes transferred.</td>
186
               </tr>
187
               <tr>
188
                 <td bgcolor="#ffffff" valign="top">6</td>
189
                 <td bgcolor="#ffffff" valign="top">INIT_B states.</td>
190
               </tr>
191
               <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
             </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
   <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
   <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
   <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
   <tr>
487
     <td bgcolor="#ffffff" valign="top">1.0</td>
488
     <td bgcolor="#ffffff" valign="top" colspan=2>
489
          Temperature sensor support<p>
490
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
491
         <tr>
492
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
493
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
494
         </tr>
495
         <tr>
496
           <td bgcolor="#ffffff" valign="top">VR 0x58</td>
497
           <td bgcolor="#ffffff" valign="top">Return temperature data:
498
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
499
               <tr>
500
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
501
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
502
               </tr>
503
               <tr>
504
                 <td bgcolor="#ffffff" valign="top">0</td>
505
                 <td bgcolor="#ffffff" valign="top">Protocol</td>
506
               </tr>
507
               <tr>
508
                 <td bgcolor="#ffffff" valign="top">1..n</td>
509
                 <td bgcolor="#ffffff" valign="top">Data</td>
510
               </tr>
511
             </table>
512
           </td>
513
         </tr>
514
       </table>
515
        </td>
516
   </tr>
517
 </table>
518
<P>
519
 
520
<P>
521
<DL>
522
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>,
523
<A HREF="../ztex/Ztex1.html" title="class in ztex"><CODE>Ztex1</CODE></A></DL>
524
<HR>
525
 
526
<P>
527
<!-- =========== FIELD SUMMARY =========== -->
528
 
529
<A NAME="field_summary"><!-- --></A>
530
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
531
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
532
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
533
<B>Field Summary</B></FONT></TH>
534
</TR>
535
<TR BGCOLOR="white" CLASS="TableRowColor">
536
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
537
<CODE>static&nbsp;int</CODE></FONT></TD>
538
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</A></B></CODE>
539
 
540
<BR>
541
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for DEBUG helper support.</TD>
542
</TR>
543
<TR BGCOLOR="white" CLASS="TableRowColor">
544
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
545
<CODE>static&nbsp;int</CODE></FONT></TD>
546
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</A></B></CODE>
547
 
548
<BR>
549
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for EEPROM support.</TD>
550
</TR>
551
<TR BGCOLOR="white" CLASS="TableRowColor">
552
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553
<CODE>static&nbsp;int</CODE></FONT></TD>
554
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</A></B></CODE>
555
 
556
<BR>
557
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FLASH memory support.</TD>
558
</TR>
559
<TR BGCOLOR="white" CLASS="TableRowColor">
560
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
561
<CODE>static&nbsp;int</CODE></FONT></TD>
562
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</A></B></CODE>
563
 
564
<BR>
565
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for FPGA configuration support.</TD>
566
</TR>
567
<TR BGCOLOR="white" CLASS="TableRowColor">
568
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
569
<CODE>static&nbsp;int</CODE></FONT></TD>
570
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_HS_FPGA">CAPABILITY_HS_FPGA</A></B></CODE>
571
 
572
<BR>
573
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
574
</TR>
575
<TR BGCOLOR="white" CLASS="TableRowColor">
576
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
577
<CODE>static&nbsp;int</CODE></FONT></TD>
578
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_MAC_EEPROM">CAPABILITY_MAC_EEPROM</A></B></CODE>
579
 
580
<BR>
581
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
582
</TR>
583
<TR BGCOLOR="white" CLASS="TableRowColor">
584
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
585
<CODE>static&nbsp;int</CODE></FONT></TD>
586
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_MULTI_FPGA">CAPABILITY_MULTI_FPGA</A></B></CODE>
587
 
588
<BR>
589
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for multi FPGA support</TD>
590
</TR>
591
<TR BGCOLOR="white" CLASS="TableRowColor">
592
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
593
<CODE>static&nbsp;int</CODE></FONT></TD>
594
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_TEMP_SENSOR">CAPABILITY_TEMP_SENSOR</A></B></CODE>
595
 
596
<BR>
597
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for Temperature sensor support</TD>
598
</TR>
599
<TR BGCOLOR="white" CLASS="TableRowColor">
600
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
601
<CODE>static&nbsp;int</CODE></FONT></TD>
602
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</A></B></CODE>
603
 
604
<BR>
605
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Capability index for AVR XMEGA support.</TD>
606
</TR>
607
<TR BGCOLOR="white" CLASS="TableRowColor">
608
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
609
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
610
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
611
 
612
<BR>
613
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</TD>
614
</TR>
615
<TR BGCOLOR="white" CLASS="TableRowColor">
616
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
617
<CODE>&nbsp;<A HREF="../ztex/ConfigData.html" title="class in ztex">ConfigData</A></CODE></FONT></TD>
618
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#config">config</A></B></CODE>
619
 
620
<BR>
621
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The configuration data structure
622
 is initialized if this kind of data is present in MAC EEPROM.</TD>
623
</TR>
624
<TR BGCOLOR="white" CLASS="TableRowColor">
625
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
626
<CODE>&nbsp;int</CODE></FONT></TD>
627
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</A></B></CODE>
628
 
629
<BR>
630
&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>
631
</TR>
632
<TR BGCOLOR="white" CLASS="TableRowColor">
633
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
634
<CODE>&nbsp;int</CODE></FONT></TD>
635
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
636
 
637
<BR>
638
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
639
</TR>
640
<TR BGCOLOR="white" CLASS="TableRowColor">
641
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
642
<CODE>&nbsp;int</CODE></FONT></TD>
643
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</A></B></CODE>
644
 
645
<BR>
646
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checksum of the last EEPROM transfer.</TD>
647
</TR>
648
<TR BGCOLOR="white" CLASS="TableRowColor">
649
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
650
<CODE>&nbsp;boolean</CODE></FONT></TD>
651
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#enableExtraFpgaConfigurationChecks">enableExtraFpgaConfigurationChecks</A></B></CODE>
652
 
653
<BR>
654
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables extra FPGA configuration checks.</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_BUSY">FLASH_EC_BUSY</A></B></CODE>
660
 
661
<BR>
662
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that Flash memory it busy.</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_CMD_ERROR">FLASH_EC_CMD_ERROR</A></B></CODE>
668
 
669
<BR>
670
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to execute a command.</TD>
671
</TR>
672
<TR BGCOLOR="white" CLASS="TableRowColor">
673
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
674
<CODE>static&nbsp;int</CODE></FONT></TD>
675
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</A></B></CODE>
676
 
677
<BR>
678
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
679
</TR>
680
<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#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</A></B></CODE>
684
 
685
<BR>
686
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals the the installed Flash memory is not supported.</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#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
692
 
693
<BR>
694
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</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#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</A></B></CODE>
700
 
701
<BR>
702
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to read from Flash.</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#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</A></B></CODE>
708
 
709
<BR>
710
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that a timeout occurred.</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#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</A></B></CODE>
716
 
717
<BR>
718
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to write to Flash.</TD>
719
</TR>
720
<TR BGCOLOR="white" CLASS="TableRowColor">
721
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
722
<CODE>&nbsp;int</CODE></FONT></TD>
723
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEC">flashEC</A></B></CODE>
724
 
725
<BR>
726
&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>
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#tempSensorUpdateInterval">tempSensorUpdateInterval</A></B></CODE>
732
 
733
<BR>
734
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smallest temperature sensor update interval in ms</TD>
735
</TR>
736
<TR BGCOLOR="white" CLASS="TableRowColor">
737
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
738
<CODE>static&nbsp;int</CODE></FONT></TD>
739
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_ADDRESS_ERROR">XMEGA_EC_ADDRESS_ERROR</A></B></CODE>
740
 
741
<BR>
742
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an address error (invalid address or wrong page size).</TD>
743
</TR>
744
<TR BGCOLOR="white" CLASS="TableRowColor">
745
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
746
<CODE>static&nbsp;int</CODE></FONT></TD>
747
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_INVALID_DEVICE">XMEGA_EC_INVALID_DEVICE</A></B></CODE>
748
 
749
<BR>
750
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that the ATxmega controller is not supported.</TD>
751
</TR>
752
<TR BGCOLOR="white" CLASS="TableRowColor">
753
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
754
<CODE>static&nbsp;int</CODE></FONT></TD>
755
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NO_ERROR">XMEGA_EC_NO_ERROR</A></B></CODE>
756
 
757
<BR>
758
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
759
</TR>
760
<TR BGCOLOR="white" CLASS="TableRowColor">
761
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
762
<CODE>static&nbsp;int</CODE></FONT></TD>
763
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NVM_BUSY">XMEGA_EC_NVM_BUSY</A></B></CODE>
764
 
765
<BR>
766
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that the NVM is busy.</TD>
767
</TR>
768
<TR BGCOLOR="white" CLASS="TableRowColor">
769
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
770
<CODE>static&nbsp;int</CODE></FONT></TD>
771
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_NVM_TIMEOUT">XMEGA_EC_NVM_TIMEOUT</A></B></CODE>
772
 
773
<BR>
774
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that an NVM timeout occurred.</TD>
775
</TR>
776
<TR BGCOLOR="white" CLASS="TableRowColor">
777
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
778
<CODE>static&nbsp;int</CODE></FONT></TD>
779
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#XMEGA_EC_PDI_READ_ERROR">XMEGA_EC_PDI_READ_ERROR</A></B></CODE>
780
 
781
<BR>
782
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals a PDI read error.</TD>
783
</TR>
784
<TR BGCOLOR="white" CLASS="TableRowColor">
785
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
786
<CODE>&nbsp;int</CODE></FONT></TD>
787
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEC">xmegaEC</A></B></CODE>
788
 
789
<BR>
790
&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>
791
</TR>
792
</TABLE>
793
&nbsp;<A NAME="fields_inherited_from_class_ztex.Ztex1"><!-- --></A>
794
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
795
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
796
<TH ALIGN="left"><B>Fields inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
797
</TR>
798
<TR BGCOLOR="white" CLASS="TableRowColor">
799
<TD><CODE><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A>, <A HREF="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></CODE></TD>
800
</TR>
801
</TABLE>
802
&nbsp;
803
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
804
 
805
<A NAME="constructor_summary"><!-- --></A>
806
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
807
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
808
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
809
<B>Constructor Summary</B></FONT></TH>
810
</TR>
811
<TR BGCOLOR="white" CLASS="TableRowColor">
812
<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>
813
 
814
<BR>
815
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given device.</TD>
816
</TR>
817
</TABLE>
818
&nbsp;
819
<!-- ========== METHOD SUMMARY =========== -->
820
 
821
<A NAME="method_summary"><!-- --></A>
822
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
823
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
824
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
825
<B>Method Summary</B></FONT></TH>
826
</TR>
827
<TR BGCOLOR="white" CLASS="TableRowColor">
828
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
829
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
830
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</A></B>(java.lang.String&nbsp;pf)</CODE>
831
 
832
<BR>
833
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</TD>
834
</TR>
835
<TR BGCOLOR="white" CLASS="TableRowColor">
836
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
837
<CODE>&nbsp;void</CODE></FONT></TD>
838
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</A></B>(int&nbsp;i)</CODE>
839
 
840
<BR>
841
&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>
842
</TR>
843
<TR BGCOLOR="white" CLASS="TableRowColor">
844
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
845
<CODE>&nbsp;void</CODE></FONT></TD>
846
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
847
                int&nbsp;j)</CODE>
848
 
849
<BR>
850
&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>
851
</TR>
852
<TR BGCOLOR="white" CLASS="TableRowColor">
853
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
854
<CODE>&nbsp;void</CODE></FONT></TD>
855
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCompatible(int, int, int, int)">checkCompatible</A></B>(int&nbsp;productId0,
856
                int&nbsp;productId1,
857
                int&nbsp;productId2,
858
                int&nbsp;productId3)</CODE>
859
 
860
<BR>
861
&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>
862
</TR>
863
<TR BGCOLOR="white" CLASS="TableRowColor">
864
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
865
<CODE>&nbsp;void</CODE></FONT></TD>
866
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkValid()">checkValid</A></B>()</CODE>
867
 
868
<BR>
869
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</TD>
870
</TR>
871
<TR BGCOLOR="white" CLASS="TableRowColor">
872
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
873
<CODE>&nbsp;boolean</CODE></FONT></TD>
874
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)">compatible</A></B>(int&nbsp;productId0,
875
           int&nbsp;productId1,
876
           int&nbsp;productId2,
877
           int&nbsp;productId3)</CODE>
878
 
879
<BR>
880
&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>
881
</TR>
882
<TR BGCOLOR="white" CLASS="TableRowColor">
883
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
884
<CODE>&nbsp;long</CODE></FONT></TD>
885
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.io.InputStream, boolean, int)">configureFpga</A></B>(java.io.InputStream&nbsp;inputStream,
886
              boolean&nbsp;force,
887
              int&nbsp;bs)</CODE>
888
 
889
<BR>
890
&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>
891
</TR>
892
<TR BGCOLOR="white" CLASS="TableRowColor">
893
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
894
<CODE>&nbsp;long</CODE></FONT></TD>
895
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
896
              boolean&nbsp;force)</CODE>
897
 
898
<BR>
899
&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>
900
</TR>
901
<TR BGCOLOR="white" CLASS="TableRowColor">
902
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
903
<CODE>&nbsp;long</CODE></FONT></TD>
904
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean, int)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
905
              boolean&nbsp;force,
906
              int&nbsp;bs)</CODE>
907
 
908
<BR>
909
&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>
910
</TR>
911
<TR BGCOLOR="white" CLASS="TableRowColor">
912
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
913
<CODE>&nbsp;long</CODE></FONT></TD>
914
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaHS(java.io.InputStream, boolean, int)">configureFpgaHS</A></B>(java.io.InputStream&nbsp;inputStream,
915
                boolean&nbsp;force,
916
                int&nbsp;bs)</CODE>
917
 
918
<BR>
919
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using high speed mode.</TD>
920
</TR>
921
<TR BGCOLOR="white" CLASS="TableRowColor">
922
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
923
<CODE>&nbsp;long</CODE></FONT></TD>
924
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaHS(java.lang.String, boolean, int)">configureFpgaHS</A></B>(java.lang.String&nbsp;fwFileName,
925
                boolean&nbsp;force,
926
                int&nbsp;bs)</CODE>
927
 
928
<BR>
929
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using high speed mode.</TD>
930
</TR>
931
<TR BGCOLOR="white" CLASS="TableRowColor">
932
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
933
<CODE>&nbsp;long</CODE></FONT></TD>
934
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaLS(java.io.InputStream, boolean, int)">configureFpgaLS</A></B>(java.io.InputStream&nbsp;inputStream,
935
                boolean&nbsp;force,
936
                int&nbsp;bs)</CODE>
937
 
938
<BR>
939
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using low speed mode.</TD>
940
</TR>
941
<TR BGCOLOR="white" CLASS="TableRowColor">
942
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
943
<CODE>&nbsp;long</CODE></FONT></TD>
944
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpgaLS(java.lang.String, boolean, int)">configureFpgaLS</A></B>(java.lang.String&nbsp;fwFileName,
945
                boolean&nbsp;force,
946
                int&nbsp;bs)</CODE>
947
 
948
<BR>
949
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA using low speed mode.</TD>
950
</TR>
951
<TR BGCOLOR="white" CLASS="TableRowColor">
952
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
953
<CODE>&nbsp;int</CODE></FONT></TD>
954
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</A></B>()</CODE>
955
 
956
<BR>
957
&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>
958
</TR>
959
<TR BGCOLOR="white" CLASS="TableRowColor">
960
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
961
<CODE>&nbsp;int</CODE></FONT></TD>
962
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</A></B>()</CODE>
963
 
964
<BR>
965
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of messages in bytes.</TD>
966
</TR>
967
<TR BGCOLOR="white" CLASS="TableRowColor">
968
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
969
<CODE>&nbsp;int</CODE></FONT></TD>
970
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugReadMessages(boolean, byte[])">debugReadMessages</A></B>(boolean&nbsp;all,
971
                  byte[]&nbsp;buf)</CODE>
972
 
973
<BR>
974
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads debug messages from message stack.</TD>
975
</TR>
976
<TR BGCOLOR="white" CLASS="TableRowColor">
977
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
978
<CODE>&nbsp;int</CODE></FONT></TD>
979
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</A></B>()</CODE>
980
 
981
<BR>
982
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of message stack in messages.</TD>
983
</TR>
984
<TR BGCOLOR="white" CLASS="TableRowColor">
985
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
986
<CODE>&nbsp;void</CODE></FONT></TD>
987
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
988
 
989
<BR>
990
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
991
</TR>
992
<TR BGCOLOR="white" CLASS="TableRowColor">
993
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
994
<CODE>&nbsp;void</CODE></FONT></TD>
995
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromRead(int, byte[], int)">eepromRead</A></B>(int&nbsp;addr,
996
           byte[]&nbsp;buf,
997
           int&nbsp;length)</CODE>
998
 
999
<BR>
1000
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the EEPROM.</TD>
1001
</TR>
1002
<TR BGCOLOR="white" CLASS="TableRowColor">
1003
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1004
<CODE>&nbsp;boolean</CODE></FONT></TD>
1005
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromState()">eepromState</A></B>()</CODE>
1006
 
1007
<BR>
1008
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current EEPROM status.</TD>
1009
</TR>
1010
<TR BGCOLOR="white" CLASS="TableRowColor">
1011
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1012
<CODE>&nbsp;long</CODE></FONT></TD>
1013
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromUpload(java.lang.String, boolean)">eepromUpload</A></B>(java.lang.String&nbsp;ihxFileName,
1014
             boolean&nbsp;force)</CODE>
1015
 
1016
<BR>
1017
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
1018
</TR>
1019
<TR BGCOLOR="white" CLASS="TableRowColor">
1020
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1021
<CODE>&nbsp;long</CODE></FONT></TD>
1022
<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,
1023
             boolean&nbsp;force)</CODE>
1024
 
1025
<BR>
1026
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
1027
</TR>
1028
<TR BGCOLOR="white" CLASS="TableRowColor">
1029
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1030
<CODE>&nbsp;void</CODE></FONT></TD>
1031
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromWrite(int, byte[], int)">eepromWrite</A></B>(int&nbsp;addr,
1032
            byte[]&nbsp;buf,
1033
            int&nbsp;length)</CODE>
1034
 
1035
<BR>
1036
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the EEPROM.</TD>
1037
</TR>
1038
<TR BGCOLOR="white" CLASS="TableRowColor">
1039
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1040
<CODE>&nbsp;boolean</CODE></FONT></TD>
1041
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</A></B>()</CODE>
1042
 
1043
<BR>
1044
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if Flash memory is installed.</TD>
1045
</TR>
1046
<TR BGCOLOR="white" CLASS="TableRowColor">
1047
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1048
<CODE>&nbsp;int</CODE></FONT></TD>
1049
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</A></B>()</CODE>
1050
 
1051
<BR>
1052
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first free sector of the Flash memory.</TD>
1053
</TR>
1054
<TR BGCOLOR="white" CLASS="TableRowColor">
1055
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1056
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1057
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashInfo()">flashInfo</A></B>()</CODE>
1058
 
1059
<BR>
1060
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns information about Flash memory.</TD>
1061
</TR>
1062
<TR BGCOLOR="white" CLASS="TableRowColor">
1063
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1064
<CODE>&nbsp;void</CODE></FONT></TD>
1065
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
1066
                byte[]&nbsp;buf)</CODE>
1067
 
1068
<BR>
1069
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one sector from the Flash.</TD>
1070
</TR>
1071
<TR BGCOLOR="white" CLASS="TableRowColor">
1072
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1073
<CODE>&nbsp;void</CODE></FONT></TD>
1074
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
1075
                int&nbsp;num,
1076
                byte[]&nbsp;buf)</CODE>
1077
 
1078
<BR>
1079
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a integer number of sectors from the Flash.</TD>
1080
</TR>
1081
<TR BGCOLOR="white" CLASS="TableRowColor">
1082
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1083
<CODE>&nbsp;void</CODE></FONT></TD>
1084
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</A></B>()</CODE>
1085
 
1086
<BR>
1087
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears a Bitstream from the Flash.</TD>
1088
</TR>
1089
<TR BGCOLOR="white" CLASS="TableRowColor">
1090
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1091
<CODE>&nbsp;int</CODE></FONT></TD>
1092
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectors()">flashSectors</A></B>()</CODE>
1093
 
1094
<BR>
1095
&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>
1096
</TR>
1097
<TR BGCOLOR="white" CLASS="TableRowColor">
1098
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1099
<CODE>&nbsp;int</CODE></FONT></TD>
1100
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</A></B>()</CODE>
1101
 
1102
<BR>
1103
&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>
1104
</TR>
1105
<TR BGCOLOR="white" CLASS="TableRowColor">
1106
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1107
<CODE>&nbsp;long</CODE></FONT></TD>
1108
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSize()">flashSize</A></B>()</CODE>
1109
 
1110
<BR>
1111
&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>
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#flashState()">flashState</A></B>()</CODE>
1117
 
1118
<BR>
1119
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the the Flash memory status and information.</TD>
1120
</TR>
1121
<TR BGCOLOR="white" CLASS="TableRowColor">
1122
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1123
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1124
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError()">flashStrError</A></B>()</CODE>
1125
 
1126
<BR>
1127
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
1128
</TR>
1129
<TR BGCOLOR="white" CLASS="TableRowColor">
1130
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1131
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
1132
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</A></B>(int&nbsp;errNum)</CODE>
1133
 
1134
<BR>
1135
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
1136
</TR>
1137
<TR BGCOLOR="white" CLASS="TableRowColor">
1138
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1139
<CODE>&nbsp;long</CODE></FONT></TD>
1140
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream, int)">flashUploadBitstream</A></B>(java.io.InputStream&nbsp;inputStream,
1141
                     int&nbsp;bs)</CODE>
1142
 
1143
<BR>
1144
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
1145
</TR>
1146
<TR BGCOLOR="white" CLASS="TableRowColor">
1147
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1148
<CODE>&nbsp;long</CODE></FONT></TD>
1149
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName)</CODE>
1150
 
1151
<BR>
1152
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
1153
</TR>
1154
<TR BGCOLOR="white" CLASS="TableRowColor">
1155
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1156
<CODE>&nbsp;long</CODE></FONT></TD>
1157
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String, int)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName,
1158
                     int&nbsp;bs)</CODE>
1159
 
1160
<BR>
1161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</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#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
1167
                 byte[]&nbsp;buf)</CODE>
1168
 
1169
<BR>
1170
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one sector to the Flash.</TD>
1171
</TR>
1172
<TR BGCOLOR="white" CLASS="TableRowColor">
1173
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1174
<CODE>&nbsp;void</CODE></FONT></TD>
1175
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
1176
                 int&nbsp;num,
1177
                 byte[]&nbsp;buf)</CODE>
1178
 
1179
<BR>
1180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a integer number of sectors to the Flash.</TD>
1181
</TR>
1182
<TR BGCOLOR="white" CLASS="TableRowColor">
1183
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1184
<CODE>&nbsp;int</CODE></FONT></TD>
1185
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</A></B>()</CODE>
1186
 
1187
<BR>
1188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
1189
</TR>
1190
<TR BGCOLOR="white" CLASS="TableRowColor">
1191
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1192
<CODE>&nbsp;boolean</CODE></FONT></TD>
1193
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</A></B>()</CODE>
1194
 
1195
<BR>
1196
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the FPGA is configured.</TD>
1197
</TR>
1198
<TR BGCOLOR="white" CLASS="TableRowColor">
1199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1200
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1201
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</A></B>()</CODE>
1202
 
1203
<BR>
1204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that indicates the FPGA configuration status.</TD>
1205
</TR>
1206
<TR BGCOLOR="white" CLASS="TableRowColor">
1207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1208
<CODE>protected &nbsp;void</CODE></FONT></TD>
1209
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#init()">init</A></B>()</CODE>
1210
 
1211
<BR>
1212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializates the class.</TD>
1213
</TR>
1214
<TR BGCOLOR="white" CLASS="TableRowColor">
1215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1216
<CODE>&nbsp;boolean</CODE></FONT></TD>
1217
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#InterfaceCapabilities(int)">InterfaceCapabilities</A></B>(int&nbsp;i)</CODE>
1218
 
1219
<BR>
1220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns interface capability bit.</TD>
1221
</TR>
1222
<TR BGCOLOR="white" CLASS="TableRowColor">
1223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1224
<CODE>&nbsp;void</CODE></FONT></TD>
1225
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromRead(int, byte[], int)">macEepromRead</A></B>(int&nbsp;addr,
1226
              byte[]&nbsp;buf,
1227
              int&nbsp;length)</CODE>
1228
 
1229
<BR>
1230
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the MAC EEPROM.</TD>
1231
</TR>
1232
<TR BGCOLOR="white" CLASS="TableRowColor">
1233
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1234
<CODE>&nbsp;boolean</CODE></FONT></TD>
1235
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromState()">macEepromState</A></B>()</CODE>
1236
 
1237
<BR>
1238
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current MAC EEPROM status.</TD>
1239
</TR>
1240
<TR BGCOLOR="white" CLASS="TableRowColor">
1241
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1242
<CODE>&nbsp;void</CODE></FONT></TD>
1243
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macEepromWrite(int, byte[], int)">macEepromWrite</A></B>(int&nbsp;addr,
1244
               byte[]&nbsp;buf,
1245
               int&nbsp;length)</CODE>
1246
 
1247
<BR>
1248
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the MAC EEPROM.</TD>
1249
</TR>
1250
<TR BGCOLOR="white" CLASS="TableRowColor">
1251
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1252
<CODE>&nbsp;void</CODE></FONT></TD>
1253
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#macRead(byte[])">macRead</A></B>(byte[]&nbsp;buf)</CODE>
1254
 
1255
<BR>
1256
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads MAC address from MAC EEPROM.</TD>
1257
</TR>
1258
<TR BGCOLOR="white" CLASS="TableRowColor">
1259
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1260
<CODE>&nbsp;int</CODE></FONT></TD>
1261
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#numberOfFpgas()">numberOfFpgas</A></B>()</CODE>
1262
 
1263
<BR>
1264
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of FPGA's</TD>
1265
</TR>
1266
<TR BGCOLOR="white" CLASS="TableRowColor">
1267
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1268
<CODE>&nbsp;void</CODE></FONT></TD>
1269
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</A></B>()</CODE>
1270
 
1271
<BR>
1272
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out the FPGA state.</TD>
1273
</TR>
1274
<TR BGCOLOR="white" CLASS="TableRowColor">
1275
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1276
<CODE>&nbsp;boolean</CODE></FONT></TD>
1277
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printMmcState()">printMmcState</A></B>()</CODE>
1278
 
1279
<BR>
1280
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out some debug information about *SD/MMC Flash cards in SPI mode.</TD>
1281
</TR>
1282
<TR BGCOLOR="white" CLASS="TableRowColor">
1283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1284
<CODE>&nbsp;boolean</CODE></FONT></TD>
1285
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printSpiState()">printSpiState</A></B>()</CODE>
1286
 
1287
<BR>
1288
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out some debug information about SPI Flash.</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#resetFpga()">resetFpga</A></B>()</CODE>
1294
 
1295
<BR>
1296
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the FPGA.</TD>
1297
</TR>
1298
<TR BGCOLOR="white" CLASS="TableRowColor">
1299
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1300
<CODE>&nbsp;void</CODE></FONT></TD>
1301
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#selectFpga(int)">selectFpga</A></B>(int&nbsp;num)</CODE>
1302
 
1303
<BR>
1304
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select a FPGA</TD>
1305
</TR>
1306
<TR BGCOLOR="white" CLASS="TableRowColor">
1307
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1308
<CODE>&nbsp;double</CODE></FONT></TD>
1309
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#tempSensorRead(int)">tempSensorRead</A></B>(int&nbsp;idx)</CODE>
1310
 
1311
<BR>
1312
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read temperature sensor data.</TD>
1313
</TR>
1314
<TR BGCOLOR="white" CLASS="TableRowColor">
1315
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1316
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1317
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#toString()">toString</A></B>()</CODE>
1318
 
1319
<BR>
1320
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a lot of useful information about the corresponding device.</TD>
1321
</TR>
1322
<TR BGCOLOR="white" CLASS="TableRowColor">
1323
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1324
<CODE>&nbsp;boolean</CODE></FONT></TD>
1325
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid()">valid</A></B>()</CODE>
1326
 
1327
<BR>
1328
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 is available.</TD>
1329
</TR>
1330
<TR BGCOLOR="white" CLASS="TableRowColor">
1331
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1332
<CODE>&nbsp;boolean</CODE></FONT></TD>
1333
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid(int, int)">valid</A></B>(int&nbsp;i,
1334
      int&nbsp;j)</CODE>
1335
 
1336
<BR>
1337
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 and capability i.j are available.</TD>
1338
</TR>
1339
<TR BGCOLOR="white" CLASS="TableRowColor">
1340
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1341
<CODE>&nbsp;int</CODE></FONT></TD>
1342
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPages()">xmegaEepromPages</A></B>()</CODE>
1343
 
1344
<BR>
1345
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the ATxmega EEPROM pages.</TD>
1346
</TR>
1347
<TR BGCOLOR="white" CLASS="TableRowColor">
1348
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1349
<CODE>&nbsp;int</CODE></FONT></TD>
1350
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPageSize()">xmegaEepromPageSize</A></B>()</CODE>
1351
 
1352
<BR>
1353
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the ATXmega EEPROM pages.</TD>
1354
</TR>
1355
<TR BGCOLOR="white" CLASS="TableRowColor">
1356
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1357
<CODE>&nbsp;void</CODE></FONT></TD>
1358
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromPageWrite(int, byte[])">xmegaEepromPageWrite</A></B>(int&nbsp;addr,
1359
                     byte[]&nbsp;buf)</CODE>
1360
 
1361
<BR>
1362
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to EEPROM memory of ATxmega.</TD>
1363
</TR>
1364
<TR BGCOLOR="white" CLASS="TableRowColor">
1365
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1366
<CODE>&nbsp;void</CODE></FONT></TD>
1367
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEepromRead(int, byte[], int)">xmegaEepromRead</A></B>(int&nbsp;addr,
1368
                byte[]&nbsp;buf,
1369
                int&nbsp;length)</CODE>
1370
 
1371
<BR>
1372
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from EEPROM memory of ATxmega.</TD>
1373
</TR>
1374
<TR BGCOLOR="white" CLASS="TableRowColor">
1375
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1376
<CODE>&nbsp;boolean</CODE></FONT></TD>
1377
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaEnabled()">xmegaEnabled</A></B>()</CODE>
1378
 
1379
<BR>
1380
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ATxmega controller is available.</TD>
1381
</TR>
1382
<TR BGCOLOR="white" CLASS="TableRowColor">
1383
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1384
<CODE>&nbsp;int</CODE></FONT></TD>
1385
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPages()">xmegaFlashPages</A></B>()</CODE>
1386
 
1387
<BR>
1388
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of the ATxmega Flash pages.</TD>
1389
</TR>
1390
<TR BGCOLOR="white" CLASS="TableRowColor">
1391
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1392
<CODE>&nbsp;int</CODE></FONT></TD>
1393
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPageSize()">xmegaFlashPageSize</A></B>()</CODE>
1394
 
1395
<BR>
1396
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size of the ATxmega Flash pages.</TD>
1397
</TR>
1398
<TR BGCOLOR="white" CLASS="TableRowColor">
1399
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1400
<CODE>&nbsp;void</CODE></FONT></TD>
1401
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashPageWrite(int, byte[])">xmegaFlashPageWrite</A></B>(int&nbsp;addr,
1402
                    byte[]&nbsp;buf)</CODE>
1403
 
1404
<BR>
1405
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to Flash memory of ATxmega.</TD>
1406
</TR>
1407
<TR BGCOLOR="white" CLASS="TableRowColor">
1408
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1409
<CODE>&nbsp;void</CODE></FONT></TD>
1410
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFlashRead(int, byte[], int)">xmegaFlashRead</A></B>(int&nbsp;addr,
1411
               byte[]&nbsp;buf,
1412
               int&nbsp;length)</CODE>
1413
 
1414
<BR>
1415
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from Flash memory of ATxmega.</TD>
1416
</TR>
1417
<TR BGCOLOR="white" CLASS="TableRowColor">
1418
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1419
<CODE>&nbsp;int</CODE></FONT></TD>
1420
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseRead(int)">xmegaFuseRead</A></B>(int&nbsp;addr)</CODE>
1421
 
1422
<BR>
1423
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data one Fuse of ATxmega.</TD>
1424
</TR>
1425
<TR BGCOLOR="white" CLASS="TableRowColor">
1426
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1427
<CODE>&nbsp;void</CODE></FONT></TD>
1428
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseRead(int, byte[], int)">xmegaFuseRead</A></B>(int&nbsp;addr,
1429
              byte[]&nbsp;buf,
1430
              int&nbsp;length)</CODE>
1431
 
1432
<BR>
1433
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from Fuse memory of ATxmega.</TD>
1434
</TR>
1435
<TR BGCOLOR="white" CLASS="TableRowColor">
1436
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1437
<CODE>&nbsp;void</CODE></FONT></TD>
1438
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaFuseWrite(int, int)">xmegaFuseWrite</A></B>(int&nbsp;addr,
1439
               int&nbsp;val)</CODE>
1440
 
1441
<BR>
1442
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one Fuse of the ATxmega.</TD>
1443
</TR>
1444
<TR BGCOLOR="white" CLASS="TableRowColor">
1445
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1446
<CODE>&nbsp;void</CODE></FONT></TD>
1447
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaNvmRead(int, byte[], int)">xmegaNvmRead</A></B>(int&nbsp;addr,
1448
             byte[]&nbsp;buf,
1449
             int&nbsp;length)</CODE>
1450
 
1451
<BR>
1452
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the NVM of ATxmega.</TD>
1453
</TR>
1454
<TR BGCOLOR="white" CLASS="TableRowColor">
1455
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1456
<CODE>&nbsp;void</CODE></FONT></TD>
1457
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaReset()">xmegaReset</A></B>()</CODE>
1458
 
1459
<BR>
1460
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the ATxmega.</TD>
1461
</TR>
1462
<TR BGCOLOR="white" CLASS="TableRowColor">
1463
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1464
<CODE>&nbsp;int</CODE></FONT></TD>
1465
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaState()">xmegaState</A></B>()</CODE>
1466
 
1467
<BR>
1468
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read ATxmega error and status information from the device.</TD>
1469
</TR>
1470
<TR BGCOLOR="white" CLASS="TableRowColor">
1471
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1472
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1473
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaStrError()">xmegaStrError</A></B>()</CODE>
1474
 
1475
<BR>
1476
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last ATxmega error from the device.</TD>
1477
</TR>
1478
<TR BGCOLOR="white" CLASS="TableRowColor">
1479
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1480
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
1481
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#xmegaStrError(int)">xmegaStrError</A></B>(int&nbsp;errNum)</CODE>
1482
 
1483
<BR>
1484
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
1485
</TR>
1486
<TR BGCOLOR="white" CLASS="TableRowColor">
1487
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1488
<CODE>&nbsp;long</CODE></FONT></TD>
1489
<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>
1490
 
1491
<BR>
1492
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads data to the EEPROM memory</TD>
1493
</TR>
1494
<TR BGCOLOR="white" CLASS="TableRowColor">
1495
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
1496
<CODE>&nbsp;long</CODE></FONT></TD>
1497
<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>
1498
 
1499
<BR>
1500
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads firmware to the flash memory</TD>
1501
</TR>
1502
</TABLE>
1503
&nbsp;<A NAME="methods_inherited_from_class_ztex.Ztex1"><!-- --></A>
1504
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1505
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
1506
<TH ALIGN="left"><B>Methods inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
1507
</TR>
1508
<TR BGCOLOR="white" CLASS="TableRowColor">
1509
<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.io.InputStream, java.lang.String, boolean)">uploadFirmware</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>
1510
</TR>
1511
</TABLE>
1512
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
1513
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1514
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
1515
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
1516
</TR>
1517
<TR BGCOLOR="white" CLASS="TableRowColor">
1518
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
1519
</TR>
1520
</TABLE>
1521
&nbsp;
1522
<P>
1523
 
1524
<!-- ============ FIELD DETAIL =========== -->
1525
 
1526
<A NAME="field_detail"><!-- --></A>
1527
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1528
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1529
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1530
<B>Field Detail</B></FONT></TH>
1531
</TR>
1532
</TABLE>
1533
 
1534
<A NAME="CAPABILITY_EEPROM"><!-- --></A><H3>
1535
CAPABILITY_EEPROM</H3>
1536
<PRE>
1537
public static final int <B>CAPABILITY_EEPROM</B></PRE>
1538
<DL>
1539
<DD>Capability index for EEPROM support.
1540
<P>
1541
<DL>
1542
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_EEPROM">Constant Field Values</A></DL>
1543
</DL>
1544
<HR>
1545
 
1546
<A NAME="CAPABILITY_FPGA"><!-- --></A><H3>
1547
CAPABILITY_FPGA</H3>
1548
<PRE>
1549
public static final int <B>CAPABILITY_FPGA</B></PRE>
1550
<DL>
1551
<DD>Capability index for FPGA configuration support.
1552
<P>
1553
<DL>
1554
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FPGA">Constant Field Values</A></DL>
1555
</DL>
1556
<HR>
1557
 
1558
<A NAME="CAPABILITY_FLASH"><!-- --></A><H3>
1559
CAPABILITY_FLASH</H3>
1560
<PRE>
1561
public static final int <B>CAPABILITY_FLASH</B></PRE>
1562
<DL>
1563
<DD>Capability index for FLASH memory support.
1564
<P>
1565
<DL>
1566
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH">Constant Field Values</A></DL>
1567
</DL>
1568
<HR>
1569
 
1570
<A NAME="CAPABILITY_DEBUG"><!-- --></A><H3>
1571
CAPABILITY_DEBUG</H3>
1572
<PRE>
1573
public static final int <B>CAPABILITY_DEBUG</B></PRE>
1574
<DL>
1575
<DD>Capability index for DEBUG helper support.
1576
<P>
1577
<DL>
1578
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG">Constant Field Values</A></DL>
1579
</DL>
1580
<HR>
1581
 
1582
<A NAME="CAPABILITY_XMEGA"><!-- --></A><H3>
1583
CAPABILITY_XMEGA</H3>
1584
<PRE>
1585
public static final int <B>CAPABILITY_XMEGA</B></PRE>
1586
<DL>
1587
<DD>Capability index for AVR XMEGA support.
1588
<P>
1589
<DL>
1590
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_XMEGA">Constant Field Values</A></DL>
1591
</DL>
1592
<HR>
1593
 
1594
<A NAME="CAPABILITY_HS_FPGA"><!-- --></A><H3>
1595
CAPABILITY_HS_FPGA</H3>
1596
<PRE>
1597
public static final int <B>CAPABILITY_HS_FPGA</B></PRE>
1598
<DL>
1599
<DD>Capability index for AVR XMEGA support.
1600
<P>
1601
<DL>
1602
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_HS_FPGA">Constant Field Values</A></DL>
1603
</DL>
1604
<HR>
1605
 
1606
<A NAME="CAPABILITY_MAC_EEPROM"><!-- --></A><H3>
1607
CAPABILITY_MAC_EEPROM</H3>
1608
<PRE>
1609
public static final int <B>CAPABILITY_MAC_EEPROM</B></PRE>
1610
<DL>
1611
<DD>Capability index for AVR XMEGA support.
1612
<P>
1613
<DL>
1614
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MAC_EEPROM">Constant Field Values</A></DL>
1615
</DL>
1616
<HR>
1617
 
1618
<A NAME="CAPABILITY_MULTI_FPGA"><!-- --></A><H3>
1619
CAPABILITY_MULTI_FPGA</H3>
1620
<PRE>
1621
public static final int <B>CAPABILITY_MULTI_FPGA</B></PRE>
1622
<DL>
1623
<DD>Capability index for multi FPGA support
1624
<P>
1625
<DL>
1626
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MULTI_FPGA">Constant Field Values</A></DL>
1627
</DL>
1628
<HR>
1629
 
1630
<A NAME="CAPABILITY_TEMP_SENSOR"><!-- --></A><H3>
1631
CAPABILITY_TEMP_SENSOR</H3>
1632
<PRE>
1633
public static final int <B>CAPABILITY_TEMP_SENSOR</B></PRE>
1634
<DL>
1635
<DD>Capability index for Temperature sensor support
1636
<P>
1637
<DL>
1638
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.CAPABILITY_TEMP_SENSOR">Constant Field Values</A></DL>
1639
</DL>
1640
<HR>
1641
 
1642
<A NAME="capabilityStrings"><!-- --></A><H3>
1643
capabilityStrings</H3>
1644
<PRE>
1645
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
1646
<DL>
1647
<DD>The names of the capabilities
1648
<P>
1649
<DL>
1650
</DL>
1651
</DL>
1652
<HR>
1653
 
1654
<A NAME="enableExtraFpgaConfigurationChecks"><!-- --></A><H3>
1655
enableExtraFpgaConfigurationChecks</H3>
1656
<PRE>
1657
public boolean <B>enableExtraFpgaConfigurationChecks</B></PRE>
1658
<DL>
1659
<DD>Enables extra FPGA configuration checks. Certain Bistream settings may cause false warnings.
1660
<P>
1661
<DL>
1662
</DL>
1663
</DL>
1664
<HR>
1665
 
1666
<A NAME="eepromBytes"><!-- --></A><H3>
1667
eepromBytes</H3>
1668
<PRE>
1669
public int <B>eepromBytes</B></PRE>
1670
<DL>
1671
<DD>Number of bytes written to EEPROM. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
1672
<P>
1673
<DL>
1674
</DL>
1675
</DL>
1676
<HR>
1677
 
1678
<A NAME="eepromChecksum"><!-- --></A><H3>
1679
eepromChecksum</H3>
1680
<PRE>
1681
public int <B>eepromChecksum</B></PRE>
1682
<DL>
1683
<DD>Checksum of the last EEPROM transfer. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
1684
<P>
1685
<DL>
1686
</DL>
1687
</DL>
1688
<HR>
1689
 
1690
<A NAME="flashEC"><!-- --></A><H3>
1691
flashEC</H3>
1692
<PRE>
1693
public int <B>flashEC</B></PRE>
1694
<DL>
1695
<DD>Last Flash error code obtained by <A HREF="../ztex/Ztex1v1.html#flashState()"><CODE>flashState()</CODE></A>. See FLASH_EC_* for possible error codes.
1696
<P>
1697
<DL>
1698
</DL>
1699
</DL>
1700
<HR>
1701
 
1702
<A NAME="FLASH_EC_NO_ERROR"><!-- --></A><H3>
1703
FLASH_EC_NO_ERROR</H3>
1704
<PRE>
1705
public static final int <B>FLASH_EC_NO_ERROR</B></PRE>
1706
<DL>
1707
<DD>Means no error.
1708
<P>
1709
<DL>
1710
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NO_ERROR">Constant Field Values</A></DL>
1711
</DL>
1712
<HR>
1713
 
1714
<A NAME="FLASH_EC_CMD_ERROR"><!-- --></A><H3>
1715
FLASH_EC_CMD_ERROR</H3>
1716
<PRE>
1717
public static final int <B>FLASH_EC_CMD_ERROR</B></PRE>
1718
<DL>
1719
<DD>Signals an error while attempting to execute a command.
1720
<P>
1721
<DL>
1722
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_CMD_ERROR">Constant Field Values</A></DL>
1723
</DL>
1724
<HR>
1725
 
1726
<A NAME="FLASH_EC_TIMEOUT"><!-- --></A><H3>
1727
FLASH_EC_TIMEOUT</H3>
1728
<PRE>
1729
public static final int <B>FLASH_EC_TIMEOUT</B></PRE>
1730
<DL>
1731
<DD>Signals that a timeout occurred.
1732
<P>
1733
<DL>
1734
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_TIMEOUT">Constant Field Values</A></DL>
1735
</DL>
1736
<HR>
1737
 
1738
<A NAME="FLASH_EC_BUSY"><!-- --></A><H3>
1739
FLASH_EC_BUSY</H3>
1740
<PRE>
1741
public static final int <B>FLASH_EC_BUSY</B></PRE>
1742
<DL>
1743
<DD>Signals that Flash memory it busy.
1744
<P>
1745
<DL>
1746
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_BUSY">Constant Field Values</A></DL>
1747
</DL>
1748
<HR>
1749
 
1750
<A NAME="FLASH_EC_PENDING"><!-- --></A><H3>
1751
FLASH_EC_PENDING</H3>
1752
<PRE>
1753
public static final int <B>FLASH_EC_PENDING</B></PRE>
1754
<DL>
1755
<DD>Signals that another Flash operation is pending.
1756
<P>
1757
<DL>
1758
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_PENDING">Constant Field Values</A></DL>
1759
</DL>
1760
<HR>
1761
 
1762
<A NAME="FLASH_EC_READ_ERROR"><!-- --></A><H3>
1763
FLASH_EC_READ_ERROR</H3>
1764
<PRE>
1765
public static final int <B>FLASH_EC_READ_ERROR</B></PRE>
1766
<DL>
1767
<DD>Signals an error while attempting to read from Flash.
1768
<P>
1769
<DL>
1770
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_READ_ERROR">Constant Field Values</A></DL>
1771
</DL>
1772
<HR>
1773
 
1774
<A NAME="FLASH_EC_WRITE_ERROR"><!-- --></A><H3>
1775
FLASH_EC_WRITE_ERROR</H3>
1776
<PRE>
1777
public static final int <B>FLASH_EC_WRITE_ERROR</B></PRE>
1778
<DL>
1779
<DD>Signals an error while attempting to write to Flash.
1780
<P>
1781
<DL>
1782
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
1783
</DL>
1784
<HR>
1785
 
1786
<A NAME="FLASH_EC_NOTSUPPORTED"><!-- --></A><H3>
1787
FLASH_EC_NOTSUPPORTED</H3>
1788
<PRE>
1789
public static final int <B>FLASH_EC_NOTSUPPORTED</B></PRE>
1790
<DL>
1791
<DD>Signals the the installed Flash memory is not supported.
1792
<P>
1793
<DL>
1794
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NOTSUPPORTED">Constant Field Values</A></DL>
1795
</DL>
1796
<HR>
1797
 
1798
<A NAME="debugNewMessages"><!-- --></A><H3>
1799
debugNewMessages</H3>
1800
<PRE>
1801
public int <B>debugNewMessages</B></PRE>
1802
<DL>
1803
<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.
1804
<P>
1805
<DL>
1806
</DL>
1807
</DL>
1808
<HR>
1809
 
1810
<A NAME="xmegaEC"><!-- --></A><H3>
1811
xmegaEC</H3>
1812
<PRE>
1813
public int <B>xmegaEC</B></PRE>
1814
<DL>
1815
<DD>Last ATxmega error code obtained by <A HREF="../ztex/Ztex1v1.html#xmegaState()"><CODE>xmegaState()</CODE></A>. See XMEGA_EC_* for possible error codes.
1816
<P>
1817
<DL>
1818
</DL>
1819
</DL>
1820
<HR>
1821
 
1822
<A NAME="XMEGA_EC_NO_ERROR"><!-- --></A><H3>
1823
XMEGA_EC_NO_ERROR</H3>
1824
<PRE>
1825
public static final int <B>XMEGA_EC_NO_ERROR</B></PRE>
1826
<DL>
1827
<DD>Means no error.
1828
<P>
1829
<DL>
1830
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NO_ERROR">Constant Field Values</A></DL>
1831
</DL>
1832
<HR>
1833
 
1834
<A NAME="XMEGA_EC_PDI_READ_ERROR"><!-- --></A><H3>
1835
XMEGA_EC_PDI_READ_ERROR</H3>
1836
<PRE>
1837
public static final int <B>XMEGA_EC_PDI_READ_ERROR</B></PRE>
1838
<DL>
1839
<DD>Signals a PDI read error.
1840
<P>
1841
<DL>
1842
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_PDI_READ_ERROR">Constant Field Values</A></DL>
1843
</DL>
1844
<HR>
1845
 
1846
<A NAME="XMEGA_EC_NVM_TIMEOUT"><!-- --></A><H3>
1847
XMEGA_EC_NVM_TIMEOUT</H3>
1848
<PRE>
1849
public static final int <B>XMEGA_EC_NVM_TIMEOUT</B></PRE>
1850
<DL>
1851
<DD>Signals that an NVM timeout occurred.
1852
<P>
1853
<DL>
1854
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_TIMEOUT">Constant Field Values</A></DL>
1855
</DL>
1856
<HR>
1857
 
1858
<A NAME="XMEGA_EC_INVALID_DEVICE"><!-- --></A><H3>
1859
XMEGA_EC_INVALID_DEVICE</H3>
1860
<PRE>
1861
public static final int <B>XMEGA_EC_INVALID_DEVICE</B></PRE>
1862
<DL>
1863
<DD>Signals that the ATxmega controller is not supported.
1864
<P>
1865
<DL>
1866
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_INVALID_DEVICE">Constant Field Values</A></DL>
1867
</DL>
1868
<HR>
1869
 
1870
<A NAME="XMEGA_EC_ADDRESS_ERROR"><!-- --></A><H3>
1871
XMEGA_EC_ADDRESS_ERROR</H3>
1872
<PRE>
1873
public static final int <B>XMEGA_EC_ADDRESS_ERROR</B></PRE>
1874
<DL>
1875
<DD>Signals an address error (invalid address or wrong page size).
1876
<P>
1877
<DL>
1878
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_ADDRESS_ERROR">Constant Field Values</A></DL>
1879
</DL>
1880
<HR>
1881
 
1882
<A NAME="XMEGA_EC_NVM_BUSY"><!-- --></A><H3>
1883
XMEGA_EC_NVM_BUSY</H3>
1884
<PRE>
1885
public static final int <B>XMEGA_EC_NVM_BUSY</B></PRE>
1886
<DL>
1887
<DD>Signals that the NVM is busy.
1888
<P>
1889
<DL>
1890
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_BUSY">Constant Field Values</A></DL>
1891
</DL>
1892
<HR>
1893
 
1894
<A NAME="tempSensorUpdateInterval"><!-- --></A><H3>
1895
tempSensorUpdateInterval</H3>
1896
<PRE>
1897
public int <B>tempSensorUpdateInterval</B></PRE>
1898
<DL>
1899
<DD>smallest temperature sensor update interval in ms
1900
<P>
1901
<DL>
1902
</DL>
1903
</DL>
1904
<HR>
1905
 
1906
<A NAME="config"><!-- --></A><H3>
1907
config</H3>
1908
<PRE>
1909
public <A HREF="../ztex/ConfigData.html" title="class in ztex">ConfigData</A> <B>config</B></PRE>
1910
<DL>
1911
<DD>The configuration data structure
1912
 is initialized if this kind of data is present in MAC EEPROM.
1913
 In this case MAC EEPROM writes to addresses 0 to 79 are disabled, see <A HREF="../ztex/Ztex1v1.html#macEepromWrite(int, byte[], int)"><CODE>macEepromWrite(int,byte[],int)</CODE></A>.
1914
 In order to override this behavior set this variable to null.
1915
 If no configuration data is present <A HREF="../ztex/Ztex1v1.html#config"><CODE>config</CODE></A> is null.
1916
<P>
1917
<DL>
1918
</DL>
1919
</DL>
1920
 
1921
<!-- ========= CONSTRUCTOR DETAIL ======== -->
1922
 
1923
<A NAME="constructor_detail"><!-- --></A>
1924
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1925
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1926
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1927
<B>Constructor Detail</B></FONT></TH>
1928
</TR>
1929
</TABLE>
1930
 
1931
<A NAME="Ztex1v1(ztex.ZtexDevice1)"><!-- --></A><H3>
1932
Ztex1v1</H3>
1933
<PRE>
1934
public <B>Ztex1v1</B>(<A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A>&nbsp;pDev)
1935
        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
1936
<DL>
1937
<DD>Constructs an instance from a given device.
1938
<P>
1939
<DL>
1940
<DT><B>Parameters:</B><DD><CODE>pDev</CODE> - The given device.
1941
<DT><B>Throws:</B>
1942
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an communication error occurred.</DL>
1943
</DL>
1944
 
1945
<!-- ============ METHOD DETAIL ========== -->
1946
 
1947
<A NAME="method_detail"><!-- --></A>
1948
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1949
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1950
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
1951
<B>Method Detail</B></FONT></TH>
1952
</TR>
1953
</TABLE>
1954
 
1955
<A NAME="init()"><!-- --></A><H3>
1956
init</H3>
1957
<PRE>
1958
protected void <B>init</B>()
1959
             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
1960
<DL>
1961
<DD>Initializates the class.
1962
<P>
1963
<DD><DL>
1964
<DT><B>Overrides:</B><DD><CODE><A HREF="../ztex/Ztex1.html#init()">init</A></CODE> in class <CODE><A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></CODE></DL>
1965
</DD>
1966
<DD><DL>
1967
 
1968
<DT><B>Throws:</B>
1969
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an communication error occurred.</DL>
1970
</DD>
1971
</DL>
1972
<HR>
1973
 
1974
<A NAME="valid()"><!-- --></A><H3>
1975
valid</H3>
1976
<PRE>
1977
public boolean <B>valid</B>()</PRE>
1978
<DL>
1979
<DD>Returns true if ZTEX interface 1 is available.
1980
<P>
1981
<DD><DL>
1982
<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>
1983
</DD>
1984
<DD><DL>
1985
 
1986
<DT><B>Returns:</B><DD>true if ZTEX interface 1 is available.</DL>
1987
</DD>
1988
</DL>
1989
<HR>
1990
 
1991
<A NAME="valid(int, int)"><!-- --></A><H3>
1992
valid</H3>
1993
<PRE>
1994
public boolean <B>valid</B>(int&nbsp;i,
1995
                     int&nbsp;j)</PRE>
1996
<DL>
1997
<DD>Returns true if ZTEX interface 1 and capability i.j are available.
1998
<P>
1999
<DD><DL>
2000
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
2001
<DT><B>Returns:</B><DD>true if ZTEX interface 1 and capability i.j are available.</DL>
2002
</DD>
2003
</DL>
2004
<HR>
2005
 
2006
<A NAME="compatible(int, int, int, int)"><!-- --></A><H3>
2007
compatible</H3>
2008
<PRE>
2009
public boolean <B>compatible</B>(int&nbsp;productId0,
2010
                          int&nbsp;productId1,
2011
                          int&nbsp;productId2,
2012
                          int&nbsp;productId3)</PRE>
2013
<DL>
2014
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.<br>
2015
 The given product ID is compatible
2016
 <pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) &&
2017
   ( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) &&
2018
   ( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) &&
2019
   ( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre>
2020
<P>
2021
<DD><DL>
2022
<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
2023
<DT><B>Returns:</B><DD>true if the given product ID is compatible and interface 1 is supported.</DL>
2024
</DD>
2025
</DL>
2026
<HR>
2027
 
2028
<A NAME="checkValid()"><!-- --></A><H3>
2029
checkValid</H3>
2030
<PRE>
2031
public void <B>checkValid</B>()
2032
                throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
2033
<DL>
2034
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 is supported.
2035
<P>
2036
<DD><DL>
2037
<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>
2038
</DD>
2039
<DD><DL>
2040
 
2041
<DT><B>Throws:</B>
2042
<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>
2043
</DD>
2044
</DL>
2045
<HR>
2046
 
2047
<A NAME="checkCapability(int, int)"><!-- --></A><H3>
2048
checkCapability</H3>
2049
<PRE>
2050
public void <B>checkCapability</B>(int&nbsp;i,
2051
                            int&nbsp;j)
2052
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2053
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2054
<DL>
2055
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
2056
<P>
2057
<DD><DL>
2058
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
2059
<DT><B>Throws:</B>
2060
<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.
2061
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
2062
</DD>
2063
</DL>
2064
<HR>
2065
 
2066
<A NAME="checkCapability(int)"><!-- --></A><H3>
2067
checkCapability</H3>
2068
<PRE>
2069
public void <B>checkCapability</B>(int&nbsp;i)
2070
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2071
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2072
<DL>
2073
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
2074
<P>
2075
<DD><DL>
2076
<DT><B>Parameters:</B><DD><CODE>i</CODE> - capability index (0..47)
2077
<DT><B>Throws:</B>
2078
<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.
2079
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
2080
</DD>
2081
</DL>
2082
<HR>
2083
 
2084
<A NAME="InterfaceCapabilities(int)"><!-- --></A><H3>
2085
InterfaceCapabilities</H3>
2086
<PRE>
2087
public boolean <B>InterfaceCapabilities</B>(int&nbsp;i)</PRE>
2088
<DL>
2089
<DD>Returns interface capability bit.
2090
<P>
2091
<DD><DL>
2092
<DT><B>Parameters:</B><DD><CODE>i</CODE> - capability index (0..47)
2093
<DT><B>Returns:</B><DD>interface capability bit.</DL>
2094
</DD>
2095
</DL>
2096
<HR>
2097
 
2098
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
2099
checkCompatible</H3>
2100
<PRE>
2101
public void <B>checkCompatible</B>(int&nbsp;productId0,
2102
                            int&nbsp;productId1,
2103
                            int&nbsp;productId2,
2104
                            int&nbsp;productId3)
2105
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
2106
<DL>
2107
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
2108
 See <A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)"><CODE>compatible(int,int,int,int)</CODE></A>.
2109
<P>
2110
<DD><DL>
2111
<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
2112
<DT><B>Throws:</B>
2113
<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>
2114
</DD>
2115
</DL>
2116
<HR>
2117
 
2118
<A NAME="printFpgaState()"><!-- --></A><H3>
2119
printFpgaState</H3>
2120
<PRE>
2121
public void <B>printFpgaState</B>()
2122
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2123
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2124
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2125
<DL>
2126
<DD>Prints out the FPGA state.
2127
<P>
2128
<DD><DL>
2129
 
2130
<DT><B>Throws:</B>
2131
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2132
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2133
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2134
</DD>
2135
</DL>
2136
<HR>
2137
 
2138
<A NAME="getFpgaConfiguration()"><!-- --></A><H3>
2139
getFpgaConfiguration</H3>
2140
<PRE>
2141
public boolean <B>getFpgaConfiguration</B>()
2142
                             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2143
                                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2144
                                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2145
<DL>
2146
<DD>Returns true if the FPGA is configured.
2147
<P>
2148
<DD><DL>
2149
 
2150
<DT><B>Returns:</B><DD>true if the FPGA is configured.
2151
<DT><B>Throws:</B>
2152
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2153
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2154
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2155
</DD>
2156
</DL>
2157
<HR>
2158
 
2159
<A NAME="getFpgaConfigurationStr()"><!-- --></A><H3>
2160
getFpgaConfigurationStr</H3>
2161
<PRE>
2162
public java.lang.String <B>getFpgaConfigurationStr</B>()
2163
                                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2164
                                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2165
                                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2166
<DL>
2167
<DD>Returns a string that indicates the FPGA configuration status.
2168
<P>
2169
<DD><DL>
2170
 
2171
<DT><B>Returns:</B><DD>a string that indicates the FPGA configuration status.
2172
<DT><B>Throws:</B>
2173
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2174
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2175
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2176
</DD>
2177
</DL>
2178
<HR>
2179
 
2180
<A NAME="resetFpga()"><!-- --></A><H3>
2181
resetFpga</H3>
2182
<PRE>
2183
public void <B>resetFpga</B>()
2184
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2185
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2186
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2187
<DL>
2188
<DD>Resets the FPGA.
2189
<P>
2190
<DD><DL>
2191
 
2192
<DT><B>Throws:</B>
2193
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2194
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2195
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2196
</DD>
2197
</DL>
2198
<HR>
2199
 
2200
<A NAME="configureFpgaLS(java.io.InputStream, boolean, int)"><!-- --></A><H3>
2201
configureFpgaLS</H3>
2202
<PRE>
2203
public long <B>configureFpgaLS</B>(java.io.InputStream&nbsp;inputStream,
2204
                            boolean&nbsp;force,
2205
                            int&nbsp;bs)
2206
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2207
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2208
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
2209
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</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>Upload a Bitstream to the FPGA using low speed mode.
2214
<P>
2215
<DD><DL>
2216
<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - for reading the Bitstream.<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.
2217
<DT><B>Throws:</B>
2218
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
2219
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
2220
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
2221
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2222
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2223
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2224
</DD>
2225
</DL>
2226
<HR>
2227
 
2228
<A NAME="configureFpgaLS(java.lang.String, boolean, int)"><!-- --></A><H3>
2229
configureFpgaLS</H3>
2230
<PRE>
2231
public long <B>configureFpgaLS</B>(java.lang.String&nbsp;fwFileName,
2232
                            boolean&nbsp;force,
2233
                            int&nbsp;bs)
2234
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2235
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2236
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
2237
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
2238
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2239
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2240
<DL>
2241
<DD>Upload a Bitstream to the FPGA using low speed mode.
2242
<P>
2243
<DD><DL>
2244
<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.
2245
<DT><B>Throws:</B>
2246
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
2247
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
2248
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
2249
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2250
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2251
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
2252
</DD>
2253
</DL>
2254
<HR>
2255
 
2256
<A NAME="eepromState()"><!-- --></A><H3>
2257
eepromState</H3>
2258
<PRE>
2259
public boolean <B>eepromState</B>()
2260
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2261
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2262
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2263
<DL>
2264
<DD>Reads the current EEPROM status.
2265
 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>.
2266
<P>
2267
<DD><DL>
2268
 
2269
<DT><B>Returns:</B><DD>true if EEPROM is ready.
2270
<DT><B>Throws:</B>
2271
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2272
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2273
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2274
</DD>
2275
</DL>
2276
<HR>
2277
 
2278
<A NAME="eepromWrite(int, byte[], int)"><!-- --></A><H3>
2279
eepromWrite</H3>
2280
<PRE>
2281
public void <B>eepromWrite</B>(int&nbsp;addr,
2282
                        byte[]&nbsp;buf,
2283
                        int&nbsp;length)
2284
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2285
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2286
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2287
<DL>
2288
<DD>Writes data to the EEPROM.
2289
<P>
2290
<DD><DL>
2291
<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.
2292
<DT><B>Throws:</B>
2293
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2294
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2295
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2296
</DD>
2297
</DL>
2298
<HR>
2299
 
2300
<A NAME="eepromRead(int, byte[], int)"><!-- --></A><H3>
2301
eepromRead</H3>
2302
<PRE>
2303
public void <B>eepromRead</B>(int&nbsp;addr,
2304
                       byte[]&nbsp;buf,
2305
                       int&nbsp;length)
2306
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2307
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2308
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2309
<DL>
2310
<DD>Reads data from the EEPROM.
2311
<P>
2312
<DD><DL>
2313
<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.
2314
<DT><B>Throws:</B>
2315
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2316
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2317
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
2318
</DD>
2319
</DL>
2320
<HR>
2321
 
2322
<A NAME="eepromUpload(ztex.ZtexIhxFile1, boolean)"><!-- --></A><H3>
2323
eepromUpload</H3>
2324
<PRE>
2325
public long <B>eepromUpload</B>(<A HREF="../ztex/ZtexIhxFile1.html" title="class in ztex">ZtexIhxFile1</A>&nbsp;ihxFile,
2326
                         boolean&nbsp;force)
2327
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
2328
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2329
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2330
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2331
<DL>
2332
<DD>Upload the firmware to the EEPROM.
2333
 In order to start the uploaded firmware the device must be reset.
2334
<P>
2335
<DD><DL>
2336
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware image.<DD><CODE>force</CODE> - Skips the compatibility check if true.
2337
<DT><B>Throws:</B>
2338
<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.)
2339
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2340
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2341
<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>
2342
</DD>
2343
</DL>
2344
<HR>
2345
 
2346
<A NAME="eepromUpload(java.lang.String, boolean)"><!-- --></A><H3>
2347
eepromUpload</H3>
2348
<PRE>
2349
public long <B>eepromUpload</B>(java.lang.String&nbsp;ihxFileName,
2350
                         boolean&nbsp;force)
2351
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
2352
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2353
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2354
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2355
<DL>
2356
<DD>Upload the firmware to the EEPROM.
2357
 In order to start the uploaded firmware the device must be reset.
2358
<P>
2359
<DD><DL>
2360
<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.
2361
<DT><B>Throws:</B>
2362
<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.)
2363
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2364
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2365
<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>
2366
</DD>
2367
</DL>
2368
<HR>
2369
 
2370
<A NAME="eepromDisable()"><!-- --></A><H3>
2371
eepromDisable</H3>
2372
<PRE>
2373
public void <B>eepromDisable</B>()
2374
                   throws <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
2375
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2376
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2377
<DL>
2378
<DD>Disables the firmware stored in the EEPROM.
2379
 This is achived by writing a "0" to the address 0 of the EEPROM.
2380
<P>
2381
<DD><DL>
2382
 
2383
<DT><B>Throws:</B>
2384
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2385
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
2386
<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>
2387
</DD>
2388
</DL>
2389
<HR>
2390
 
2391
<A NAME="flashStrError(int)"><!-- --></A><H3>
2392
flashStrError</H3>
2393
<PRE>
2394
public static java.lang.String <B>flashStrError</B>(int&nbsp;errNum)</PRE>
2395
<DL>
2396
<DD>Converts a given error code into a String.
2397
<P>
2398
<DD><DL>
2399
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
2400
<DT><B>Returns:</B><DD>an error message.</DL>
2401
</DD>
2402
</DL>
2403
<HR>
2404
 
2405
<A NAME="flashStrError()"><!-- --></A><H3>
2406
flashStrError</H3>
2407
<PRE>
2408
public java.lang.String <B>flashStrError</B>()</PRE>
2409
<DL>
2410
<DD>Gets the last Flash error from the device.
2411
<P>
2412
<DD><DL>
2413
 
2414
<DT><B>Returns:</B><DD>an error message.</DL>
2415
</DD>
2416
</DL>
2417
<HR>
2418
 
2419
<A NAME="flashState()"><!-- --></A><H3>
2420
flashState</H3>
2421
<PRE>
2422
public boolean <B>flashState</B>()
2423
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2424
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2425
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2426
<DL>
2427
<DD>Reads the the Flash memory status and information.
2428
 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>.
2429
<P>
2430
<DD><DL>
2431
 
2432
<DT><B>Returns:</B><DD>true if Flash memory is installed.
2433
<DT><B>Throws:</B>
2434
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2435
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2436
<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>
2437
</DD>
2438
</DL>
2439
<HR>
2440
 
2441
<A NAME="getFlashEC()"><!-- --></A><H3>
2442
getFlashEC</H3>
2443
<PRE>
2444
public int <B>getFlashEC</B>()
2445
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2446
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2447
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2448
<DL>
2449
<DD>Gets the last Flash error from the device.
2450
<P>
2451
<DD><DL>
2452
 
2453
<DT><B>Returns:</B><DD>The last error code.
2454
<DT><B>Throws:</B>
2455
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2456
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2457
<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>
2458
</DD>
2459
</DL>
2460
<HR>
2461
 
2462
<A NAME="flashReadSector(int, int, byte[])"><!-- --></A><H3>
2463
flashReadSector</H3>
2464
<PRE>
2465
public void <B>flashReadSector</B>(int&nbsp;sector,
2466
                            int&nbsp;num,
2467
                            byte[]&nbsp;buf)
2468
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2469
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2470
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2471
                            java.lang.IndexOutOfBoundsException</PRE>
2472
<DL>
2473
<DD>Reads a integer number of sectors from the Flash.
2474
<P>
2475
<DD><DL>
2476
<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.
2477
<DT><B>Throws:</B>
2478
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2479
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2480
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2481
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is to small.</DL>
2482
</DD>
2483
</DL>
2484
<HR>
2485
 
2486
<A NAME="flashReadSector(int, byte[])"><!-- --></A><H3>
2487
flashReadSector</H3>
2488
<PRE>
2489
public void <B>flashReadSector</B>(int&nbsp;sector,
2490
                            byte[]&nbsp;buf)
2491
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2492
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2493
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2494
                            java.lang.IndexOutOfBoundsException</PRE>
2495
<DL>
2496
<DD>Reads one sector from the Flash.
2497
<P>
2498
<DD><DL>
2499
<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.
2500
<DT><B>Throws:</B>
2501
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2502
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2503
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2504
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash sector size.</DL>
2505
</DD>
2506
</DL>
2507
<HR>
2508
 
2509
<A NAME="flashWriteSector(int, int, byte[])"><!-- --></A><H3>
2510
flashWriteSector</H3>
2511
<PRE>
2512
public void <B>flashWriteSector</B>(int&nbsp;sector,
2513
                             int&nbsp;num,
2514
                             byte[]&nbsp;buf)
2515
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2516
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2517
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2518
                             java.lang.IndexOutOfBoundsException</PRE>
2519
<DL>
2520
<DD>Writes a integer number of sectors to the Flash.
2521
<P>
2522
<DD><DL>
2523
<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.
2524
<DT><B>Throws:</B>
2525
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2526
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2527
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2528
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is to small.</DL>
2529
</DD>
2530
</DL>
2531
<HR>
2532
 
2533
<A NAME="flashWriteSector(int, byte[])"><!-- --></A><H3>
2534
flashWriteSector</H3>
2535
<PRE>
2536
public void <B>flashWriteSector</B>(int&nbsp;sector,
2537
                             byte[]&nbsp;buf)
2538
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2539
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2540
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
2541
                             java.lang.IndexOutOfBoundsException</PRE>
2542
<DL>
2543
<DD>Writes one sector to the Flash.
2544
<P>
2545
<DD><DL>
2546
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be written.<DD><CODE>buf</CODE> - The data.
2547
<DT><B>Throws:</B>
2548
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2549
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2550
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2551
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash sector size.</DL>
2552
</DD>
2553
</DL>
2554
<HR>
2555
 
2556
<A NAME="flashEnabled()"><!-- --></A><H3>
2557
flashEnabled</H3>
2558
<PRE>
2559
public boolean <B>flashEnabled</B>()
2560
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2561
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2562
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2563
<DL>
2564
<DD>Returns true if Flash memory is installed.
2565
<P>
2566
<DD><DL>
2567
 
2568
<DT><B>Returns:</B><DD>true if Flash memory is installed.
2569
<DT><B>Throws:</B>
2570
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2571
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2572
<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>
2573
</DD>
2574
</DL>
2575
<HR>
2576
 
2577
<A NAME="flashSectorSize()"><!-- --></A><H3>
2578
flashSectorSize</H3>
2579
<PRE>
2580
public int <B>flashSectorSize</B>()
2581
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2582
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2583
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2584
<DL>
2585
<DD>Returns the sector size of the Flash memory or 0, if no flash memory is installed.
2586
 If required, the sector size is determined form the device first.
2587
<P>
2588
<DD><DL>
2589
 
2590
<DT><B>Returns:</B><DD>the sector size of the Flash memory.
2591
<DT><B>Throws:</B>
2592
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2593
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2594
<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>
2595
</DD>
2596
</DL>
2597
<HR>
2598
 
2599
<A NAME="flashSectors()"><!-- --></A><H3>
2600
flashSectors</H3>
2601
<PRE>
2602
public int <B>flashSectors</B>()
2603
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2604
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2605
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2606
<DL>
2607
<DD>Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
2608
 If required, the number of sectors is determined form the device first.
2609
<P>
2610
<DD><DL>
2611
 
2612
<DT><B>Returns:</B><DD>the number of sectors of the Flash memory.
2613
<DT><B>Throws:</B>
2614
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2615
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2616
<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>
2617
</DD>
2618
</DL>
2619
<HR>
2620
 
2621
<A NAME="flashSize()"><!-- --></A><H3>
2622
flashSize</H3>
2623
<PRE>
2624
public long <B>flashSize</B>()
2625
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2626
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2627
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2628
<DL>
2629
<DD>Returns the size of Flash memory or 0, if no Flash memory is installed.
2630
 If required, the Flash size is determined form the device first.
2631
<P>
2632
<DD><DL>
2633
 
2634
<DT><B>Returns:</B><DD>the size of Flash memory.
2635
<DT><B>Throws:</B>
2636
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2637
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2638
<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>
2639
</DD>
2640
</DL>
2641
<HR>
2642
 
2643
<A NAME="printMmcState()"><!-- --></A><H3>
2644
printMmcState</H3>
2645
<PRE>
2646
public boolean <B>printMmcState</B>()
2647
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2648
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2649
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2650
<DL>
2651
<DD>Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
2652
 <b>Only use this method if such kind of Flash is installed.</b>
2653
<P>
2654
<DD><DL>
2655
 
2656
<DT><B>Throws:</B>
2657
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2658
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2659
<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>
2660
</DD>
2661
</DL>
2662
<HR>
2663
 
2664
<A NAME="flashUploadBitstream(java.io.InputStream, int)"><!-- --></A><H3>
2665
flashUploadBitstream</H3>
2666
<PRE>
2667
public long <B>flashUploadBitstream</B>(java.io.InputStream&nbsp;inputStream,
2668
                                 int&nbsp;bs)
2669
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2670
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2671
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2672
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2673
<DL>
2674
<DD>Uploads a Bitstream to the Flash.
2675
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
2676
 it is possible to construct fully autonomous devices.
2677
 <p>
2678
 If configuration data is present information about bitstream are stored there and Bitstream starts
2679
 at sector 0.
2680
 <p>
2681
 On all other devices the information about the bitstream is stored in sector 0.
2682
 This so called boot sector has the following format:
2683
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
2684
   <tr>
2685
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
2686
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
2687
   </tr>
2688
   <tr>
2689
     <td bgcolor="#ffffff" valign="top">0..7</td>
2690
     <td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
2691
   </tr>
2692
   <tr>
2693
     <td bgcolor="#ffffff" valign="top">8..9</td>
2694
     <td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
2695
   </tr>
2696
   <tr>
2697
     <td bgcolor="#ffffff" valign="top">10..11</td>
2698
     <td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
2699
   </tr>
2700
   <tr>
2701
     <td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
2702
     <td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
2703
   </tr>
2704
 </table>
2705
 <p>
2706
 The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
2707
 where bs[i] denotes byte i of the boot sector.
2708
 <p>
2709
 The first sector of the Bitstream is sector 1.
2710
<P>
2711
<DD><DL>
2712
<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - for reading the Bitstream.<DD><CODE>bs</CODE> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.
2713
<DT><B>Throws:</B>
2714
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2715
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2716
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2717
<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>
2718
</DD>
2719
</DL>
2720
<HR>
2721
 
2722
<A NAME="flashUploadBitstream(java.lang.String, int)"><!-- --></A><H3>
2723
flashUploadBitstream</H3>
2724
<PRE>
2725
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName,
2726
                                 int&nbsp;bs)
2727
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2728
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2729
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2730
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2731
<DL>
2732
<DD>Uploads a Bitstream to the Flash.
2733
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
2734
 it is possible to construct fully autonomous devices.
2735
 See <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream, int)"><CODE>flashUploadBitstream(InputStream,int)</CODE></A> for further details.
2736
<P>
2737
<DD><DL>
2738
<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.
2739
<DT><B>Throws:</B>
2740
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2741
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2742
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2743
<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>
2744
</DD>
2745
</DL>
2746
<HR>
2747
 
2748
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
2749
flashUploadBitstream</H3>
2750
<PRE>
2751
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
2752
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
2753
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2754
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2755
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2756
<DL>
2757
<DD>Uploads a Bitstream to the Flash.
2758
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
2759
 it is possible to construct fully autonomous devices.
2760
 See <A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream, int)"><CODE>flashUploadBitstream(InputStream,int)</CODE></A> for further details.
2761
<P>
2762
<DD><DL>
2763
<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).
2764
<DT><B>Throws:</B>
2765
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2766
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2767
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
2768
<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>
2769
</DD>
2770
</DL>
2771
<HR>
2772
 
2773
<A NAME="flashResetBitstream()"><!-- --></A><H3>
2774
flashResetBitstream</H3>
2775
<PRE>
2776
public void <B>flashResetBitstream</B>()
2777
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2778
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2779
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2780
<DL>
2781
<DD>Clears a Bitstream from the Flash.
2782
 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>.
2783
 If no boot sector is installed the method returns without any write action.
2784
<P>
2785
<DD><DL>
2786
 
2787
<DT><B>Throws:</B>
2788
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2789
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2790
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2791
</DD>
2792
</DL>
2793
<HR>
2794
 
2795
<A NAME="flashFirstFreeSector()"><!-- --></A><H3>
2796
flashFirstFreeSector</H3>
2797
<PRE>
2798
public int <B>flashFirstFreeSector</B>()
2799
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2800
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2801
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2802
<DL>
2803
<DD>Returns the first free sector of the Flash memory.
2804
 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).
2805
<P>
2806
<DD><DL>
2807
 
2808
<DT><B>Returns:</B><DD>the first free sector of the Flash memory.
2809
<DT><B>Throws:</B>
2810
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2811
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2812
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2813
</DD>
2814
</DL>
2815
<HR>
2816
 
2817
<A NAME="flashInfo()"><!-- --></A><H3>
2818
flashInfo</H3>
2819
<PRE>
2820
public java.lang.String <B>flashInfo</B>()</PRE>
2821
<DL>
2822
<DD>Returns information about Flash memory.
2823
 The result contains the size and how much of the Flash is us used / reserved for / by the Bitstream.
2824
 If no Flash memeory is suppported an empty string is returned.
2825
 Returns Information about Flash memory.
2826
<P>
2827
<DD><DL>
2828
</DL>
2829
</DD>
2830
</DL>
2831
<HR>
2832
 
2833
<A NAME="debugStackSize()"><!-- --></A><H3>
2834
debugStackSize</H3>
2835
<PRE>
2836
public int <B>debugStackSize</B>()
2837
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2838
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2839
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2840
<DL>
2841
<DD>Returns the size of message stack in messages.
2842
<P>
2843
<DD><DL>
2844
 
2845
<DT><B>Returns:</B><DD>the size of message stack in messages.
2846
<DT><B>Throws:</B>
2847
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2848
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2849
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2850
</DD>
2851
</DL>
2852
<HR>
2853
 
2854
<A NAME="debugMsgSize()"><!-- --></A><H3>
2855
debugMsgSize</H3>
2856
<PRE>
2857
public int <B>debugMsgSize</B>()
2858
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2859
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2860
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2861
<DL>
2862
<DD>Returns the size of messages in bytes.
2863
<P>
2864
<DD><DL>
2865
 
2866
<DT><B>Returns:</B><DD>the size of messages in bytes.
2867
<DT><B>Throws:</B>
2868
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2869
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2870
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2871
</DD>
2872
</DL>
2873
<HR>
2874
 
2875
<A NAME="debugLastMsg()"><!-- --></A><H3>
2876
debugLastMsg</H3>
2877
<PRE>
2878
public final int <B>debugLastMsg</B>()</PRE>
2879
<DL>
2880
<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>
2881
<P>
2882
<DD><DL>
2883
 
2884
<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>
2885
</DD>
2886
</DL>
2887
<HR>
2888
 
2889
<A NAME="debugReadMessages(boolean, byte[])"><!-- --></A><H3>
2890
debugReadMessages</H3>
2891
<PRE>
2892
public int <B>debugReadMessages</B>(boolean&nbsp;all,
2893
                             byte[]&nbsp;buf)
2894
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2895
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2896
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2897
<DL>
2898
<DD>Reads debug messages from message stack.
2899
 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>.
2900
 The number of the latest message is returned by <A HREF="../ztex/Ztex1v1.html#debugLastMsg()"><CODE>debugLastMsg()</CODE></A>.
2901
<P>
2902
<DD><DL>
2903
<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.
2904
<DT><B>Returns:</B><DD>the size of messages stored in buffer.
2905
<DT><B>Throws:</B>
2906
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2907
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2908
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
2909
</DD>
2910
</DL>
2911
<HR>
2912
 
2913
<A NAME="xmegaStrError(int)"><!-- --></A><H3>
2914
xmegaStrError</H3>
2915
<PRE>
2916
public java.lang.String <B>xmegaStrError</B>(int&nbsp;errNum)</PRE>
2917
<DL>
2918
<DD>Converts a given error code into a String.
2919
<P>
2920
<DD><DL>
2921
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
2922
<DT><B>Returns:</B><DD>an error message.</DL>
2923
</DD>
2924
</DL>
2925
<HR>
2926
 
2927
<A NAME="xmegaStrError()"><!-- --></A><H3>
2928
xmegaStrError</H3>
2929
<PRE>
2930
public java.lang.String <B>xmegaStrError</B>()</PRE>
2931
<DL>
2932
<DD>Gets the last ATxmega error from the device.
2933
<P>
2934
<DD><DL>
2935
 
2936
<DT><B>Returns:</B><DD>an error message.</DL>
2937
</DD>
2938
</DL>
2939
<HR>
2940
 
2941
<A NAME="xmegaState()"><!-- --></A><H3>
2942
xmegaState</H3>
2943
<PRE>
2944
public int <B>xmegaState</B>()
2945
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2946
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2947
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2948
<DL>
2949
<DD>Read ATxmega error and status information from the device.
2950
<P>
2951
<DD><DL>
2952
 
2953
<DT><B>Returns:</B><DD>The last error code.
2954
<DT><B>Throws:</B>
2955
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2956
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2957
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2958
</DD>
2959
</DL>
2960
<HR>
2961
 
2962
<A NAME="xmegaEnabled()"><!-- --></A><H3>
2963
xmegaEnabled</H3>
2964
<PRE>
2965
public boolean <B>xmegaEnabled</B>()
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>Returns true if ATxmega controller is available.
2971
<P>
2972
<DD><DL>
2973
 
2974
<DT><B>Returns:</B><DD>true if ATxmega controller is available.
2975
<DT><B>Throws:</B>
2976
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
2977
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
2978
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
2979
</DD>
2980
</DL>
2981
<HR>
2982
 
2983
<A NAME="xmegaFlashPages()"><!-- --></A><H3>
2984
xmegaFlashPages</H3>
2985
<PRE>
2986
public int <B>xmegaFlashPages</B>()
2987
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
2988
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
2989
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
2990
<DL>
2991
<DD>Returns the number of the ATxmega Flash pages.
2992
<P>
2993
<DD><DL>
2994
 
2995
<DT><B>Returns:</B><DD>The number of the ATxmega Flash pages.
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 ATxmega controllers are not supported by the firmware.</DL>
3000
</DD>
3001
</DL>
3002
<HR>
3003
 
3004
<A NAME="xmegaEepromPages()"><!-- --></A><H3>
3005
xmegaEepromPages</H3>
3006
<PRE>
3007
public int <B>xmegaEepromPages</B>()
3008
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3009
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3010
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3011
<DL>
3012
<DD>Returns the number of the ATxmega EEPROM pages.
3013
<P>
3014
<DD><DL>
3015
 
3016
<DT><B>Returns:</B><DD>The number of the ATxmega EEPROM pages.
3017
<DT><B>Throws:</B>
3018
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3019
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3020
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
3021
</DD>
3022
</DL>
3023
<HR>
3024
 
3025
<A NAME="xmegaFlashPageSize()"><!-- --></A><H3>
3026
xmegaFlashPageSize</H3>
3027
<PRE>
3028
public int <B>xmegaFlashPageSize</B>()
3029
                       throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3030
                              <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3031
                              <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3032
<DL>
3033
<DD>Returns the size of the ATxmega Flash pages.
3034
<P>
3035
<DD><DL>
3036
 
3037
<DT><B>Returns:</B><DD>The size of the ATxmega Flash pages.
3038
<DT><B>Throws:</B>
3039
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3040
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3041
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATxmega controllers are not supported by the firmware.</DL>
3042
</DD>
3043
</DL>
3044
<HR>
3045
 
3046
<A NAME="xmegaEepromPageSize()"><!-- --></A><H3>
3047
xmegaEepromPageSize</H3>
3048
<PRE>
3049
public int <B>xmegaEepromPageSize</B>()
3050
                        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3051
                               <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3052
                               <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3053
<DL>
3054
<DD>Returns the size of the ATXmega EEPROM pages.
3055
<P>
3056
<DD><DL>
3057
 
3058
<DT><B>Returns:</B><DD>The size of the ATXmega EEPROM pages.
3059
<DT><B>Throws:</B>
3060
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3061
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3062
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if ATXmega controllers are not supported by the firmware.</DL>
3063
</DD>
3064
</DL>
3065
<HR>
3066
 
3067
<A NAME="xmegaReset()"><!-- --></A><H3>
3068
xmegaReset</H3>
3069
<PRE>
3070
public void <B>xmegaReset</B>()
3071
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3072
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3073
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3074
<DL>
3075
<DD>Resets the ATxmega.
3076
<P>
3077
<DD><DL>
3078
 
3079
<DT><B>Throws:</B>
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 NVRAM access to ATxmega is not supported by the firmware.</DL>
3083
</DD>
3084
</DL>
3085
<HR>
3086
 
3087
<A NAME="xmegaNvmRead(int, byte[], int)"><!-- --></A><H3>
3088
xmegaNvmRead</H3>
3089
<PRE>
3090
public void <B>xmegaNvmRead</B>(int&nbsp;addr,
3091
                         byte[]&nbsp;buf,
3092
                         int&nbsp;length)
3093
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3094
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3095
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3096
<DL>
3097
<DD>Reads data from the NVM of ATxmega.
3098
<P>
3099
<DD><DL>
3100
<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.
3101
<DT><B>Throws:</B>
3102
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3103
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3104
<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>
3105
</DD>
3106
</DL>
3107
<HR>
3108
 
3109
<A NAME="xmegaFlashRead(int, byte[], int)"><!-- --></A><H3>
3110
xmegaFlashRead</H3>
3111
<PRE>
3112
public void <B>xmegaFlashRead</B>(int&nbsp;addr,
3113
                           byte[]&nbsp;buf,
3114
                           int&nbsp;length)
3115
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3116
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3117
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3118
<DL>
3119
<DD>Reads data from Flash memory of ATxmega.
3120
<P>
3121
<DD><DL>
3122
<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.
3123
<DT><B>Throws:</B>
3124
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3125
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
3126
<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>
3127
</DD>
3128
</DL>
3129
<HR>
3130
 
3131
<A NAME="xmegaEepromRead(int, byte[], int)"><!-- --></A><H3>
3132
xmegaEepromRead</H3>
3133
<PRE>
3134
public void <B>xmegaEepromRead</B>(int&nbsp;addr,
3135
                            byte[]&nbsp;buf,
3136
                            int&nbsp;length)
3137
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3138
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3139
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3140
<DL>
3141
<DD>Reads data from EEPROM memory of ATxmega.
3142
<P>
3143
<DD><DL>
3144
<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.
3145
<DT><B>Throws:</B>
3146
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3147
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
3148
<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>
3149
</DD>
3150
</DL>
3151
<HR>
3152
 
3153
<A NAME="xmegaFuseRead(int, byte[], int)"><!-- --></A><H3>
3154
xmegaFuseRead</H3>
3155
<PRE>
3156
public void <B>xmegaFuseRead</B>(int&nbsp;addr,
3157
                          byte[]&nbsp;buf,
3158
                          int&nbsp;length)
3159
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3160
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3161
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3162
<DL>
3163
<DD>Reads data from Fuse memory of ATxmega.
3164
<P>
3165
<DD><DL>
3166
<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.
3167
<DT><B>Throws:</B>
3168
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3169
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
3170
<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>
3171
</DD>
3172
</DL>
3173
<HR>
3174
 
3175
<A NAME="xmegaFuseRead(int)"><!-- --></A><H3>
3176
xmegaFuseRead</H3>
3177
<PRE>
3178
public int <B>xmegaFuseRead</B>(int&nbsp;addr)
3179
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3180
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3181
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3182
<DL>
3183
<DD>Reads data one Fuse of ATxmega.
3184
<P>
3185
<DD><DL>
3186
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The index of th Fuse.
3187
<DT><B>Returns:</B><DD>The Fuse read.
3188
<DT><B>Throws:</B>
3189
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3190
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
3191
<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>
3192
</DD>
3193
</DL>
3194
<HR>
3195
 
3196
<A NAME="xmegaFlashPageWrite(int, byte[])"><!-- --></A><H3>
3197
xmegaFlashPageWrite</H3>
3198
<PRE>
3199
public void <B>xmegaFlashPageWrite</B>(int&nbsp;addr,
3200
                                byte[]&nbsp;buf)
3201
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3202
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3203
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3204
                                java.lang.IndexOutOfBoundsException</PRE>
3205
<DL>
3206
<DD>Writes data to Flash memory of ATxmega.
3207
<P>
3208
<DD><DL>
3209
<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.
3210
<DT><B>Throws:</B>
3211
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3212
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3213
<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.
3214
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the Flash page size.</DL>
3215
</DD>
3216
</DL>
3217
<HR>
3218
 
3219
<A NAME="xmegaEepromPageWrite(int, byte[])"><!-- --></A><H3>
3220
xmegaEepromPageWrite</H3>
3221
<PRE>
3222
public void <B>xmegaEepromPageWrite</B>(int&nbsp;addr,
3223
                                 byte[]&nbsp;buf)
3224
                          throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3225
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3226
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3227
                                 java.lang.IndexOutOfBoundsException</PRE>
3228
<DL>
3229
<DD>Writes data to EEPROM memory of ATxmega.
3230
<P>
3231
<DD><DL>
3232
<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.
3233
<DT><B>Throws:</B>
3234
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3235
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3236
<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.
3237
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than the EEPROM page size.</DL>
3238
</DD>
3239
</DL>
3240
<HR>
3241
 
3242
<A NAME="xmegaFuseWrite(int, int)"><!-- --></A><H3>
3243
xmegaFuseWrite</H3>
3244
<PRE>
3245
public void <B>xmegaFuseWrite</B>(int&nbsp;addr,
3246
                           int&nbsp;val)
3247
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3248
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3249
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3250
<DL>
3251
<DD>Writes one Fuse of the ATxmega.
3252
<P>
3253
<DD><DL>
3254
<DT><B>Parameters:</B><DD><CODE>addr</CODE> - The index of th Fuse.<DD><CODE>val</CODE> - The value of th Fuse.
3255
<DT><B>Throws:</B>
3256
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3257
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3258
<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>
3259
</DD>
3260
</DL>
3261
<HR>
3262
 
3263
<A NAME="xmegaWriteFirmware(ztex.IhxFile)"><!-- --></A><H3>
3264
xmegaWriteFirmware</H3>
3265
<PRE>
3266
public long <B>xmegaWriteFirmware</B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)
3267
                        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3268
                               <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3269
                               <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3270
                               <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></PRE>
3271
<DL>
3272
<DD>Uploads firmware to the flash memory
3273
<P>
3274
<DD><DL>
3275
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware / data image.
3276
<DT><B>Returns:</B><DD>the upload time in ms.
3277
<DT><B>Throws:</B>
3278
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3279
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3280
<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.
3281
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if the verification fails.</DL>
3282
</DD>
3283
</DL>
3284
<HR>
3285
 
3286
<A NAME="xmegaWriteEeprom(ztex.IhxFile)"><!-- --></A><H3>
3287
xmegaWriteEeprom</H3>
3288
<PRE>
3289
public long <B>xmegaWriteEeprom</B>(<A HREF="../ztex/IhxFile.html" title="class in ztex">IhxFile</A>&nbsp;ihxFile)
3290
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3291
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3292
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3293
                             <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></PRE>
3294
<DL>
3295
<DD>Uploads data to the EEPROM memory
3296
<P>
3297
<DD><DL>
3298
<DT><B>Parameters:</B><DD><CODE>ihxFile</CODE> - The firmware / data image.
3299
<DT><B>Returns:</B><DD>the upload time in ms.
3300
<DT><B>Throws:</B>
3301
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3302
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3303
<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.
3304
<DD><CODE><A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A></CODE> - if the verification fails.</DL>
3305
</DD>
3306
</DL>
3307
<HR>
3308
 
3309
<A NAME="toString()"><!-- --></A><H3>
3310
toString</H3>
3311
<PRE>
3312
public java.lang.String <B>toString</B>()</PRE>
3313
<DL>
3314
<DD>Returns a lot of useful information about the corresponding device.
3315
<P>
3316
<DD><DL>
3317
<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>
3318
</DD>
3319
<DD><DL>
3320
 
3321
<DT><B>Returns:</B><DD>a lot of useful information about the corresponding device.</DL>
3322
</DD>
3323
</DL>
3324
<HR>
3325
 
3326
<A NAME="capabilityInfo(java.lang.String)"><!-- --></A><H3>
3327
capabilityInfo</H3>
3328
<PRE>
3329
public java.lang.String <B>capabilityInfo</B>(java.lang.String&nbsp;pf)</PRE>
3330
<DL>
3331
<DD>Creates a String with capability information.
3332
<P>
3333
<DD><DL>
3334
<DT><B>Parameters:</B><DD><CODE>pf</CODE> - A separator between the single capabilities, e.g. ", "
3335
<DT><B>Returns:</B><DD>a string of the supported capabilities.</DL>
3336
</DD>
3337
</DL>
3338
<HR>
3339
 
3340
<A NAME="configureFpgaHS(java.io.InputStream, boolean, int)"><!-- --></A><H3>
3341
configureFpgaHS</H3>
3342
<PRE>
3343
public long <B>configureFpgaHS</B>(java.io.InputStream&nbsp;inputStream,
3344
                            boolean&nbsp;force,
3345
                            int&nbsp;bs)
3346
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3347
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3348
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3349
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3350
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3351
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3352
<DL>
3353
<DD>Upload a Bitstream to the FPGA using high speed mode.
3354
<P>
3355
<DD><DL>
3356
<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - for reading the Bitstream.<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.
3357
<DT><B>Throws:</B>
3358
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3359
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3360
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3361
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3362
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3363
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3364
</DD>
3365
</DL>
3366
<HR>
3367
 
3368
<A NAME="configureFpgaHS(java.lang.String, boolean, int)"><!-- --></A><H3>
3369
configureFpgaHS</H3>
3370
<PRE>
3371
public long <B>configureFpgaHS</B>(java.lang.String&nbsp;fwFileName,
3372
                            boolean&nbsp;force,
3373
                            int&nbsp;bs)
3374
                     throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3375
                            <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3376
                            <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3377
                            <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3378
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3379
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3380
<DL>
3381
<DD>Upload a Bitstream to the FPGA using high speed mode.
3382
<P>
3383
<DD><DL>
3384
<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.
3385
<DT><B>Throws:</B>
3386
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3387
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3388
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3389
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3390
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3391
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3392
</DD>
3393
</DL>
3394
<HR>
3395
 
3396
<A NAME="configureFpga(java.io.InputStream, boolean, int)"><!-- --></A><H3>
3397
configureFpga</H3>
3398
<PRE>
3399
public long <B>configureFpga</B>(java.io.InputStream&nbsp;inputStream,
3400
                          boolean&nbsp;force,
3401
                          int&nbsp;bs)
3402
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3403
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3404
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3405
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3406
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3407
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3408
<DL>
3409
<DD>Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
3410
<P>
3411
<DD><DL>
3412
<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - for reading the Bitstream.<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.
3413
<DT><B>Throws:</B>
3414
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3415
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3416
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3417
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3418
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3419
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3420
</DD>
3421
</DL>
3422
<HR>
3423
 
3424
<A NAME="configureFpga(java.lang.String, boolean, int)"><!-- --></A><H3>
3425
configureFpga</H3>
3426
<PRE>
3427
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
3428
                          boolean&nbsp;force,
3429
                          int&nbsp;bs)
3430
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3431
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3432
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3433
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3434
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3435
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3436
<DL>
3437
<DD>Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
3438
<P>
3439
<DD><DL>
3440
<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.
3441
<DT><B>Throws:</B>
3442
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3443
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3444
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3445
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3446
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3447
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3448
</DD>
3449
</DL>
3450
<HR>
3451
 
3452
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
3453
configureFpga</H3>
3454
<PRE>
3455
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
3456
                          boolean&nbsp;force)
3457
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
3458
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3459
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
3460
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
3461
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3462
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3463
<DL>
3464
<DD>Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.
3465
<P>
3466
<DD><DL>
3467
<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).
3468
<DT><B>Throws:</B>
3469
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
3470
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
3471
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
3472
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3473
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3474
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
3475
</DD>
3476
</DL>
3477
<HR>
3478
 
3479
<A NAME="macEepromWrite(int, byte[], int)"><!-- --></A><H3>
3480
macEepromWrite</H3>
3481
<PRE>
3482
public void <B>macEepromWrite</B>(int&nbsp;addr,
3483
                           byte[]&nbsp;buf,
3484
                           int&nbsp;length)
3485
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3486
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3487
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3488
<DL>
3489
<DD>Writes data to the MAC EEPROM.
3490
<P>
3491
<DD><DL>
3492
<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.
3493
<DT><B>Throws:</B>
3494
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3495
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3496
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware or if configuration data is present and there is a write to addresses 0 to 79. In order to override this behavior set <A HREF="../ztex/Ztex1v1.html#config"><CODE>config</CODE></A> variable to null.</DL>
3497
</DD>
3498
</DL>
3499
<HR>
3500
 
3501
<A NAME="macEepromRead(int, byte[], int)"><!-- --></A><H3>
3502
macEepromRead</H3>
3503
<PRE>
3504
public void <B>macEepromRead</B>(int&nbsp;addr,
3505
                          byte[]&nbsp;buf,
3506
                          int&nbsp;length)
3507
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3508
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3509
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3510
<DL>
3511
<DD>Reads data from the MAC EEPROM.
3512
<P>
3513
<DD><DL>
3514
<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.
3515
<DT><B>Throws:</B>
3516
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3517
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3518
<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>
3519
</DD>
3520
</DL>
3521
<HR>
3522
 
3523
<A NAME="macEepromState()"><!-- --></A><H3>
3524
macEepromState</H3>
3525
<PRE>
3526
public boolean <B>macEepromState</B>()
3527
                       throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3528
                              <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3529
                              <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3530
<DL>
3531
<DD>Reads the current MAC EEPROM status.
3532
<P>
3533
<DD><DL>
3534
 
3535
<DT><B>Returns:</B><DD>true if MAC EEPROM is ready.
3536
<DT><B>Throws:</B>
3537
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3538
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3539
<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>
3540
</DD>
3541
</DL>
3542
<HR>
3543
 
3544
<A NAME="macRead(byte[])"><!-- --></A><H3>
3545
macRead</H3>
3546
<PRE>
3547
public void <B>macRead</B>(byte[]&nbsp;buf)
3548
             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3549
                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3550
                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3551
                    java.lang.IndexOutOfBoundsException</PRE>
3552
<DL>
3553
<DD>Reads MAC address from MAC EEPROM.
3554
<P>
3555
<DD><DL>
3556
<DT><B>Parameters:</B><DD><CODE>buf</CODE> - A buffer with a minimum size of 6 bytes.
3557
<DT><B>Throws:</B>
3558
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3559
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3560
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if MAC EEPROM access is not supported by the firmware.
3561
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If the buffer is smaller than 6 bytes.</DL>
3562
</DD>
3563
</DL>
3564
<HR>
3565
 
3566
<A NAME="numberOfFpgas()"><!-- --></A><H3>
3567
numberOfFpgas</H3>
3568
<PRE>
3569
public int <B>numberOfFpgas</B>()
3570
                  throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3571
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
3572
<DL>
3573
<DD>Returns the number of FPGA's
3574
<P>
3575
<DD><DL>
3576
 
3577
<DT><B>Returns:</B><DD>number of FPGA's
3578
<DT><B>Throws:</B>
3579
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3580
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.</DL>
3581
</DD>
3582
</DL>
3583
<HR>
3584
 
3585
<A NAME="selectFpga(int)"><!-- --></A><H3>
3586
selectFpga</H3>
3587
<PRE>
3588
public void <B>selectFpga</B>(int&nbsp;num)
3589
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3590
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3591
                       java.lang.IndexOutOfBoundsException</PRE>
3592
<DL>
3593
<DD>Select a FPGA
3594
<P>
3595
<DD><DL>
3596
<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
3597
<DT><B>Throws:</B>
3598
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3599
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3600
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If FPGA number is not in range.</DL>
3601
</DD>
3602
</DL>
3603
<HR>
3604
 
3605
<A NAME="tempSensorRead(int)"><!-- --></A><H3>
3606
tempSensorRead</H3>
3607
<PRE>
3608
public double <B>tempSensorRead</B>(int&nbsp;idx)
3609
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3610
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3611
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A>,
3612
                             java.lang.IndexOutOfBoundsException</PRE>
3613
<DL>
3614
<DD>Read temperature sensor data.
3615
<P>
3616
<DD><DL>
3617
<DT><B>Parameters:</B><DD><CODE>idx</CODE> - Temperature sensor index
3618
<DT><B>Returns:</B><DD>Temperature in deg. C
3619
<DT><B>Throws:</B>
3620
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - If interface 1 or temperature sensor protocol is not supported.
3621
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - If a communication error occurs.
3622
<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.
3623
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If idx is not in range.</DL>
3624
</DD>
3625
</DL>
3626
<HR>
3627
 
3628
<A NAME="printSpiState()"><!-- --></A><H3>
3629
printSpiState</H3>
3630
<PRE>
3631
public boolean <B>printSpiState</B>()
3632
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
3633
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
3634
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
3635
<DL>
3636
<DD>Prints out some debug information about SPI Flash.<br>
3637
 <b>Only use this method if such kind of Flash is installed.</b>
3638
<P>
3639
<DD><DL>
3640
 
3641
<DT><B>Throws:</B>
3642
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
3643
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
3644
<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>
3645
</DD>
3646
</DL>
3647
<!-- ========= END OF CLASS DATA ========= -->
3648
<HR>
3649
 
3650
 
3651
<!-- ======= START OF BOTTOM NAVBAR ====== -->
3652
<A NAME="navbar_bottom"><!-- --></A>
3653
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
3654
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
3655
<TR>
3656
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
3657
<A NAME="navbar_bottom_firstrow"><!-- --></A>
3658
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
3659
  <TR ALIGN="center" VALIGN="top">
3660
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
3661
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
3662
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
3663
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
3664
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
3665
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
3666
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
3667
  </TR>
3668
</TABLE>
3669
</TD>
3670
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
3671
</EM>
3672
</TD>
3673
</TR>
3674
 
3675
<TR>
3676
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3677
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
3678
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
3679
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
3680
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
3681
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
3682
&nbsp;<SCRIPT type="text/javascript">
3683
  <!--
3684
  if(window==top) {
3685
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
3686
  }
3687
  //-->
3688
</SCRIPT>
3689
<NOSCRIPT>
3690
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
3691
</NOSCRIPT>
3692
 
3693
 
3694
</FONT></TD>
3695
</TR>
3696
<TR>
3697
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3698
  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>
3699
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
3700
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>
3701
</TR>
3702
</TABLE>
3703
<A NAME="skip-navbar_bottom"></A>
3704
<!-- ======== END OF BOTTOM NAVBAR ======= -->
3705
 
3706
<HR>
3707
 
3708
</BODY>
3709
</HTML>

powered by: WebSVN 2.1.0

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