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

Subversion Repositories usb_fpga_1_11

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

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

Line No. Rev Author Line
1 2 ZTEX
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_02) on Fri Jun 11 14:15:44 CEST 2010 -->
6
<TITLE>
7
Ztex1v1
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2010-06-11">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Ztex1v1";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47
  </TR>
48
</TABLE>
49
</TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51
</EM>
52
</TD>
53
</TR>
54
 
55
<TR>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
58
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62
&nbsp;<SCRIPT type="text/javascript">
63
  <!--
64
  if(window==top) {
65
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
66
  }
67
  //-->
68
</SCRIPT>
69
<NOSCRIPT>
70
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
71
</NOSCRIPT>
72
 
73
 
74
</FONT></TD>
75
</TR>
76
<TR>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81
</TR>
82
</TABLE>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
85
 
86
<HR>
87
<!-- ======== START OF CLASS DATA ======== -->
88
<H2>
89
<FONT SIZE="-1">
90
ztex</FONT>
91
<BR>
92
Class Ztex1v1</H2>
93
<PRE>
94
java.lang.Object
95
  <IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../ztex/Ztex1.html" title="class in ztex">ztex.Ztex1</A>
96
      <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>ztex.Ztex1v1</B>
97
</PRE>
98
<HR>
99
<DL>
100
<DT><PRE>public class <B>Ztex1v1</B><DT>extends <A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></DL>
101
</PRE>
102
 
103
<P>
104
This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
105
 <p>
106
 The features supported by this interface can be accessed via vendor commands and vendor requests via Endpoint 0.
107
 Each feature can be enabled or disabled by the firmware and also depends from the hardware.
108
 The presence of a feature is indicated by a 1 in the corresponding feature bit of the ZTEX descriptor 1, see <A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>.
109
 The following table gives an overview about the features
110
 <table bgcolor="#404040" cellspacing=1 cellpadding=10>
111
   <tr>
112
     <td bgcolor="#d0d0d0" valign="bottom"><b>Capability bit</b></td>
113
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
114
   </tr>
115
   <tr>
116
     <td bgcolor="#ffffff" valign="top">0.0</td>
117
     <td bgcolor="#ffffff" valign="top" colspan=2>
118
          EEPROM support<p>
119
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
120
         <tr>
121
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
122
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
123
         </tr>
124
         <tr>
125
           <td bgcolor="#ffffff" valign="top">VR 0x38</td>
126
           <td bgcolor="#ffffff" valign="top">Read from EEPROM</td>
127
         </tr>
128
         <tr>
129
           <td bgcolor="#ffffff" valign="top">VC 0x39</td>
130
           <td bgcolor="#ffffff" valign="top">Write to EEPROM</td>
131
         </tr>
132
         <tr>
133
           <td bgcolor="#ffffff" valign="top">VR 0x3a</td>
134
           <td bgcolor="#ffffff" valign="top">Get EEPROM state. Returns:
135
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
136
               <tr>
137
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
138
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
139
               </tr>
140
               <tr>
141
                 <td bgcolor="#ffffff" valign="top">0-1</td>
142
                 <td bgcolor="#ffffff" valign="top">Number of bytes written.</td>
143
               </tr>
144
               <tr>
145
                 <td bgcolor="#ffffff" valign="top">2</td>
146
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
147
               </tr>
148
               <tr>
149
                 <td bgcolor="#ffffff" valign="top">3</td>
150
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
151
               </tr>
152
             </table>
153
           </td>
154
         </tr>
155
       </table>
156
        </td>
157
   </tr>
158
   <tr>
159
     <td bgcolor="#ffffff" valign="top">0.1</td>
160
     <td bgcolor="#ffffff" valign="top" colspan=2>
161
       FPGA Configuration<p>
162
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
163
         <tr>
164
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
165
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
166
         </tr>
167
         <tr>
168
           <td bgcolor="#ffffff" valign="top">VR 0x30</td>
169
           <td bgcolor="#ffffff" valign="top">Get FPGA state. Returns:
170
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
171
               <tr>
172
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
173
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
174
               </tr>
175
               <tr>
176
                 <td bgcolor="#ffffff" valign="top">0</td>
177
                 <td bgcolor="#ffffff" valign="top">1: unconfigured, 0:configured</td>
178
               </tr>
179
               <tr>
180
                 <td bgcolor="#ffffff" valign="top">1</td>
181
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
182
               </tr>
183
               <tr>
184
                 <td bgcolor="#ffffff" valign="top">2-5</td>
185
                 <td bgcolor="#ffffff" valign="top">Number of bytes transferred.</td>
186
               </tr>
187
               <tr>
188
                 <td bgcolor="#ffffff" valign="top">6</td>
189
                 <td bgcolor="#ffffff" valign="top">INIT_B states (Must be 222).</td>
190
               </tr>
191
             </table>
192
           </td>
193
         </tr>
194
         <tr>
195
           <td bgcolor="#ffffff" valign="top">VC 0x31</td>
196
           <td bgcolor="#ffffff" valign="top">Reset FPGA</td>
197
         </tr>
198
         <tr>
199
           <td bgcolor="#ffffff" valign="top">VR 0x32</td>
200
           <td bgcolor="#ffffff" valign="top">Send Bitstream</td>
201
         </tr>
202
       </table>
203
     </td>
204
   </tr>
205
   <tr>
206
     <td bgcolor="#ffffff" valign="top">0.2</td>
207
     <td bgcolor="#ffffff" valign="top" colspan=2>
208
       Flash memory support<p>
209
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
210
         <tr>
211
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
212
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
213
         </tr>
214
         <tr>
215
           <td bgcolor="#ffffff" valign="top">VR 0x40</td>
216
           <td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
217
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
218
               <tr>
219
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
220
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
221
               </tr>
222
               <tr>
223
                 <td bgcolor="#ffffff" valign="top">0</td>
224
                 <td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
225
               </tr>
226
               <tr>
227
                 <td bgcolor="#ffffff" valign="top">1-2</td>
228
                 <td bgcolor="#ffffff" valign="top">Sector size</td>
229
               </tr>
230
               <tr>
231
                 <td bgcolor="#ffffff" valign="top">3-6</td>
232
                 <td bgcolor="#ffffff" valign="top">Number of sectors</td>
233
               </tr>
234
               <tr>
235
                 <td bgcolor="#ffffff" valign="top">7</td>
236
                 <td bgcolor="#ffffff" valign="top">Error code</td>
237
               </tr>
238
             </table>
239
           </td>
240
         </tr>
241
         <tr>
242
           <td bgcolor="#ffffff" valign="top">VR 0x41</td>
243
           <td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
244
         </tr>
245
         <tr>
246
           <td bgcolor="#ffffff" valign="top">VC 0x42</td>
247
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
248
         </tr>
249
       </table>
250
     </td>
251
   </tr>
252
 </table>
253
<P>
254
 
255
<P>
256
<DL>
257
<DT><B>See Also:</B><DD><A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><CODE>ZtexDevice1</CODE></A>,
258
<A HREF="../ztex/Ztex1.html" title="class in ztex"><CODE>Ztex1</CODE></A></DL>
259
<HR>
260
 
261
<P>
262
<!-- =========== FIELD SUMMARY =========== -->
263
 
264
<A NAME="field_summary"><!-- --></A>
265
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
266
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
267
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
268
<B>Field Summary</B></FONT></TH>
269
</TR>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</A></B></CODE>
274
 
275
<BR>
276
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The names of the capabilities</TD>
277
</TR>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280
<CODE>&nbsp;int</CODE></FONT></TD>
281
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</A></B></CODE>
282
 
283
<BR>
284
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of bytes written to EEPROM.</TD>
285
</TR>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288
<CODE>&nbsp;int</CODE></FONT></TD>
289
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</A></B></CODE>
290
 
291
<BR>
292
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checksum of the last EEPROM transfer.</TD>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE>static&nbsp;int</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_BUSY">FLASH_EC_BUSY</A></B></CODE>
298
 
299
<BR>
300
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that Flash memory it busy.</TD>
301
</TR>
302
<TR BGCOLOR="white" CLASS="TableRowColor">
303
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304
<CODE>static&nbsp;int</CODE></FONT></TD>
305
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_CMD_ERROR">FLASH_EC_CMD_ERROR</A></B></CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to execute a command.</TD>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312
<CODE>static&nbsp;int</CODE></FONT></TD>
313
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</A></B></CODE>
314
 
315
<BR>
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Means no error.</TD>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
<CODE>static&nbsp;int</CODE></FONT></TD>
321
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</A></B></CODE>
322
 
323
<BR>
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that another Flash operation is pending.</TD>
325
</TR>
326
<TR BGCOLOR="white" CLASS="TableRowColor">
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
328
<CODE>static&nbsp;int</CODE></FONT></TD>
329
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</A></B></CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to read from Flash.</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>static&nbsp;int</CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</A></B></CODE>
338
 
339
<BR>
340
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals that a timeout occurred.</TD>
341
</TR>
342
<TR BGCOLOR="white" CLASS="TableRowColor">
343
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344
<CODE>static&nbsp;int</CODE></FONT></TD>
345
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</A></B></CODE>
346
 
347
<BR>
348
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Signals an error while attempting to write to Flash.</TD>
349
</TR>
350
<TR BGCOLOR="white" CLASS="TableRowColor">
351
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352
<CODE>&nbsp;int</CODE></FONT></TD>
353
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEC">flashEC</A></B></CODE>
354
 
355
<BR>
356
&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>
357
</TR>
358
</TABLE>
359
&nbsp;<A NAME="fields_inherited_from_class_ztex.Ztex1"><!-- --></A>
360
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
361
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
362
<TH ALIGN="left"><B>Fields inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
363
</TR>
364
<TR BGCOLOR="white" CLASS="TableRowColor">
365
<TD><CODE><A HREF="../ztex/Ztex1.html#certainWorkarounds">certainWorkarounds</A>, <A HREF="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</A></CODE></TD>
366
</TR>
367
</TABLE>
368
&nbsp;
369
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
370
 
371
<A NAME="constructor_summary"><!-- --></A>
372
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
373
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
374
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
375
<B>Constructor Summary</B></FONT></TH>
376
</TR>
377
<TR BGCOLOR="white" CLASS="TableRowColor">
378
<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>
379
 
380
<BR>
381
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance from a given device.</TD>
382
</TR>
383
</TABLE>
384
&nbsp;
385
<!-- ========== METHOD SUMMARY =========== -->
386
 
387
<A NAME="method_summary"><!-- --></A>
388
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
389
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
390
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
391
<B>Method Summary</B></FONT></TH>
392
</TR>
393
<TR BGCOLOR="white" CLASS="TableRowColor">
394
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
395
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
396
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</A></B>(java.lang.String&nbsp;pf)</CODE>
397
 
398
<BR>
399
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a String with capability information.</TD>
400
</TR>
401
<TR BGCOLOR="white" CLASS="TableRowColor">
402
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
403
<CODE>&nbsp;void</CODE></FONT></TD>
404
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCapability(int, int)">checkCapability</A></B>(int&nbsp;i,
405
                int&nbsp;j)</CODE>
406
 
407
<BR>
408
&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>
409
</TR>
410
<TR BGCOLOR="white" CLASS="TableRowColor">
411
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
412
<CODE>&nbsp;void</CODE></FONT></TD>
413
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkCompatible(int, int, int, int)">checkCompatible</A></B>(int&nbsp;productId0,
414
                int&nbsp;productId1,
415
                int&nbsp;productId2,
416
                int&nbsp;productId3)</CODE>
417
 
418
<BR>
419
&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>
420
</TR>
421
<TR BGCOLOR="white" CLASS="TableRowColor">
422
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
423
<CODE>&nbsp;void</CODE></FONT></TD>
424
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#checkValid()">checkValid</A></B>()</CODE>
425
 
426
<BR>
427
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</TD>
428
</TR>
429
<TR BGCOLOR="white" CLASS="TableRowColor">
430
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
431
<CODE>&nbsp;boolean</CODE></FONT></TD>
432
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)">compatible</A></B>(int&nbsp;productId0,
433
           int&nbsp;productId1,
434
           int&nbsp;productId2,
435
           int&nbsp;productId3)</CODE>
436
 
437
<BR>
438
&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>
439
</TR>
440
<TR BGCOLOR="white" CLASS="TableRowColor">
441
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
442
<CODE>&nbsp;long</CODE></FONT></TD>
443
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#configureFpga(java.lang.String, boolean)">configureFpga</A></B>(java.lang.String&nbsp;fwFileName,
444
              boolean&nbsp;force)</CODE>
445
 
446
<BR>
447
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload a Bitstream to the FPGA.</TD>
448
</TR>
449
<TR BGCOLOR="white" CLASS="TableRowColor">
450
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
451
<CODE>&nbsp;void</CODE></FONT></TD>
452
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</A></B>()</CODE>
453
 
454
<BR>
455
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disables the firmware stored in the EEPROM.</TD>
456
</TR>
457
<TR BGCOLOR="white" CLASS="TableRowColor">
458
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
459
<CODE>&nbsp;void</CODE></FONT></TD>
460
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromRead(int, byte[], int)">eepromRead</A></B>(int&nbsp;addr,
461
           byte[]&nbsp;buf,
462
           int&nbsp;length)</CODE>
463
 
464
<BR>
465
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads data from the EEPROM.</TD>
466
</TR>
467
<TR BGCOLOR="white" CLASS="TableRowColor">
468
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
469
<CODE>&nbsp;boolean</CODE></FONT></TD>
470
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromState()">eepromState</A></B>()</CODE>
471
 
472
<BR>
473
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the current EEPROM status.</TD>
474
</TR>
475
<TR BGCOLOR="white" CLASS="TableRowColor">
476
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
477
<CODE>&nbsp;long</CODE></FONT></TD>
478
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromUpload(java.lang.String, boolean)">eepromUpload</A></B>(java.lang.String&nbsp;ihxFileName,
479
             boolean&nbsp;force)</CODE>
480
 
481
<BR>
482
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Upload the firmware to the EEPROM.</TD>
483
</TR>
484
<TR BGCOLOR="white" CLASS="TableRowColor">
485
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
486
<CODE>&nbsp;void</CODE></FONT></TD>
487
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#eepromWrite(int, byte[], int)">eepromWrite</A></B>(int&nbsp;addr,
488
            byte[]&nbsp;buf,
489
            int&nbsp;length)</CODE>
490
 
491
<BR>
492
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes data to the EEPROM.</TD>
493
</TR>
494
<TR BGCOLOR="white" CLASS="TableRowColor">
495
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
496
<CODE>&nbsp;boolean</CODE></FONT></TD>
497
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</A></B>()</CODE>
498
 
499
<BR>
500
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if Flash memory is installed.</TD>
501
</TR>
502
<TR BGCOLOR="white" CLASS="TableRowColor">
503
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
504
<CODE>&nbsp;int</CODE></FONT></TD>
505
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</A></B>()</CODE>
506
 
507
<BR>
508
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first free sector of the Flash memory.</TD>
509
</TR>
510
<TR BGCOLOR="white" CLASS="TableRowColor">
511
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
512
<CODE>&nbsp;void</CODE></FONT></TD>
513
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashReadSector(int, byte[])">flashReadSector</A></B>(int&nbsp;sector,
514
                byte[]&nbsp;buf)</CODE>
515
 
516
<BR>
517
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads one sector from the Flash.</TD>
518
</TR>
519
<TR BGCOLOR="white" CLASS="TableRowColor">
520
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
521
<CODE>&nbsp;void</CODE></FONT></TD>
522
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</A></B>()</CODE>
523
 
524
<BR>
525
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears a Bitstream from the Flash.</TD>
526
</TR>
527
<TR BGCOLOR="white" CLASS="TableRowColor">
528
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
529
<CODE>&nbsp;int</CODE></FONT></TD>
530
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectors()">flashSectors</A></B>()</CODE>
531
 
532
<BR>
533
&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>
534
</TR>
535
<TR BGCOLOR="white" CLASS="TableRowColor">
536
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
537
<CODE>&nbsp;int</CODE></FONT></TD>
538
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</A></B>()</CODE>
539
 
540
<BR>
541
&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>
542
</TR>
543
<TR BGCOLOR="white" CLASS="TableRowColor">
544
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
545
<CODE>&nbsp;long</CODE></FONT></TD>
546
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashSize()">flashSize</A></B>()</CODE>
547
 
548
<BR>
549
&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>
550
</TR>
551
<TR BGCOLOR="white" CLASS="TableRowColor">
552
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553
<CODE>&nbsp;boolean</CODE></FONT></TD>
554
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashState()">flashState</A></B>()</CODE>
555
 
556
<BR>
557
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the the Flash memory status and information.</TD>
558
</TR>
559
<TR BGCOLOR="white" CLASS="TableRowColor">
560
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
561
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
562
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError()">flashStrError</A></B>()</CODE>
563
 
564
<BR>
565
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
566
</TR>
567
<TR BGCOLOR="white" CLASS="TableRowColor">
568
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
569
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
570
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</A></B>(int&nbsp;errNum)</CODE>
571
 
572
<BR>
573
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a given error code into a String.</TD>
574
</TR>
575
<TR BGCOLOR="white" CLASS="TableRowColor">
576
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
577
<CODE>&nbsp;long</CODE></FONT></TD>
578
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</A></B>(java.lang.String&nbsp;fwFileName)</CODE>
579
 
580
<BR>
581
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads a Bitstream to the Flash.</TD>
582
</TR>
583
<TR BGCOLOR="white" CLASS="TableRowColor">
584
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
585
<CODE>&nbsp;void</CODE></FONT></TD>
586
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#flashWriteSector(int, byte[])">flashWriteSector</A></B>(int&nbsp;sector,
587
                 byte[]&nbsp;buf)</CODE>
588
 
589
<BR>
590
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes one sector to the Flash.</TD>
591
</TR>
592
<TR BGCOLOR="white" CLASS="TableRowColor">
593
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
594
<CODE>&nbsp;int</CODE></FONT></TD>
595
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</A></B>()</CODE>
596
 
597
<BR>
598
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the last Flash error from the device.</TD>
599
</TR>
600
<TR BGCOLOR="white" CLASS="TableRowColor">
601
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
602
<CODE>&nbsp;boolean</CODE></FONT></TD>
603
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</A></B>()</CODE>
604
 
605
<BR>
606
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the FPGA is configured.</TD>
607
</TR>
608
<TR BGCOLOR="white" CLASS="TableRowColor">
609
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
610
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
611
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</A></B>()</CODE>
612
 
613
<BR>
614
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string that indicates the FPGA configuration status.</TD>
615
</TR>
616
<TR BGCOLOR="white" CLASS="TableRowColor">
617
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
618
<CODE>&nbsp;void</CODE></FONT></TD>
619
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</A></B>()</CODE>
620
 
621
<BR>
622
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out the FPGA state.</TD>
623
</TR>
624
<TR BGCOLOR="white" CLASS="TableRowColor">
625
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
626
<CODE>&nbsp;boolean</CODE></FONT></TD>
627
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#printMmcState()">printMmcState</A></B>()</CODE>
628
 
629
<BR>
630
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prints out some debug information about *SD/MMC Flash cards in SPI mode.</TD>
631
</TR>
632
<TR BGCOLOR="white" CLASS="TableRowColor">
633
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
634
<CODE>&nbsp;void</CODE></FONT></TD>
635
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#resetFpga()">resetFpga</A></B>()</CODE>
636
 
637
<BR>
638
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets the FPGA.</TD>
639
</TR>
640
<TR BGCOLOR="white" CLASS="TableRowColor">
641
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
642
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
643
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#toString()">toString</A></B>()</CODE>
644
 
645
<BR>
646
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a lot of useful information about the corresponding device.</TD>
647
</TR>
648
<TR BGCOLOR="white" CLASS="TableRowColor">
649
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
650
<CODE>&nbsp;boolean</CODE></FONT></TD>
651
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid()">valid</A></B>()</CODE>
652
 
653
<BR>
654
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 is available.</TD>
655
</TR>
656
<TR BGCOLOR="white" CLASS="TableRowColor">
657
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
658
<CODE>&nbsp;boolean</CODE></FONT></TD>
659
<TD><CODE><B><A HREF="../ztex/Ztex1v1.html#valid(int, int)">valid</A></B>(int&nbsp;i,
660
      int&nbsp;j)</CODE>
661
 
662
<BR>
663
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if ZTEX interface 1 and capability i.j are available.</TD>
664
</TR>
665
</TABLE>
666
&nbsp;<A NAME="methods_inherited_from_class_ztex.Ztex1"><!-- --></A>
667
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
668
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
669
<TH ALIGN="left"><B>Methods inherited from class ztex.<A HREF="../ztex/Ztex1.html" title="class in ztex">Ztex1</A></B></TH>
670
</TR>
671
<TR BGCOLOR="white" CLASS="TableRowColor">
672
<TD><CODE><A HREF="../ztex/Ztex1.html#claimInterface(int)">claimInterface</A>, <A HREF="../ztex/Ztex1.html#dev()">dev</A>, <A HREF="../ztex/Ztex1.html#finalize()">finalize</A>, <A HREF="../ztex/Ztex1.html#handle()">handle</A>, <A HREF="../ztex/Ztex1.html#releaseInterface(int)">releaseInterface</A>, <A HREF="../ztex/Ztex1.html#resetEzUsb()">resetEzUsb</A>, <A HREF="../ztex/Ztex1.html#setConfiguration(int)">setConfiguration</A>, <A HREF="../ztex/Ztex1.html#trySetConfiguration(int)">trySetConfiguration</A>, <A HREF="../ztex/Ztex1.html#uploadFirmware(java.lang.String, boolean)">uploadFirmware</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String, int, int)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand(int, java.lang.String, int, int, byte[], int)">vendorCommand</A>, <A HREF="../ztex/Ztex1.html#vendorCommand2(int, java.lang.String, int, int, byte[], int)">vendorCommand2</A>, <A HREF="../ztex/Ztex1.html#vendorRequest(int, java.lang.String, byte[], int)">vendorRequest</A>, <A HREF="../ztex/Ztex1.html#vendorRequest(int, java.lang.String, int, int, byte[], int)">vendorRequest</A>, <A HREF="../ztex/Ztex1.html#vendorRequest2(int, java.lang.String, byte[], int)">vendorRequest2</A>, <A HREF="../ztex/Ztex1.html#vendorRequest2(int, java.lang.String, int, int, byte[], int)">vendorRequest2</A></CODE></TD>
673
</TR>
674
</TABLE>
675
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
676
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
677
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
678
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
679
</TR>
680
<TR BGCOLOR="white" CLASS="TableRowColor">
681
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
682
</TR>
683
</TABLE>
684
&nbsp;
685
<P>
686
 
687
<!-- ============ FIELD DETAIL =========== -->
688
 
689
<A NAME="field_detail"><!-- --></A>
690
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
691
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
692
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
693
<B>Field Detail</B></FONT></TH>
694
</TR>
695
</TABLE>
696
 
697
<A NAME="capabilityStrings"><!-- --></A><H3>
698
capabilityStrings</H3>
699
<PRE>
700
public static final java.lang.String[] <B>capabilityStrings</B></PRE>
701
<DL>
702
<DD>The names of the capabilities
703
<P>
704
<DL>
705
</DL>
706
</DL>
707
<HR>
708
 
709
<A NAME="eepromBytes"><!-- --></A><H3>
710
eepromBytes</H3>
711
<PRE>
712
public int <B>eepromBytes</B></PRE>
713
<DL>
714
<DD>Number of bytes written to EEPROM. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
715
<P>
716
<DL>
717
</DL>
718
</DL>
719
<HR>
720
 
721
<A NAME="eepromChecksum"><!-- --></A><H3>
722
eepromChecksum</H3>
723
<PRE>
724
public int <B>eepromChecksum</B></PRE>
725
<DL>
726
<DD>Checksum of the last EEPROM transfer. (Obtained by <A HREF="../ztex/Ztex1v1.html#eepromState()"><CODE>eepromState()</CODE></A>.)
727
<P>
728
<DL>
729
</DL>
730
</DL>
731
<HR>
732
 
733
<A NAME="flashEC"><!-- --></A><H3>
734
flashEC</H3>
735
<PRE>
736
public int <B>flashEC</B></PRE>
737
<DL>
738
<DD>Last Flash error code obtained by <A HREF="../ztex/Ztex1v1.html#flashState()"><CODE>flashState()</CODE></A>. See FLASH_EC_* for possible error codes.
739
<P>
740
<DL>
741
</DL>
742
</DL>
743
<HR>
744
 
745
<A NAME="FLASH_EC_NO_ERROR"><!-- --></A><H3>
746
FLASH_EC_NO_ERROR</H3>
747
<PRE>
748
public static final int <B>FLASH_EC_NO_ERROR</B></PRE>
749
<DL>
750
<DD>Means no error.
751
<P>
752
<DL>
753
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NO_ERROR">Constant Field Values</A></DL>
754
</DL>
755
<HR>
756
 
757
<A NAME="FLASH_EC_CMD_ERROR"><!-- --></A><H3>
758
FLASH_EC_CMD_ERROR</H3>
759
<PRE>
760
public static final int <B>FLASH_EC_CMD_ERROR</B></PRE>
761
<DL>
762
<DD>Signals an error while attempting to execute a command.
763
<P>
764
<DL>
765
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_CMD_ERROR">Constant Field Values</A></DL>
766
</DL>
767
<HR>
768
 
769
<A NAME="FLASH_EC_TIMEOUT"><!-- --></A><H3>
770
FLASH_EC_TIMEOUT</H3>
771
<PRE>
772
public static final int <B>FLASH_EC_TIMEOUT</B></PRE>
773
<DL>
774
<DD>Signals that a timeout occurred.
775
<P>
776
<DL>
777
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_TIMEOUT">Constant Field Values</A></DL>
778
</DL>
779
<HR>
780
 
781
<A NAME="FLASH_EC_BUSY"><!-- --></A><H3>
782
FLASH_EC_BUSY</H3>
783
<PRE>
784
public static final int <B>FLASH_EC_BUSY</B></PRE>
785
<DL>
786
<DD>Signals that Flash memory it busy.
787
<P>
788
<DL>
789
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_BUSY">Constant Field Values</A></DL>
790
</DL>
791
<HR>
792
 
793
<A NAME="FLASH_EC_PENDING"><!-- --></A><H3>
794
FLASH_EC_PENDING</H3>
795
<PRE>
796
public static final int <B>FLASH_EC_PENDING</B></PRE>
797
<DL>
798
<DD>Signals that another Flash operation is pending.
799
<P>
800
<DL>
801
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_PENDING">Constant Field Values</A></DL>
802
</DL>
803
<HR>
804
 
805
<A NAME="FLASH_EC_READ_ERROR"><!-- --></A><H3>
806
FLASH_EC_READ_ERROR</H3>
807
<PRE>
808
public static final int <B>FLASH_EC_READ_ERROR</B></PRE>
809
<DL>
810
<DD>Signals an error while attempting to read from Flash.
811
<P>
812
<DL>
813
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_READ_ERROR">Constant Field Values</A></DL>
814
</DL>
815
<HR>
816
 
817
<A NAME="FLASH_EC_WRITE_ERROR"><!-- --></A><H3>
818
FLASH_EC_WRITE_ERROR</H3>
819
<PRE>
820
public static final int <B>FLASH_EC_WRITE_ERROR</B></PRE>
821
<DL>
822
<DD>Signals an error while attempting to write to Flash.
823
<P>
824
<DL>
825
<DT><B>See Also:</B><DD><A HREF="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</A></DL>
826
</DL>
827
 
828
<!-- ========= CONSTRUCTOR DETAIL ======== -->
829
 
830
<A NAME="constructor_detail"><!-- --></A>
831
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
832
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
833
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
834
<B>Constructor Detail</B></FONT></TH>
835
</TR>
836
</TABLE>
837
 
838
<A NAME="Ztex1v1(ztex.ZtexDevice1)"><!-- --></A><H3>
839
Ztex1v1</H3>
840
<PRE>
841
public <B>Ztex1v1</B>(<A HREF="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</A>&nbsp;pDev)
842
        throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></PRE>
843
<DL>
844
<DD>Constructs an instance from a given device.
845
<P>
846
<DL>
847
<DT><B>Parameters:</B><DD><CODE>pDev</CODE> - The given device.
848
<DT><B>Throws:</B>
849
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if an communication error occurred.</DL>
850
</DL>
851
 
852
<!-- ============ METHOD DETAIL ========== -->
853
 
854
<A NAME="method_detail"><!-- --></A>
855
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
856
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
857
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
858
<B>Method Detail</B></FONT></TH>
859
</TR>
860
</TABLE>
861
 
862
<A NAME="valid()"><!-- --></A><H3>
863
valid</H3>
864
<PRE>
865
public boolean <B>valid</B>()</PRE>
866
<DL>
867
<DD>Returns true if ZTEX interface 1 is available.
868
<P>
869
<DD><DL>
870
<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>
871
</DD>
872
<DD><DL>
873
 
874
<DT><B>Returns:</B><DD>true if ZTEX interface 1 is available.</DL>
875
</DD>
876
</DL>
877
<HR>
878
 
879
<A NAME="valid(int, int)"><!-- --></A><H3>
880
valid</H3>
881
<PRE>
882
public boolean <B>valid</B>(int&nbsp;i,
883
                     int&nbsp;j)</PRE>
884
<DL>
885
<DD>Returns true if ZTEX interface 1 and capability i.j are available.
886
<P>
887
<DD><DL>
888
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
889
<DT><B>Returns:</B><DD>true if ZTEX interface 1 and capability i.j are available.</DL>
890
</DD>
891
</DL>
892
<HR>
893
 
894
<A NAME="compatible(int, int, int, int)"><!-- --></A><H3>
895
compatible</H3>
896
<PRE>
897
public boolean <B>compatible</B>(int&nbsp;productId0,
898
                          int&nbsp;productId1,
899
                          int&nbsp;productId2,
900
                          int&nbsp;productId3)</PRE>
901
<DL>
902
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.<br>
903
 The given product ID is compatible
904
 <pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) &&
905
   ( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) &&
906
   ( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) &&
907
   ( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre>
908
<P>
909
<DD><DL>
910
<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
911
<DT><B>Returns:</B><DD>true if the given product ID is compatible and interface 1 is supported.</DL>
912
</DD>
913
</DL>
914
<HR>
915
 
916
<A NAME="checkValid()"><!-- --></A><H3>
917
checkValid</H3>
918
<PRE>
919
public void <B>checkValid</B>()
920
                throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
921
<DL>
922
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 is supported.
923
<P>
924
<DD><DL>
925
<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>
926
</DD>
927
<DD><DL>
928
 
929
<DT><B>Throws:</B>
930
<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>
931
</DD>
932
</DL>
933
<HR>
934
 
935
<A NAME="checkCapability(int, int)"><!-- --></A><H3>
936
checkCapability</H3>
937
<PRE>
938
public void <B>checkCapability</B>(int&nbsp;i,
939
                            int&nbsp;j)
940
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
941
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
942
<DL>
943
<DD>Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.
944
<P>
945
<DD><DL>
946
<DT><B>Parameters:</B><DD><CODE>i</CODE> - byte index of the capability<DD><CODE>j</CODE> - bit index of the capability
947
<DT><B>Throws:</B>
948
<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.
949
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if the given capability is not supported.</DL>
950
</DD>
951
</DL>
952
<HR>
953
 
954
<A NAME="checkCompatible(int, int, int, int)"><!-- --></A><H3>
955
checkCompatible</H3>
956
<PRE>
957
public void <B>checkCompatible</B>(int&nbsp;productId0,
958
                            int&nbsp;productId1,
959
                            int&nbsp;productId2,
960
                            int&nbsp;productId3)
961
                     throws <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></PRE>
962
<DL>
963
<DD>Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
964
 See <A HREF="../ztex/Ztex1v1.html#compatible(int, int, int, int)"><CODE>compatible(int,int,int,int)</CODE></A>.
965
<P>
966
<DD><DL>
967
<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
968
<DT><B>Throws:</B>
969
<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>
970
</DD>
971
</DL>
972
<HR>
973
 
974
<A NAME="printFpgaState()"><!-- --></A><H3>
975
printFpgaState</H3>
976
<PRE>
977
public void <B>printFpgaState</B>()
978
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
979
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
980
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
981
<DL>
982
<DD>Prints out the FPGA state.
983
<P>
984
<DD><DL>
985
 
986
<DT><B>Throws:</B>
987
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
988
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
989
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
990
</DD>
991
</DL>
992
<HR>
993
 
994
<A NAME="getFpgaConfiguration()"><!-- --></A><H3>
995
getFpgaConfiguration</H3>
996
<PRE>
997
public boolean <B>getFpgaConfiguration</B>()
998
                             throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
999
                                    <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1000
                                    <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1001
<DL>
1002
<DD>Returns true if the FPGA is configured.
1003
<P>
1004
<DD><DL>
1005
 
1006
<DT><B>Returns:</B><DD>true if the FPGA is configured.
1007
<DT><B>Throws:</B>
1008
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1009
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1010
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1011
</DD>
1012
</DL>
1013
<HR>
1014
 
1015
<A NAME="getFpgaConfigurationStr()"><!-- --></A><H3>
1016
getFpgaConfigurationStr</H3>
1017
<PRE>
1018
public java.lang.String <B>getFpgaConfigurationStr</B>()
1019
                                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1020
                                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1021
                                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1022
<DL>
1023
<DD>Returns a string that indicates the FPGA configuration status.
1024
<P>
1025
<DD><DL>
1026
 
1027
<DT><B>Returns:</B><DD>a string that indicates the FPGA configuration status.
1028
<DT><B>Throws:</B>
1029
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1030
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1031
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1032
</DD>
1033
</DL>
1034
<HR>
1035
 
1036
<A NAME="resetFpga()"><!-- --></A><H3>
1037
resetFpga</H3>
1038
<PRE>
1039
public void <B>resetFpga</B>()
1040
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1041
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1042
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1043
<DL>
1044
<DD>Resets the FPGA.
1045
<P>
1046
<DD><DL>
1047
 
1048
<DT><B>Throws:</B>
1049
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1050
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1051
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1052
</DD>
1053
</DL>
1054
<HR>
1055
 
1056
<A NAME="configureFpga(java.lang.String, boolean)"><!-- --></A><H3>
1057
configureFpga</H3>
1058
<PRE>
1059
public long <B>configureFpga</B>(java.lang.String&nbsp;fwFileName,
1060
                          boolean&nbsp;force)
1061
                   throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1062
                          <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1063
                          <A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A>,
1064
                          <A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A>,
1065
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1066
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1067
<DL>
1068
<DD>Upload a Bitstream to the FPGA.
1069
<P>
1070
<DD><DL>
1071
<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).
1072
<DT><B>Throws:</B>
1073
<DD><CODE><A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A></CODE> - if an error occurred while attempting to read the Bitstream.
1074
<DD><CODE><A HREF="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</A></CODE> - if an error occurred while attempting to upload the Bitstream.
1075
<DD><CODE><A HREF="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</A></CODE> - if the FPGA is already configured.
1076
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1077
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1078
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if FPGA configuration is not supported by the firmware.</DL>
1079
</DD>
1080
</DL>
1081
<HR>
1082
 
1083
<A NAME="eepromState()"><!-- --></A><H3>
1084
eepromState</H3>
1085
<PRE>
1086
public boolean <B>eepromState</B>()
1087
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1088
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1089
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1090
<DL>
1091
<DD>Reads the current EEPROM status.
1092
 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>.
1093
<P>
1094
<DD><DL>
1095
 
1096
<DT><B>Returns:</B><DD>true if EEPROM is ready.
1097
<DT><B>Throws:</B>
1098
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1099
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1100
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1101
</DD>
1102
</DL>
1103
<HR>
1104
 
1105
<A NAME="eepromWrite(int, byte[], int)"><!-- --></A><H3>
1106
eepromWrite</H3>
1107
<PRE>
1108
public void <B>eepromWrite</B>(int&nbsp;addr,
1109
                        byte[]&nbsp;buf,
1110
                        int&nbsp;length)
1111
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1112
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1113
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1114
<DL>
1115
<DD>Writes data to the EEPROM.
1116
<P>
1117
<DD><DL>
1118
<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.
1119
<DT><B>Throws:</B>
1120
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1121
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1122
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1123
</DD>
1124
</DL>
1125
<HR>
1126
 
1127
<A NAME="eepromRead(int, byte[], int)"><!-- --></A><H3>
1128
eepromRead</H3>
1129
<PRE>
1130
public void <B>eepromRead</B>(int&nbsp;addr,
1131
                       byte[]&nbsp;buf,
1132
                       int&nbsp;length)
1133
                throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1134
                       <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1135
                       <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1136
<DL>
1137
<DD>Reads data from the EEPROM.
1138
<P>
1139
<DD><DL>
1140
<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.
1141
<DT><B>Throws:</B>
1142
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1143
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1144
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.</DL>
1145
</DD>
1146
</DL>
1147
<HR>
1148
 
1149
<A NAME="eepromUpload(java.lang.String, boolean)"><!-- --></A><H3>
1150
eepromUpload</H3>
1151
<PRE>
1152
public long <B>eepromUpload</B>(java.lang.String&nbsp;ihxFileName,
1153
                         boolean&nbsp;force)
1154
                  throws <A HREF="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</A>,
1155
                         <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
1156
                         <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1157
                         <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1158
<DL>
1159
<DD>Upload the firmware to the EEPROM.
1160
 In order to start the uploaded firmware the device must be reset.
1161
<P>
1162
<DD><DL>
1163
<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.
1164
<DT><B>Throws:</B>
1165
<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.)
1166
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1167
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
1168
<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>
1169
</DD>
1170
</DL>
1171
<HR>
1172
 
1173
<A NAME="eepromDisable()"><!-- --></A><H3>
1174
eepromDisable</H3>
1175
<PRE>
1176
public void <B>eepromDisable</B>()
1177
                   throws <A HREF="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</A>,
1178
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1179
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1180
<DL>
1181
<DD>Disables the firmware stored in the EEPROM.
1182
 This is achived by writing a "0" to the address 0 of the EEPROM.
1183
<P>
1184
<DD><DL>
1185
 
1186
<DT><B>Throws:</B>
1187
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1188
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if EEPROM access is not supported by the firmware.
1189
<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>
1190
</DD>
1191
</DL>
1192
<HR>
1193
 
1194
<A NAME="flashStrError(int)"><!-- --></A><H3>
1195
flashStrError</H3>
1196
<PRE>
1197
public static java.lang.String <B>flashStrError</B>(int&nbsp;errNum)</PRE>
1198
<DL>
1199
<DD>Converts a given error code into a String.
1200
<P>
1201
<DD><DL>
1202
<DT><B>Parameters:</B><DD><CODE>errNum</CODE> - The error code.
1203
<DT><B>Returns:</B><DD>an error message.</DL>
1204
</DD>
1205
</DL>
1206
<HR>
1207
 
1208
<A NAME="flashStrError()"><!-- --></A><H3>
1209
flashStrError</H3>
1210
<PRE>
1211
public java.lang.String <B>flashStrError</B>()</PRE>
1212
<DL>
1213
<DD>Gets the last Flash error from the device.
1214
<P>
1215
<DD><DL>
1216
 
1217
<DT><B>Returns:</B><DD>an error message.</DL>
1218
</DD>
1219
</DL>
1220
<HR>
1221
 
1222
<A NAME="flashState()"><!-- --></A><H3>
1223
flashState</H3>
1224
<PRE>
1225
public boolean <B>flashState</B>()
1226
                   throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1227
                          <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1228
                          <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1229
<DL>
1230
<DD>Reads the the Flash memory status and information.
1231
 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>.
1232
<P>
1233
<DD><DL>
1234
 
1235
<DT><B>Returns:</B><DD>true if Flash memory is installed.
1236
<DT><B>Throws:</B>
1237
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1238
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1239
<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>
1240
</DD>
1241
</DL>
1242
<HR>
1243
 
1244
<A NAME="getFlashEC()"><!-- --></A><H3>
1245
getFlashEC</H3>
1246
<PRE>
1247
public int <B>getFlashEC</B>()
1248
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1249
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1250
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1251
<DL>
1252
<DD>Gets the last Flash error from the device.
1253
<P>
1254
<DD><DL>
1255
 
1256
<DT><B>Throws:</B>
1257
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1258
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1259
<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>
1260
</DD>
1261
</DL>
1262
<HR>
1263
 
1264
<A NAME="flashReadSector(int, byte[])"><!-- --></A><H3>
1265
flashReadSector</H3>
1266
<PRE>
1267
public void <B>flashReadSector</B>(int&nbsp;sector,
1268
                            byte[]&nbsp;buf)
1269
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1270
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1271
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1272
<DL>
1273
<DD>Reads one sector from the Flash.
1274
<P>
1275
<DD><DL>
1276
<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.
1277
<DT><B>Throws:</B>
1278
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1279
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1280
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1281
</DD>
1282
</DL>
1283
<HR>
1284
 
1285
<A NAME="flashWriteSector(int, byte[])"><!-- --></A><H3>
1286
flashWriteSector</H3>
1287
<PRE>
1288
public void <B>flashWriteSector</B>(int&nbsp;sector,
1289
                             byte[]&nbsp;buf)
1290
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1291
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1292
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1293
<DL>
1294
<DD>Writes one sector to the Flash.
1295
<P>
1296
<DD><DL>
1297
<DT><B>Parameters:</B><DD><CODE>sector</CODE> - The sector number to be written.<DD><CODE>buf</CODE> - The data.
1298
<DT><B>Throws:</B>
1299
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1300
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1301
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1302
</DD>
1303
</DL>
1304
<HR>
1305
 
1306
<A NAME="flashEnabled()"><!-- --></A><H3>
1307
flashEnabled</H3>
1308
<PRE>
1309
public boolean <B>flashEnabled</B>()
1310
                     throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1311
                            <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1312
                            <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1313
<DL>
1314
<DD>Returns true if Flash memory is installed.
1315
<P>
1316
<DD><DL>
1317
 
1318
<DT><B>Returns:</B><DD>true if Flash memory is installed.
1319
<DT><B>Throws:</B>
1320
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1321
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1322
<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>
1323
</DD>
1324
</DL>
1325
<HR>
1326
 
1327
<A NAME="flashSectorSize()"><!-- --></A><H3>
1328
flashSectorSize</H3>
1329
<PRE>
1330
public int <B>flashSectorSize</B>()
1331
                    throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1332
                           <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1333
                           <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1334
<DL>
1335
<DD>Returns the sector size of the Flash memory or 0, if no flash memory is installed.
1336
 If required, the sector size is determined form the device first.
1337
<P>
1338
<DD><DL>
1339
 
1340
<DT><B>Returns:</B><DD>the sector size of the Flash memory.
1341
<DT><B>Throws:</B>
1342
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1343
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1344
<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>
1345
</DD>
1346
</DL>
1347
<HR>
1348
 
1349
<A NAME="flashSectors()"><!-- --></A><H3>
1350
flashSectors</H3>
1351
<PRE>
1352
public int <B>flashSectors</B>()
1353
                 throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1354
                        <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1355
                        <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1356
<DL>
1357
<DD>Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
1358
 If required, the number of sectors is determined form the device first.
1359
<P>
1360
<DD><DL>
1361
 
1362
<DT><B>Returns:</B><DD>the number of sectors of the Flash memory.
1363
<DT><B>Throws:</B>
1364
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1365
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1366
<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>
1367
</DD>
1368
</DL>
1369
<HR>
1370
 
1371
<A NAME="flashSize()"><!-- --></A><H3>
1372
flashSize</H3>
1373
<PRE>
1374
public long <B>flashSize</B>()
1375
               throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1376
                      <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1377
                      <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1378
<DL>
1379
<DD>Returns the size of Flash memory or 0, if no Flash memory is installed.
1380
 If required, the Flash size is determined form the device first.
1381
<P>
1382
<DD><DL>
1383
 
1384
<DT><B>Returns:</B><DD>the size of Flash memory.
1385
<DT><B>Throws:</B>
1386
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1387
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1388
<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>
1389
</DD>
1390
</DL>
1391
<HR>
1392
 
1393
<A NAME="printMmcState()"><!-- --></A><H3>
1394
printMmcState</H3>
1395
<PRE>
1396
public boolean <B>printMmcState</B>()
1397
                      throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1398
                             <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1399
                             <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1400
<DL>
1401
<DD>Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
1402
 <b>Only use this method if such kind of Flash is installed.</b>
1403
<P>
1404
<DD><DL>
1405
 
1406
<DT><B>Throws:</B>
1407
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1408
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1409
<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>
1410
</DD>
1411
</DL>
1412
<HR>
1413
 
1414
<A NAME="flashUploadBitstream(java.lang.String)"><!-- --></A><H3>
1415
flashUploadBitstream</H3>
1416
<PRE>
1417
public long <B>flashUploadBitstream</B>(java.lang.String&nbsp;fwFileName)
1418
                          throws <A HREF="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</A>,
1419
                                 <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1420
                                 <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1421
                                 <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1422
<DL>
1423
<DD>Uploads a Bitstream to the Flash.
1424
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
1425
 it is possible to construct fully autonomous devices.
1426
 <p>
1427
 Information about the bitstream is stored in sector 0.
1428
 This so called boot sector has the following format:
1429
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
1430
   <tr>
1431
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
1432
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
1433
   </tr>
1434
   <tr>
1435
     <td bgcolor="#ffffff" valign="top">0..7</td>
1436
     <td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
1437
   </tr>
1438
   <tr>
1439
     <td bgcolor="#ffffff" valign="top">8..9</td>
1440
     <td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
1441
   </tr>
1442
   <tr>
1443
     <td bgcolor="#ffffff" valign="top">10..11</td>
1444
     <td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
1445
   </tr>
1446
   <tr>
1447
     <td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
1448
     <td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
1449
   </tr>
1450
 </table>
1451
 <p>
1452
 The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
1453
 where bs[i] denotes byte i of the boot sector.
1454
 <p>
1455
 The first sector of the Bitstream is sector 1.
1456
<P>
1457
<DD><DL>
1458
<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).
1459
<DT><B>Throws:</B>
1460
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1461
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1462
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.
1463
<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>
1464
</DD>
1465
</DL>
1466
<HR>
1467
 
1468
<A NAME="flashResetBitstream()"><!-- --></A><H3>
1469
flashResetBitstream</H3>
1470
<PRE>
1471
public void <B>flashResetBitstream</B>()
1472
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1473
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1474
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1475
<DL>
1476
<DD>Clears a Bitstream from the Flash.
1477
 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>.
1478
 If no boot sector is installed the method returns without any write action.
1479
<P>
1480
<DD><DL>
1481
 
1482
<DT><B>Throws:</B>
1483
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1484
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1485
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1486
</DD>
1487
</DL>
1488
<HR>
1489
 
1490
<A NAME="flashFirstFreeSector()"><!-- --></A><H3>
1491
flashFirstFreeSector</H3>
1492
<PRE>
1493
public int <B>flashFirstFreeSector</B>()
1494
                         throws <A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A>,
1495
                                <A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A>,
1496
                                <A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></PRE>
1497
<DL>
1498
<DD>Returns the first free sector of the Flash memory.
1499
 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).
1500
<P>
1501
<DD><DL>
1502
 
1503
<DT><B>Returns:</B><DD>the first free sector of the Flash memory.
1504
<DT><B>Throws:</B>
1505
<DD><CODE><A HREF="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</A></CODE> - if interface 1 is not supported.
1506
<DD><CODE><A HREF="../ztex/UsbException.html" title="class in ztex">UsbException</A></CODE> - if a communication error occurs.
1507
<DD><CODE><A HREF="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</A></CODE> - if Flash memory access is not possible.</DL>
1508
</DD>
1509
</DL>
1510
<HR>
1511
 
1512
<A NAME="toString()"><!-- --></A><H3>
1513
toString</H3>
1514
<PRE>
1515
public java.lang.String <B>toString</B>()</PRE>
1516
<DL>
1517
<DD>Returns a lot of useful information about the corresponding device.
1518
<P>
1519
<DD><DL>
1520
<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>
1521
</DD>
1522
<DD><DL>
1523
 
1524
<DT><B>Returns:</B><DD>a lot of useful information about the corresponding device.</DL>
1525
</DD>
1526
</DL>
1527
<HR>
1528
 
1529
<A NAME="capabilityInfo(java.lang.String)"><!-- --></A><H3>
1530
capabilityInfo</H3>
1531
<PRE>
1532
public java.lang.String <B>capabilityInfo</B>(java.lang.String&nbsp;pf)</PRE>
1533
<DL>
1534
<DD>Creates a String with capability information.
1535
<P>
1536
<DD><DL>
1537
<DT><B>Parameters:</B><DD><CODE>pf</CODE> - A separator between the single capabilities, e.g. ", "
1538
<DT><B>Returns:</B><DD>a string of the supported capabilities.</DL>
1539
</DD>
1540
</DL>
1541
<!-- ========= END OF CLASS DATA ========= -->
1542
<HR>
1543
 
1544
 
1545
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1546
<A NAME="navbar_bottom"><!-- --></A>
1547
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1548
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1549
<TR>
1550
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1551
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1552
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1553
  <TR ALIGN="center" VALIGN="top">
1554
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1555
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1556
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1557
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1558
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1559
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1560
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1561
  </TR>
1562
</TABLE>
1563
</TD>
1564
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1565
</EM>
1566
</TD>
1567
</TR>
1568
 
1569
<TR>
1570
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1571
&nbsp;<A HREF="../ztex/Ztex1.html" title="class in ztex"><B>PREV CLASS</B></A>&nbsp;
1572
&nbsp;<A HREF="../ztex/ZtexDevice1.html" title="class in ztex"><B>NEXT CLASS</B></A></FONT></TD>
1573
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1574
  <A HREF="../index.html?ztex/Ztex1v1.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1575
&nbsp;<A HREF="Ztex1v1.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1576
&nbsp;<SCRIPT type="text/javascript">
1577
  <!--
1578
  if(window==top) {
1579
    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
1580
  }
1581
  //-->
1582
</SCRIPT>
1583
<NOSCRIPT>
1584
  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
1585
</NOSCRIPT>
1586
 
1587
 
1588
</FONT></TD>
1589
</TR>
1590
<TR>
1591
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1592
  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>
1593
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1594
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>
1595
</TR>
1596
</TABLE>
1597
<A NAME="skip-navbar_bottom"></A>
1598
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1599
 
1600
<HR>
1601
 
1602
</BODY>
1603
</HTML>

powered by: WebSVN 2.1.0

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