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

Subversion Repositories usb_fpga_1_2

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

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

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

powered by: WebSVN 2.1.0

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