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 lang="de">
|
4 |
|
|
<head>
|
5 |
|
|
<!-- Generated by javadoc (version 1.7.0_79) on Wed Mar 22 19:20:13 CET 2017 -->
|
6 |
|
|
<title>Ztex1v1</title>
|
7 |
|
|
<meta name="date" content="2017-03-22">
|
8 |
|
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
9 |
|
|
</head>
|
10 |
|
|
<body>
|
11 |
|
|
<script type="text/javascript"><!--
|
12 |
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
13 |
|
|
parent.document.title="Ztex1v1";
|
14 |
|
|
}
|
15 |
|
|
//-->
|
16 |
|
|
</script>
|
17 |
|
|
<noscript>
|
18 |
|
|
<div>JavaScript is disabled on your browser.</div>
|
19 |
|
|
</noscript>
|
20 |
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
21 |
|
|
<div class="topNav"><a name="navbar_top">
|
22 |
|
|
<!-- -->
|
23 |
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
24 |
|
|
<!-- -->
|
25 |
|
|
</a>
|
26 |
|
|
<ul class="navList" title="Navigation">
|
27 |
|
|
<li><a href="../ztex/package-summary.html">Package</a></li>
|
28 |
|
|
<li class="navBarCell1Rev">Class</li>
|
29 |
|
|
<li><a href="package-tree.html">Tree</a></li>
|
30 |
|
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
31 |
|
|
<li><a href="../index-all.html">Index</a></li>
|
32 |
|
|
<li><a href="../help-doc.html">Help</a></li>
|
33 |
|
|
</ul>
|
34 |
|
|
</div>
|
35 |
|
|
<div class="subNav">
|
36 |
|
|
<ul class="navList">
|
37 |
|
|
<li><a href="../ztex/Ztex1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
|
38 |
|
|
<li><a href="../ztex/ZtexContext.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
|
39 |
|
|
</ul>
|
40 |
|
|
<ul class="navList">
|
41 |
|
|
<li><a href="../index.html?ztex/Ztex1v1.html" target="_top">Frames</a></li>
|
42 |
|
|
<li><a href="Ztex1v1.html" target="_top">No Frames</a></li>
|
43 |
|
|
</ul>
|
44 |
|
|
<ul class="navList" id="allclasses_navbar_top">
|
45 |
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
46 |
|
|
</ul>
|
47 |
|
|
<div>
|
48 |
|
|
<script type="text/javascript"><!--
|
49 |
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
50 |
|
|
if(window==top) {
|
51 |
|
|
allClassesLink.style.display = "block";
|
52 |
|
|
}
|
53 |
|
|
else {
|
54 |
|
|
allClassesLink.style.display = "none";
|
55 |
|
|
}
|
56 |
|
|
//-->
|
57 |
|
|
</script>
|
58 |
|
|
</div>
|
59 |
|
|
<div>
|
60 |
|
|
<ul class="subNavList">
|
61 |
|
|
<li>Summary: </li>
|
62 |
|
|
<li>Nested | </li>
|
63 |
|
|
<li><a href="#field_summary">Field</a> | </li>
|
64 |
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
65 |
|
|
<li><a href="#method_summary">Method</a></li>
|
66 |
|
|
</ul>
|
67 |
|
|
<ul class="subNavList">
|
68 |
|
|
<li>Detail: </li>
|
69 |
|
|
<li><a href="#field_detail">Field</a> | </li>
|
70 |
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
71 |
|
|
<li><a href="#method_detail">Method</a></li>
|
72 |
|
|
</ul>
|
73 |
|
|
</div>
|
74 |
|
|
<a name="skip-navbar_top">
|
75 |
|
|
<!-- -->
|
76 |
|
|
</a></div>
|
77 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
78 |
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
79 |
|
|
<div class="header">
|
80 |
|
|
<div class="subTitle">ztex</div>
|
81 |
|
|
<h2 title="Class Ztex1v1" class="title">Class Ztex1v1</h2>
|
82 |
|
|
</div>
|
83 |
|
|
<div class="contentContainer">
|
84 |
|
|
<ul class="inheritance">
|
85 |
|
|
<li>java.lang.Object</li>
|
86 |
|
|
<li>
|
87 |
|
|
<ul class="inheritance">
|
88 |
|
|
<li><a href="../ztex/Ztex1.html" title="class in ztex">ztex.Ztex1</a></li>
|
89 |
|
|
<li>
|
90 |
|
|
<ul class="inheritance">
|
91 |
|
|
<li>ztex.Ztex1v1</li>
|
92 |
|
|
</ul>
|
93 |
|
|
</li>
|
94 |
|
|
</ul>
|
95 |
|
|
</li>
|
96 |
|
|
</ul>
|
97 |
|
|
<div class="description">
|
98 |
|
|
<ul class="blockList">
|
99 |
|
|
<li class="blockList">
|
100 |
|
|
<hr>
|
101 |
|
|
<br>
|
102 |
|
|
<pre>public class <span class="strong">Ztex1v1</span>
|
103 |
|
|
extends <a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></pre>
|
104 |
|
|
<div class="block">This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
|
105 |
|
|
<p>
|
106 |
|
|
The features supported by this interface can be accessed via vendor commands and vendor requests via Endpoint 0.
|
107 |
|
|
Each feature can be enabled or disabled by the firmware and also depends from the hardware.
|
108 |
|
|
The presence of a feature is indicated by a 1 in the corresponding feature bit of the ZTEX descriptor 1, see <a href="../ztex/ZtexDevice1.html" title="class in ztex"><code>ZtexDevice1</code></a>.
|
109 |
|
|
The following table gives an overview about the features
|
110 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=10>
|
111 |
|
|
<tr>
|
112 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Capability bit</b></td>
|
113 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
114 |
|
|
</tr>
|
115 |
|
|
<tr>
|
116 |
|
|
<td bgcolor="#ffffff" valign="top">0.0</td>
|
117 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
118 |
|
|
EEPROM support<p>
|
119 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
120 |
|
|
<tr>
|
121 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
122 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
123 |
|
|
</tr>
|
124 |
|
|
<tr>
|
125 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x38</td>
|
126 |
|
|
<td bgcolor="#ffffff" valign="top">Read from EEPROM</td>
|
127 |
|
|
</tr>
|
128 |
|
|
<tr>
|
129 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x39</td>
|
130 |
|
|
<td bgcolor="#ffffff" valign="top">Write to EEPROM</td>
|
131 |
|
|
</tr>
|
132 |
|
|
<tr>
|
133 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x3a</td>
|
134 |
|
|
<td bgcolor="#ffffff" valign="top">Get EEPROM state. Returns:
|
135 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
136 |
|
|
<tr>
|
137 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
138 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
139 |
|
|
</tr>
|
140 |
|
|
<tr>
|
141 |
|
|
<td bgcolor="#ffffff" valign="top">0-1</td>
|
142 |
|
|
<td bgcolor="#ffffff" valign="top">Number of bytes written.</td>
|
143 |
|
|
</tr>
|
144 |
|
|
<tr>
|
145 |
|
|
<td bgcolor="#ffffff" valign="top">2</td>
|
146 |
|
|
<td bgcolor="#ffffff" valign="top">Checksum</td>
|
147 |
|
|
</tr>
|
148 |
|
|
<tr>
|
149 |
|
|
<td bgcolor="#ffffff" valign="top">3</td>
|
150 |
|
|
<td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
|
151 |
|
|
</tr>
|
152 |
|
|
</table>
|
153 |
|
|
</td>
|
154 |
|
|
</tr>
|
155 |
|
|
</table>
|
156 |
|
|
</td>
|
157 |
|
|
</tr>
|
158 |
|
|
<tr>
|
159 |
|
|
<td bgcolor="#ffffff" valign="top">0.1</td>
|
160 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
161 |
|
|
FPGA Configuration<p>
|
162 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
163 |
|
|
<tr>
|
164 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
165 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
166 |
|
|
</tr>
|
167 |
|
|
<tr>
|
168 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x30</td>
|
169 |
|
|
<td bgcolor="#ffffff" valign="top">Get FPGA state. Returns:
|
170 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
171 |
|
|
<tr>
|
172 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
173 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
174 |
|
|
</tr>
|
175 |
|
|
<tr>
|
176 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
177 |
|
|
<td bgcolor="#ffffff" valign="top">1: unconfigured, 0:configured</td>
|
178 |
|
|
</tr>
|
179 |
|
|
<tr>
|
180 |
|
|
<td bgcolor="#ffffff" valign="top">1</td>
|
181 |
|
|
<td bgcolor="#ffffff" valign="top">Checksum</td>
|
182 |
|
|
</tr>
|
183 |
|
|
<tr>
|
184 |
|
|
<td bgcolor="#ffffff" valign="top">2-5</td>
|
185 |
|
|
<td bgcolor="#ffffff" valign="top">Number of bytes transferred.</td>
|
186 |
|
|
</tr>
|
187 |
|
|
<tr>
|
188 |
|
|
<td bgcolor="#ffffff" valign="top">6</td>
|
189 |
|
|
<td bgcolor="#ffffff" valign="top">INIT_B states.</td>
|
190 |
|
|
</tr>
|
191 |
|
|
<tr>
|
192 |
|
|
<td bgcolor="#ffffff" valign="top">7</td>
|
193 |
|
|
<td bgcolor="#ffffff" valign="top">Flash configuration result.</td>
|
194 |
|
|
</tr>
|
195 |
|
|
<tr>
|
196 |
|
|
<td bgcolor="#ffffff" valign="top">8</td>
|
197 |
|
|
<td bgcolor="#ffffff" valign="top">Flash Bitstreambit order (1=swapped).</td>
|
198 |
|
|
</tr>
|
199 |
|
|
</table>
|
200 |
|
|
</td>
|
201 |
|
|
</tr>
|
202 |
|
|
<tr>
|
203 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x31</td>
|
204 |
|
|
<td bgcolor="#ffffff" valign="top">Reset FPGA</td>
|
205 |
|
|
</tr>
|
206 |
|
|
<tr>
|
207 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x32</td>
|
208 |
|
|
<td bgcolor="#ffffff" valign="top">Send Bitstream</td>
|
209 |
|
|
</tr>
|
210 |
|
|
</table>
|
211 |
|
|
</td>
|
212 |
|
|
</tr>
|
213 |
|
|
<tr>
|
214 |
|
|
<td bgcolor="#ffffff" valign="top">0.2</td>
|
215 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
216 |
|
|
Flash memory support<p>
|
217 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
218 |
|
|
<tr>
|
219 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
220 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
221 |
|
|
</tr>
|
222 |
|
|
<tr>
|
223 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x40</td>
|
224 |
|
|
<td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
|
225 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
226 |
|
|
<tr>
|
227 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
228 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
229 |
|
|
</tr>
|
230 |
|
|
<tr>
|
231 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
232 |
|
|
<td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
|
233 |
|
|
</tr>
|
234 |
|
|
<tr>
|
235 |
|
|
<td bgcolor="#ffffff" valign="top">1-2</td>
|
236 |
|
|
<td bgcolor="#ffffff" valign="top">Sector size</td>
|
237 |
|
|
</tr>
|
238 |
|
|
<tr>
|
239 |
|
|
<td bgcolor="#ffffff" valign="top">3-6</td>
|
240 |
|
|
<td bgcolor="#ffffff" valign="top">Number of sectors</td>
|
241 |
|
|
</tr>
|
242 |
|
|
<tr>
|
243 |
|
|
<td bgcolor="#ffffff" valign="top">7</td>
|
244 |
|
|
<td bgcolor="#ffffff" valign="top">Error code</td>
|
245 |
|
|
</tr>
|
246 |
|
|
</table>
|
247 |
|
|
</td>
|
248 |
|
|
</tr>
|
249 |
|
|
<tr>
|
250 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x41</td>
|
251 |
|
|
<td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
|
252 |
|
|
</tr>
|
253 |
|
|
<tr>
|
254 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x42</td>
|
255 |
|
|
<td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
|
256 |
|
|
</tr>
|
257 |
|
|
</table>
|
258 |
|
|
</td>
|
259 |
|
|
</tr>
|
260 |
|
|
<tr>
|
261 |
|
|
<td bgcolor="#ffffff" valign="top">0.3</td>
|
262 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
263 |
|
|
Debug helper support<p>
|
264 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
265 |
|
|
<tr>
|
266 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
267 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
268 |
|
|
</tr>
|
269 |
|
|
<tr>
|
270 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x28</td>
|
271 |
|
|
<td bgcolor="#ffffff" valign="top">Get debug data. Returns:
|
272 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
273 |
|
|
<tr>
|
274 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
275 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
276 |
|
|
</tr>
|
277 |
|
|
<tr>
|
278 |
|
|
<td bgcolor="#ffffff" valign="top">0-1</td>
|
279 |
|
|
<td bgcolor="#ffffff" valign="top">Number of the last message</td>
|
280 |
|
|
</tr>
|
281 |
|
|
<tr>
|
282 |
|
|
<td bgcolor="#ffffff" valign="top">2</td>
|
283 |
|
|
<td bgcolor="#ffffff" valign="top">Stack size in messages</td>
|
284 |
|
|
</tr>
|
285 |
|
|
<tr>
|
286 |
|
|
<td bgcolor="#ffffff" valign="top">3</td>
|
287 |
|
|
<td bgcolor="#ffffff" valign="top">Message size in bytes</td>
|
288 |
|
|
</tr>
|
289 |
|
|
<tr>
|
290 |
|
|
<td bgcolor="#ffffff" valign="top">≥4</td>
|
291 |
|
|
<td bgcolor="#ffffff" valign="top">Message stack</td>
|
292 |
|
|
</tr>
|
293 |
|
|
</table>
|
294 |
|
|
</td>
|
295 |
|
|
</tr>
|
296 |
|
|
</table>
|
297 |
|
|
</td>
|
298 |
|
|
</tr>
|
299 |
|
|
<tr>
|
300 |
|
|
<td bgcolor="#ffffff" valign="top">0.4</td>
|
301 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
302 |
|
|
XMEGA support<p>
|
303 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
304 |
|
|
<tr>
|
305 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
306 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
307 |
|
|
</tr>
|
308 |
|
|
<tr>
|
309 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x48</td>
|
310 |
|
|
<td bgcolor="#ffffff" valign="top">Read XMEGA status information. Returns:
|
311 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
312 |
|
|
<tr>
|
313 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
314 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
315 |
|
|
</tr>
|
316 |
|
|
<tr>
|
317 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
318 |
|
|
<td bgcolor="#ffffff" valign="top">Error code</td>
|
319 |
|
|
</tr>
|
320 |
|
|
<tr>
|
321 |
|
|
<td bgcolor="#ffffff" valign="top">1-2</td>
|
322 |
|
|
<td bgcolor="#ffffff" valign="top">Flash size in pages</td>
|
323 |
|
|
</tr>
|
324 |
|
|
<tr>
|
325 |
|
|
<td bgcolor="#ffffff" valign="top">3-4</td>
|
326 |
|
|
<td bgcolor="#ffffff" valign="top">EEPROM sie in pages</td>
|
327 |
|
|
</tr>
|
328 |
|
|
<tr>
|
329 |
|
|
<td bgcolor="#ffffff" valign="top">5</td>
|
330 |
|
|
<td bgcolor="#ffffff" valign="top">Flash page size as power of two (e.g. 9 means 512 bytes)</td>
|
331 |
|
|
</tr>
|
332 |
|
|
<tr>
|
333 |
|
|
<td bgcolor="#ffffff" valign="top">6</td>
|
334 |
|
|
<td bgcolor="#ffffff" valign="top">EEPROM page size as power of two</td>
|
335 |
|
|
</tr>
|
336 |
|
|
</table>
|
337 |
|
|
</td>
|
338 |
|
|
</tr>
|
339 |
|
|
<tr>
|
340 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x49</td>
|
341 |
|
|
<td bgcolor="#ffffff" valign="top">Reset XMEGA</td>
|
342 |
|
|
</tr>
|
343 |
|
|
<tr>
|
344 |
|
|
<td bgcolor="#ffffff" valign="top">VRs 0x4A, 0x4B, 0x4C, 0x4D</td>
|
345 |
|
|
<td bgcolor="#ffffff" valign="top">Read XMEGA NVM using PDI address space / relative to Flash address base / EEPROM address base / Fuse address base</td>
|
346 |
|
|
</tr>
|
347 |
|
|
<tr>
|
348 |
|
|
<td bgcolor="#ffffff" valign="top">VCs 0x4B, 0x4C</td>
|
349 |
|
|
<td bgcolor="#ffffff" valign="top">Write exactly one Flash / EEPROM page</td>
|
350 |
|
|
</tr>
|
351 |
|
|
<tr>
|
352 |
|
|
<td bgcolor="#ffffff" valign="top">VCs 0x4D</td>
|
353 |
|
|
<td bgcolor="#ffffff" valign="top">Write Fuse</td>
|
354 |
|
|
</tr>
|
355 |
|
|
</table>
|
356 |
|
|
</td>
|
357 |
|
|
</tr>
|
358 |
|
|
<tr>
|
359 |
|
|
<td bgcolor="#ffffff" valign="top">0.5</td>
|
360 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
361 |
|
|
High speed FPGA configuration support<p>
|
362 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
363 |
|
|
<tr>
|
364 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
365 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
366 |
|
|
</tr>
|
367 |
|
|
<tr>
|
368 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x33</td>
|
369 |
|
|
<td bgcolor="#ffffff" valign="top">Read Endpoint settings. Returns:
|
370 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
371 |
|
|
<tr>
|
372 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
373 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
374 |
|
|
</tr>
|
375 |
|
|
<tr>
|
376 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
377 |
|
|
<td bgcolor="#ffffff" valign="top">Endpoint number</td>
|
378 |
|
|
</tr>
|
379 |
|
|
<tr>
|
380 |
|
|
<td bgcolor="#ffffff" valign="top">1</td>
|
381 |
|
|
<td bgcolor="#ffffff" valign="top">Interface number</td>
|
382 |
|
|
</tr>
|
383 |
|
|
</table>
|
384 |
|
|
</td>
|
385 |
|
|
</tr>
|
386 |
|
|
<tr>
|
387 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x34</td>
|
388 |
|
|
<td bgcolor="#ffffff" valign="top">Start FPGA configuration</td>
|
389 |
|
|
</tr>
|
390 |
|
|
<tr>
|
391 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x35</td>
|
392 |
|
|
<td bgcolor="#ffffff" valign="top">Finish FPGA configuration</td>
|
393 |
|
|
</tr>
|
394 |
|
|
</table>
|
395 |
|
|
</td>
|
396 |
|
|
</tr>
|
397 |
|
|
<tr>
|
398 |
|
|
<td bgcolor="#ffffff" valign="top">0.6</td>
|
399 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
400 |
|
|
MAC EEPROM support<p>
|
401 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
402 |
|
|
<tr>
|
403 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
404 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
405 |
|
|
</tr>
|
406 |
|
|
<tr>
|
407 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x3B</td>
|
408 |
|
|
<td bgcolor="#ffffff" valign="top">Read from MAC EEPROM</td>
|
409 |
|
|
</tr>
|
410 |
|
|
<tr>
|
411 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x3C</td>
|
412 |
|
|
<td bgcolor="#ffffff" valign="top">Write to MAC EEPROM</td>
|
413 |
|
|
</tr>
|
414 |
|
|
<tr>
|
415 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x3D</td>
|
416 |
|
|
<td bgcolor="#ffffff" valign="top">Get MAC EEPROM state. Returns:
|
417 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
418 |
|
|
<tr>
|
419 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
420 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
421 |
|
|
</tr>
|
422 |
|
|
<tr>
|
423 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
424 |
|
|
<td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
|
425 |
|
|
</tr>
|
426 |
|
|
</table>
|
427 |
|
|
</td>
|
428 |
|
|
</tr>
|
429 |
|
|
</table>
|
430 |
|
|
</td>
|
431 |
|
|
</tr>
|
432 |
|
|
<tr>
|
433 |
|
|
<td bgcolor="#ffffff" valign="top">0.7</td>
|
434 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
435 |
|
|
Multi-FPGA support<p>
|
436 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
437 |
|
|
<tr>
|
438 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
439 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
440 |
|
|
</tr>
|
441 |
|
|
<tr>
|
442 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x50</td>
|
443 |
|
|
<td bgcolor="#ffffff" valign="top">Return multi-FPGA information:
|
444 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
445 |
|
|
<tr>
|
446 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
447 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
448 |
|
|
</tr>
|
449 |
|
|
<tr>
|
450 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
451 |
|
|
<td bgcolor="#ffffff" valign="top">Number of FPGA's - 1</td>
|
452 |
|
|
</tr>
|
453 |
|
|
<tr>
|
454 |
|
|
<td bgcolor="#ffffff" valign="top">1</td>
|
455 |
|
|
<td bgcolor="#ffffff" valign="top">Selected FPGA - 1</td>
|
456 |
|
|
</tr>
|
457 |
|
|
<tr>
|
458 |
|
|
<td bgcolor="#ffffff" valign="top">2</td>
|
459 |
|
|
<td bgcolor="#ffffff" valign="top">Parallel configuration support (0:no, 1:yes)</td>
|
460 |
|
|
</tr>
|
461 |
|
|
</table>
|
462 |
|
|
</td>
|
463 |
|
|
</tr>
|
464 |
|
|
<tr>
|
465 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x51</td>
|
466 |
|
|
<td bgcolor="#ffffff" valign="top">Parameters:
|
467 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
468 |
|
|
<tr>
|
469 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Parameter</b></td>
|
470 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
471 |
|
|
</tr>
|
472 |
|
|
<tr>
|
473 |
|
|
<td bgcolor="#ffffff" valign="top">index</td>
|
474 |
|
|
<td bgcolor="#ffffff" valign="top">Select command<br> 0: Select single FPGA <br> 1: Select all FPGA's for configuration</td>
|
475 |
|
|
</tr>
|
476 |
|
|
<tr>
|
477 |
|
|
<td bgcolor="#ffffff" valign="top">value</td>
|
478 |
|
|
<td bgcolor="#ffffff" valign="top">FPGA to select - 1</td>
|
479 |
|
|
</tr>
|
480 |
|
|
</table>
|
481 |
|
|
</td>
|
482 |
|
|
</tr>
|
483 |
|
|
</table>
|
484 |
|
|
</td>
|
485 |
|
|
</tr>
|
486 |
|
|
<tr>
|
487 |
|
|
<td bgcolor="#ffffff" valign="top">1.0</td>
|
488 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
489 |
|
|
Temperature sensor support<p>
|
490 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
491 |
|
|
<tr>
|
492 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
493 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
494 |
|
|
</tr>
|
495 |
|
|
<tr>
|
496 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x58</td>
|
497 |
|
|
<td bgcolor="#ffffff" valign="top">Return temperature data:
|
498 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
499 |
|
|
<tr>
|
500 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
501 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
502 |
|
|
</tr>
|
503 |
|
|
<tr>
|
504 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
505 |
|
|
<td bgcolor="#ffffff" valign="top">Protocol</td>
|
506 |
|
|
</tr>
|
507 |
|
|
<tr>
|
508 |
|
|
<td bgcolor="#ffffff" valign="top">1..n</td>
|
509 |
|
|
<td bgcolor="#ffffff" valign="top">Data</td>
|
510 |
|
|
</tr>
|
511 |
|
|
</table>
|
512 |
|
|
</td>
|
513 |
|
|
</tr>
|
514 |
|
|
</table>
|
515 |
|
|
</td>
|
516 |
|
|
</tr>
|
517 |
|
|
<tr>
|
518 |
|
|
<td bgcolor="#ffffff" valign="top">1.1</td>
|
519 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
520 |
|
|
Flash 2 support<p>
|
521 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
522 |
|
|
<tr>
|
523 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
524 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
525 |
|
|
</tr>
|
526 |
|
|
<tr>
|
527 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x40</td>
|
528 |
|
|
<td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
|
529 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
530 |
|
|
<tr>
|
531 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
532 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
533 |
|
|
</tr>
|
534 |
|
|
<tr>
|
535 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
536 |
|
|
<td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
|
537 |
|
|
</tr>
|
538 |
|
|
<tr>
|
539 |
|
|
<td bgcolor="#ffffff" valign="top">1-2</td>
|
540 |
|
|
<td bgcolor="#ffffff" valign="top">Sector size</td>
|
541 |
|
|
</tr>
|
542 |
|
|
<tr>
|
543 |
|
|
<td bgcolor="#ffffff" valign="top">3-6</td>
|
544 |
|
|
<td bgcolor="#ffffff" valign="top">Number of sectors</td>
|
545 |
|
|
</tr>
|
546 |
|
|
<tr>
|
547 |
|
|
<td bgcolor="#ffffff" valign="top">7</td>
|
548 |
|
|
<td bgcolor="#ffffff" valign="top">Error code</td>
|
549 |
|
|
</tr>
|
550 |
|
|
</table>
|
551 |
|
|
</td>
|
552 |
|
|
</tr>
|
553 |
|
|
<tr>
|
554 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x41</td>
|
555 |
|
|
<td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
|
556 |
|
|
</tr>
|
557 |
|
|
<tr>
|
558 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x42</td>
|
559 |
|
|
<td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
|
560 |
|
|
</tr>
|
561 |
|
|
</table>
|
562 |
|
|
</td>
|
563 |
|
|
</tr>
|
564 |
|
|
<tr>
|
565 |
|
|
<td bgcolor="#ffffff" valign="top">1.2</td>
|
566 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>Indicates an FX3 firmware</td>
|
567 |
|
|
</tr>
|
568 |
|
|
<tr>
|
569 |
|
|
<td bgcolor="#ffffff" valign="top">1.3</td>
|
570 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
571 |
|
|
Debug helper support<p>
|
572 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
573 |
|
|
<tr>
|
574 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
575 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
576 |
|
|
</tr>
|
577 |
|
|
<tr>
|
578 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x28</td>
|
579 |
|
|
<td bgcolor="#ffffff" valign="top">Read debug message given by index (value<<16 | index) Returns:
|
580 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
581 |
|
|
<tr>
|
582 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
583 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
584 |
|
|
</tr>
|
585 |
|
|
<tr>
|
586 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
587 |
|
|
<td bgcolor="#ffffff" valign="top">Error code (!= 0 if fatal error occurred)</td>
|
588 |
|
|
</tr>
|
589 |
|
|
<tr>
|
590 |
|
|
<td bgcolor="#ffffff" valign="top">1..4</td>
|
591 |
|
|
<td bgcolor="#ffffff" valign="top">Index of last message in buffer</td>
|
592 |
|
|
</tr>
|
593 |
|
|
<tr>
|
594 |
|
|
<td bgcolor="#ffffff" valign="top">5..6</td>
|
595 |
|
|
<td bgcolor="#ffffff" valign="top">Number of messages in buffer</td>
|
596 |
|
|
</tr>
|
597 |
|
|
<tr>
|
598 |
|
|
<td bgcolor="#ffffff" valign="top">7..8</td>
|
599 |
|
|
<td bgcolor="#ffffff" valign="top">Size if the message</td>
|
600 |
|
|
</tr>
|
601 |
|
|
<tr>
|
602 |
|
|
<td bgcolor="#ffffff" valign="top">9</td>
|
603 |
|
|
<td bgcolor="#ffffff" valign="top">Type of the message</td>
|
604 |
|
|
</tr>
|
605 |
|
|
<tr>
|
606 |
|
|
<td bgcolor="#ffffff" valign="top">10..</td>
|
607 |
|
|
<td bgcolor="#ffffff" valign="top">Message data</td>
|
608 |
|
|
</tr>
|
609 |
|
|
</table>
|
610 |
|
|
</td>
|
611 |
|
|
</tr>
|
612 |
|
|
<tr>
|
613 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x29</td>
|
614 |
|
|
<td bgcolor="#ffffff" valign="top">Return USB 3.0 errors
|
615 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
616 |
|
|
<tr>
|
617 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
618 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
619 |
|
|
</tr>
|
620 |
|
|
<tr>
|
621 |
|
|
<td bgcolor="#ffffff" valign="top">0..1</td>
|
622 |
|
|
<td bgcolor="#ffffff" valign="top">Send errors</td>
|
623 |
|
|
</tr>
|
624 |
|
|
<tr>
|
625 |
|
|
<td bgcolor="#ffffff" valign="top">2..3</td>
|
626 |
|
|
<td bgcolor="#ffffff" valign="top">Receive errors</td>
|
627 |
|
|
</tr>
|
628 |
|
|
</table>
|
629 |
|
|
</td>
|
630 |
|
|
</tr>
|
631 |
|
|
</table>
|
632 |
|
|
</td>
|
633 |
|
|
</tr>
|
634 |
|
|
<tr>
|
635 |
|
|
<td bgcolor="#ffffff" valign="top">1.4</td>
|
636 |
|
|
<td bgcolor="#ffffff" valign="top" colspan=2>
|
637 |
|
|
Default firmware interface<p>
|
638 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=6>
|
639 |
|
|
<tr>
|
640 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
|
641 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
642 |
|
|
</tr>
|
643 |
|
|
<tr>
|
644 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x60</td>
|
645 |
|
|
<td bgcolor="#ffffff" valign="top">Reset</td>
|
646 |
|
|
</tr>
|
647 |
|
|
<tr>
|
648 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x61</td>
|
649 |
|
|
<td bgcolor="#ffffff" valign="top">Read/write GPIO's:
|
650 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
651 |
|
|
<tr>
|
652 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
653 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
654 |
|
|
</tr>
|
655 |
|
|
<tr>
|
656 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
657 |
|
|
<td bgcolor="#ffffff" valign="top">GPIO state (bits 0..3)</td>
|
658 |
|
|
</tr>
|
659 |
|
|
</table>
|
660 |
|
|
</td>
|
661 |
|
|
</tr>
|
662 |
|
|
<tr>
|
663 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x62</td>
|
664 |
|
|
<td bgcolor="#ffffff" valign="top">Write to low speed interface</td>
|
665 |
|
|
</tr>
|
666 |
|
|
<tr>
|
667 |
|
|
<td bgcolor="#ffffff" valign="top">VC 0x63</td>
|
668 |
|
|
<td bgcolor="#ffffff" valign="top">Read from low speed interface</td>
|
669 |
|
|
</tr>
|
670 |
|
|
<tr>
|
671 |
|
|
<td bgcolor="#ffffff" valign="top">VR 0x64</td>
|
672 |
|
|
<td bgcolor="#ffffff" valign="top">Return Default Interface information:
|
673 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
674 |
|
|
<tr>
|
675 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
676 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
677 |
|
|
</tr>
|
678 |
|
|
<tr>
|
679 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
680 |
|
|
<td bgcolor="#ffffff" valign="top">Version</td>
|
681 |
|
|
</tr>
|
682 |
|
|
<tr>
|
683 |
|
|
<td bgcolor="#ffffff" valign="top">1</td>
|
684 |
|
|
<td bgcolor="#ffffff" valign="top">Output Endpoint of the high speed interface</td>
|
685 |
|
|
</tr>
|
686 |
|
|
<tr>
|
687 |
|
|
<td bgcolor="#ffffff" valign="top">2</td>
|
688 |
|
|
<td bgcolor="#ffffff" valign="top">Input Endpoint of the high speed interface</td>
|
689 |
|
|
</tr>
|
690 |
|
|
</table>
|
691 |
|
|
</td>
|
692 |
|
|
</tr>
|
693 |
|
|
</table>
|
694 |
|
|
</td>
|
695 |
|
|
</tr>
|
696 |
|
|
</table></div>
|
697 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/ZtexDevice1.html" title="class in ztex"><code>ZtexDevice1</code></a>,
|
698 |
|
|
<a href="../ztex/Ztex1.html" title="class in ztex"><code>Ztex1</code></a></dd></dl>
|
699 |
|
|
</li>
|
700 |
|
|
</ul>
|
701 |
|
|
</div>
|
702 |
|
|
<div class="summary">
|
703 |
|
|
<ul class="blockList">
|
704 |
|
|
<li class="blockList">
|
705 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
706 |
|
|
<ul class="blockList">
|
707 |
|
|
<li class="blockList"><a name="field_summary">
|
708 |
|
|
<!-- -->
|
709 |
|
|
</a>
|
710 |
|
|
<h3>Field Summary</h3>
|
711 |
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
712 |
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
713 |
|
|
<tr>
|
714 |
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
715 |
|
|
<th class="colLast" scope="col">Field and Description</th>
|
716 |
|
|
</tr>
|
717 |
|
|
<tr class="altColor">
|
718 |
|
|
<td class="colFirst"><code>static int</code></td>
|
719 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</a></strong></code>
|
720 |
|
|
<div class="block">Capability index for DEBUG helper support.</div>
|
721 |
|
|
</td>
|
722 |
|
|
</tr>
|
723 |
|
|
<tr class="rowColor">
|
724 |
|
|
<td class="colFirst"><code>static int</code></td>
|
725 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEBUG2">CAPABILITY_DEBUG2</a></strong></code>
|
726 |
|
|
<div class="block">Capability index for debug helper 2</div>
|
727 |
|
|
</td>
|
728 |
|
|
</tr>
|
729 |
|
|
<tr class="altColor">
|
730 |
|
|
<td class="colFirst"><code>static int</code></td>
|
731 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEFAULT">CAPABILITY_DEFAULT</a></strong></code>
|
732 |
|
|
<div class="block">Capability index for default firmware interface</div>
|
733 |
|
|
</td>
|
734 |
|
|
</tr>
|
735 |
|
|
<tr class="rowColor">
|
736 |
|
|
<td class="colFirst"><code>static int</code></td>
|
737 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</a></strong></code>
|
738 |
|
|
<div class="block">Capability index for EEPROM support.</div>
|
739 |
|
|
</td>
|
740 |
|
|
</tr>
|
741 |
|
|
<tr class="altColor">
|
742 |
|
|
<td class="colFirst"><code>static int</code></td>
|
743 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</a></strong></code>
|
744 |
|
|
<div class="block">Capability index for FLASH memory support.</div>
|
745 |
|
|
</td>
|
746 |
|
|
</tr>
|
747 |
|
|
<tr class="rowColor">
|
748 |
|
|
<td class="colFirst"><code>static int</code></td>
|
749 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FLASH2">CAPABILITY_FLASH2</a></strong></code>
|
750 |
|
|
<div class="block">Capability index for 2nd FLASH memory support.</div>
|
751 |
|
|
</td>
|
752 |
|
|
</tr>
|
753 |
|
|
<tr class="altColor">
|
754 |
|
|
<td class="colFirst"><code>static int</code></td>
|
755 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</a></strong></code>
|
756 |
|
|
<div class="block">Capability index for FPGA configuration support.</div>
|
757 |
|
|
</td>
|
758 |
|
|
</tr>
|
759 |
|
|
<tr class="rowColor">
|
760 |
|
|
<td class="colFirst"><code>static int</code></td>
|
761 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FX3">CAPABILITY_FX3</a></strong></code>
|
762 |
|
|
<div class="block">Capability index for FX3 firmware</div>
|
763 |
|
|
</td>
|
764 |
|
|
</tr>
|
765 |
|
|
<tr class="altColor">
|
766 |
|
|
<td class="colFirst"><code>static int</code></td>
|
767 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_HS_FPGA">CAPABILITY_HS_FPGA</a></strong></code>
|
768 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
769 |
|
|
</td>
|
770 |
|
|
</tr>
|
771 |
|
|
<tr class="rowColor">
|
772 |
|
|
<td class="colFirst"><code>static int</code></td>
|
773 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_MAC_EEPROM">CAPABILITY_MAC_EEPROM</a></strong></code>
|
774 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
775 |
|
|
</td>
|
776 |
|
|
</tr>
|
777 |
|
|
<tr class="altColor">
|
778 |
|
|
<td class="colFirst"><code>static int</code></td>
|
779 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_MULTI_FPGA">CAPABILITY_MULTI_FPGA</a></strong></code>
|
780 |
|
|
<div class="block">Capability index for multi FPGA support</div>
|
781 |
|
|
</td>
|
782 |
|
|
</tr>
|
783 |
|
|
<tr class="rowColor">
|
784 |
|
|
<td class="colFirst"><code>static int</code></td>
|
785 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_TEMP_SENSOR">CAPABILITY_TEMP_SENSOR</a></strong></code>
|
786 |
|
|
<div class="block">Capability index for Temperature sensor support</div>
|
787 |
|
|
</td>
|
788 |
|
|
</tr>
|
789 |
|
|
<tr class="altColor">
|
790 |
|
|
<td class="colFirst"><code>static int</code></td>
|
791 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</a></strong></code>
|
792 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
793 |
|
|
</td>
|
794 |
|
|
</tr>
|
795 |
|
|
<tr class="rowColor">
|
796 |
|
|
<td class="colFirst"><code>static java.lang.String[]</code></td>
|
797 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</a></strong></code>
|
798 |
|
|
<div class="block">The names of the capabilities</div>
|
799 |
|
|
</td>
|
800 |
|
|
</tr>
|
801 |
|
|
<tr class="altColor">
|
802 |
|
|
<td class="colFirst"><code><a href="../ztex/ConfigData.html" title="class in ztex">ConfigData</a></code></td>
|
803 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#config">config</a></strong></code>
|
804 |
|
|
<div class="block">The configuration data structure
|
805 |
|
|
is initialized if this kind of data is present in MAC EEPROM.</div>
|
806 |
|
|
</td>
|
807 |
|
|
</tr>
|
808 |
|
|
<tr class="rowColor">
|
809 |
|
|
<td class="colFirst"><code>int</code></td>
|
810 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2LogIdx">debug2LogIdx</a></strong></code>
|
811 |
|
|
<div class="block">Index of next log entry (messages of type 1 and 2) to be read.</div>
|
812 |
|
|
</td>
|
813 |
|
|
</tr>
|
814 |
|
|
<tr class="altColor">
|
815 |
|
|
<td class="colFirst"><code>int</code></td>
|
816 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</a></strong></code>
|
817 |
|
|
<div class="block">Is set by <a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])"><code>debugReadMessages(boolean,byte[])</code></a> and contains the number of new messages.</div>
|
818 |
|
|
</td>
|
819 |
|
|
</tr>
|
820 |
|
|
<tr class="rowColor">
|
821 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
822 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultDisableWarnings">defaultDisableWarnings</a></strong></code>
|
823 |
|
|
<div class="block">disable update warnings.</div>
|
824 |
|
|
</td>
|
825 |
|
|
</tr>
|
826 |
|
|
<tr class="altColor">
|
827 |
|
|
<td class="colFirst"><code>int</code></td>
|
828 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLatestSubVersion">defaultLatestSubVersion</a></strong></code>
|
829 |
|
|
<div class="block">sub-version number of the latest default interface.</div>
|
830 |
|
|
</td>
|
831 |
|
|
</tr>
|
832 |
|
|
<tr class="rowColor">
|
833 |
|
|
<td class="colFirst"><code>int</code></td>
|
834 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLatestVersion">defaultLatestVersion</a></strong></code>
|
835 |
|
|
<div class="block">version number of the latest default interface.</div>
|
836 |
|
|
</td>
|
837 |
|
|
</tr>
|
838 |
|
|
<tr class="altColor">
|
839 |
|
|
<td class="colFirst"><code>int</code></td>
|
840 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</a></strong></code>
|
841 |
|
|
<div class="block">Number of bytes written to EEPROM.</div>
|
842 |
|
|
</td>
|
843 |
|
|
</tr>
|
844 |
|
|
<tr class="rowColor">
|
845 |
|
|
<td class="colFirst"><code>int</code></td>
|
846 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</a></strong></code>
|
847 |
|
|
<div class="block">Checksum of the last EEPROM transfer.</div>
|
848 |
|
|
</td>
|
849 |
|
|
</tr>
|
850 |
|
|
<tr class="altColor">
|
851 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
852 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#enableExtraFpgaConfigurationChecks">enableExtraFpgaConfigurationChecks</a></strong></code>
|
853 |
|
|
<div class="block">Enables extra FPGA configuration checks.</div>
|
854 |
|
|
</td>
|
855 |
|
|
</tr>
|
856 |
|
|
<tr class="rowColor">
|
857 |
|
|
<td class="colFirst"><code>static int</code></td>
|
858 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_BUSY">FLASH_EC_BUSY</a></strong></code>
|
859 |
|
|
<div class="block">Signals that Flash memory it busy.</div>
|
860 |
|
|
</td>
|
861 |
|
|
</tr>
|
862 |
|
|
<tr class="altColor">
|
863 |
|
|
<td class="colFirst"><code>static int</code></td>
|
864 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_CMD_ERROR">FLASH_EC_CMD_ERROR</a></strong></code>
|
865 |
|
|
<div class="block">Signals an error while attempting to execute a command.</div>
|
866 |
|
|
</td>
|
867 |
|
|
</tr>
|
868 |
|
|
<tr class="rowColor">
|
869 |
|
|
<td class="colFirst"><code>static int</code></td>
|
870 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</a></strong></code>
|
871 |
|
|
<div class="block">Means no error.</div>
|
872 |
|
|
</td>
|
873 |
|
|
</tr>
|
874 |
|
|
<tr class="altColor">
|
875 |
|
|
<td class="colFirst"><code>static int</code></td>
|
876 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</a></strong></code>
|
877 |
|
|
<div class="block">Signals the installed Flash memory is not supported.</div>
|
878 |
|
|
</td>
|
879 |
|
|
</tr>
|
880 |
|
|
<tr class="rowColor">
|
881 |
|
|
<td class="colFirst"><code>static int</code></td>
|
882 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</a></strong></code>
|
883 |
|
|
<div class="block">Signals that another Flash operation is pending.</div>
|
884 |
|
|
</td>
|
885 |
|
|
</tr>
|
886 |
|
|
<tr class="altColor">
|
887 |
|
|
<td class="colFirst"><code>static int</code></td>
|
888 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</a></strong></code>
|
889 |
|
|
<div class="block">Signals an error while attempting to read from Flash.</div>
|
890 |
|
|
</td>
|
891 |
|
|
</tr>
|
892 |
|
|
<tr class="rowColor">
|
893 |
|
|
<td class="colFirst"><code>static int</code></td>
|
894 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_RUNTIME">FLASH_EC_RUNTIME</a></strong></code>
|
895 |
|
|
<div class="block">Signals a runtime error of the firmware.</div>
|
896 |
|
|
</td>
|
897 |
|
|
</tr>
|
898 |
|
|
<tr class="altColor">
|
899 |
|
|
<td class="colFirst"><code>static int</code></td>
|
900 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</a></strong></code>
|
901 |
|
|
<div class="block">Signals that a timeout occurred.</div>
|
902 |
|
|
</td>
|
903 |
|
|
</tr>
|
904 |
|
|
<tr class="rowColor">
|
905 |
|
|
<td class="colFirst"><code>static int</code></td>
|
906 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</a></strong></code>
|
907 |
|
|
<div class="block">Signals an error while attempting to write to Flash.</div>
|
908 |
|
|
</td>
|
909 |
|
|
</tr>
|
910 |
|
|
<tr class="altColor">
|
911 |
|
|
<td class="colFirst"><code>int</code></td>
|
912 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2EC">flash2EC</a></strong></code>
|
913 |
|
|
<div class="block">Last 2nd Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>.</div>
|
914 |
|
|
</td>
|
915 |
|
|
</tr>
|
916 |
|
|
<tr class="rowColor">
|
917 |
|
|
<td class="colFirst"><code>int</code></td>
|
918 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashEC">flashEC</a></strong></code>
|
919 |
|
|
<div class="block">Last Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>.</div>
|
920 |
|
|
</td>
|
921 |
|
|
</tr>
|
922 |
|
|
<tr class="altColor">
|
923 |
|
|
<td class="colFirst"><code>int</code></td>
|
924 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#tempSensorUpdateInterval">tempSensorUpdateInterval</a></strong></code>
|
925 |
|
|
<div class="block">smallest temperature sensor update interval in ms</div>
|
926 |
|
|
</td>
|
927 |
|
|
</tr>
|
928 |
|
|
<tr class="rowColor">
|
929 |
|
|
<td class="colFirst"><code>int</code></td>
|
930 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#usb3RcvErrors">usb3RcvErrors</a></strong></code>
|
931 |
|
|
<div class="block">USB 3.0 receive error count.</div>
|
932 |
|
|
</td>
|
933 |
|
|
</tr>
|
934 |
|
|
<tr class="altColor">
|
935 |
|
|
<td class="colFirst"><code>int</code></td>
|
936 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#usb3SndErrors">usb3SndErrors</a></strong></code>
|
937 |
|
|
<div class="block">USB 3.0 send error count.</div>
|
938 |
|
|
</td>
|
939 |
|
|
</tr>
|
940 |
|
|
<tr class="rowColor">
|
941 |
|
|
<td class="colFirst"><code>static int</code></td>
|
942 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_ADDRESS_ERROR">XMEGA_EC_ADDRESS_ERROR</a></strong></code>
|
943 |
|
|
<div class="block">Signals an address error (invalid address or wrong page size).</div>
|
944 |
|
|
</td>
|
945 |
|
|
</tr>
|
946 |
|
|
<tr class="altColor">
|
947 |
|
|
<td class="colFirst"><code>static int</code></td>
|
948 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_INVALID_DEVICE">XMEGA_EC_INVALID_DEVICE</a></strong></code>
|
949 |
|
|
<div class="block">Signals that the ATxmega controller is not supported.</div>
|
950 |
|
|
</td>
|
951 |
|
|
</tr>
|
952 |
|
|
<tr class="rowColor">
|
953 |
|
|
<td class="colFirst"><code>static int</code></td>
|
954 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NO_ERROR">XMEGA_EC_NO_ERROR</a></strong></code>
|
955 |
|
|
<div class="block">Means no error.</div>
|
956 |
|
|
</td>
|
957 |
|
|
</tr>
|
958 |
|
|
<tr class="altColor">
|
959 |
|
|
<td class="colFirst"><code>static int</code></td>
|
960 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NVM_BUSY">XMEGA_EC_NVM_BUSY</a></strong></code>
|
961 |
|
|
<div class="block">Signals that the NVM is busy.</div>
|
962 |
|
|
</td>
|
963 |
|
|
</tr>
|
964 |
|
|
<tr class="rowColor">
|
965 |
|
|
<td class="colFirst"><code>static int</code></td>
|
966 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NVM_TIMEOUT">XMEGA_EC_NVM_TIMEOUT</a></strong></code>
|
967 |
|
|
<div class="block">Signals that an NVM timeout occurred.</div>
|
968 |
|
|
</td>
|
969 |
|
|
</tr>
|
970 |
|
|
<tr class="altColor">
|
971 |
|
|
<td class="colFirst"><code>static int</code></td>
|
972 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_PDI_READ_ERROR">XMEGA_EC_PDI_READ_ERROR</a></strong></code>
|
973 |
|
|
<div class="block">Signals a PDI read error.</div>
|
974 |
|
|
</td>
|
975 |
|
|
</tr>
|
976 |
|
|
<tr class="rowColor">
|
977 |
|
|
<td class="colFirst"><code>int</code></td>
|
978 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEC">xmegaEC</a></strong></code>
|
979 |
|
|
<div class="block">Last ATxmega error code obtained by <a href="../ztex/Ztex1v1.html#xmegaState()"><code>xmegaState()</code></a>.</div>
|
980 |
|
|
</td>
|
981 |
|
|
</tr>
|
982 |
|
|
</table>
|
983 |
|
|
<ul class="blockList">
|
984 |
|
|
<li class="blockList"><a name="fields_inherited_from_class_ztex.Ztex1">
|
985 |
|
|
<!-- -->
|
986 |
|
|
</a>
|
987 |
|
|
<h3>Fields inherited from class ztex.<a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></h3>
|
988 |
|
|
<code><a href="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</a></code></li>
|
989 |
|
|
</ul>
|
990 |
|
|
</li>
|
991 |
|
|
</ul>
|
992 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
993 |
|
|
<ul class="blockList">
|
994 |
|
|
<li class="blockList"><a name="constructor_summary">
|
995 |
|
|
<!-- -->
|
996 |
|
|
</a>
|
997 |
|
|
<h3>Constructor Summary</h3>
|
998 |
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
999 |
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
1000 |
|
|
<tr>
|
1001 |
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
1002 |
|
|
</tr>
|
1003 |
|
|
<tr class="altColor">
|
1004 |
|
|
<td class="colOne"><code><strong><a href="../ztex/Ztex1v1.html#Ztex1v1(ztex.ZtexDevice1)">Ztex1v1</a></strong>(<a href="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</a> pDev)</code>
|
1005 |
|
|
<div class="block">Constructs an instance from a given device.</div>
|
1006 |
|
|
</td>
|
1007 |
|
|
</tr>
|
1008 |
|
|
</table>
|
1009 |
|
|
</li>
|
1010 |
|
|
</ul>
|
1011 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
1012 |
|
|
<ul class="blockList">
|
1013 |
|
|
<li class="blockList"><a name="method_summary">
|
1014 |
|
|
<!-- -->
|
1015 |
|
|
</a>
|
1016 |
|
|
<h3>Method Summary</h3>
|
1017 |
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
1018 |
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
1019 |
|
|
<tr>
|
1020 |
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
1021 |
|
|
<th class="colLast" scope="col">Method and Description</th>
|
1022 |
|
|
</tr>
|
1023 |
|
|
<tr class="altColor">
|
1024 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1025 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</a></strong>(java.lang.String pf)</code>
|
1026 |
|
|
<div class="block">Creates a String with capability information.</div>
|
1027 |
|
|
</td>
|
1028 |
|
|
</tr>
|
1029 |
|
|
<tr class="rowColor">
|
1030 |
|
|
<td class="colFirst"><code>void</code></td>
|
1031 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</a></strong>(int i)</code>
|
1032 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
|
1033 |
|
|
</td>
|
1034 |
|
|
</tr>
|
1035 |
|
|
<tr class="altColor">
|
1036 |
|
|
<td class="colFirst"><code>void</code></td>
|
1037 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCapability(int,%20int)">checkCapability</a></strong>(int i,
|
1038 |
|
|
int j)</code>
|
1039 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
|
1040 |
|
|
</td>
|
1041 |
|
|
</tr>
|
1042 |
|
|
<tr class="rowColor">
|
1043 |
|
|
<td class="colFirst"><code>void</code></td>
|
1044 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCompatible(int,%20int,%20int,%20int)">checkCompatible</a></strong>(int productId0,
|
1045 |
|
|
int productId1,
|
1046 |
|
|
int productId2,
|
1047 |
|
|
int productId3)</code>
|
1048 |
|
|
<div class="block">Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.</div>
|
1049 |
|
|
</td>
|
1050 |
|
|
</tr>
|
1051 |
|
|
<tr class="altColor">
|
1052 |
|
|
<td class="colFirst"><code>void</code></td>
|
1053 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkValid()">checkValid</a></strong>()</code>
|
1054 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</div>
|
1055 |
|
|
</td>
|
1056 |
|
|
</tr>
|
1057 |
|
|
<tr class="rowColor">
|
1058 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1059 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#compatible(int,%20int,%20int,%20int)">compatible</a></strong>(int productId0,
|
1060 |
|
|
int productId1,
|
1061 |
|
|
int productId2,
|
1062 |
|
|
int productId3)</code>
|
1063 |
|
|
<div class="block">Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.</div>
|
1064 |
|
|
</td>
|
1065 |
|
|
</tr>
|
1066 |
|
|
<tr class="altColor">
|
1067 |
|
|
<td class="colFirst"><code>long</code></td>
|
1068 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.io.InputStream,%20boolean,%20int)">configureFpga</a></strong>(java.io.InputStream inputStream,
|
1069 |
|
|
boolean force,
|
1070 |
|
|
int bs)</code>
|
1071 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
1072 |
|
|
</td>
|
1073 |
|
|
</tr>
|
1074 |
|
|
<tr class="rowColor">
|
1075 |
|
|
<td class="colFirst"><code>long</code></td>
|
1076 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.lang.String,%20boolean)">configureFpga</a></strong>(java.lang.String fwFileName,
|
1077 |
|
|
boolean force)</code>
|
1078 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
1079 |
|
|
</td>
|
1080 |
|
|
</tr>
|
1081 |
|
|
<tr class="altColor">
|
1082 |
|
|
<td class="colFirst"><code>long</code></td>
|
1083 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.lang.String,%20boolean,%20int)">configureFpga</a></strong>(java.lang.String fwFileName,
|
1084 |
|
|
boolean force,
|
1085 |
|
|
int bs)</code>
|
1086 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
1087 |
|
|
</td>
|
1088 |
|
|
</tr>
|
1089 |
|
|
<tr class="rowColor">
|
1090 |
|
|
<td class="colFirst"><code>long</code></td>
|
1091 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaHS(java.io.InputStream,%20boolean,%20int)">configureFpgaHS</a></strong>(java.io.InputStream inputStream,
|
1092 |
|
|
boolean force,
|
1093 |
|
|
int bs)</code>
|
1094 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
|
1095 |
|
|
</td>
|
1096 |
|
|
</tr>
|
1097 |
|
|
<tr class="altColor">
|
1098 |
|
|
<td class="colFirst"><code>long</code></td>
|
1099 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaHS(java.lang.String,%20boolean,%20int)">configureFpgaHS</a></strong>(java.lang.String fwFileName,
|
1100 |
|
|
boolean force,
|
1101 |
|
|
int bs)</code>
|
1102 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
|
1103 |
|
|
</td>
|
1104 |
|
|
</tr>
|
1105 |
|
|
<tr class="rowColor">
|
1106 |
|
|
<td class="colFirst"><code>long</code></td>
|
1107 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaLS(java.io.InputStream,%20boolean,%20int)">configureFpgaLS</a></strong>(java.io.InputStream inputStream,
|
1108 |
|
|
boolean force,
|
1109 |
|
|
int bs)</code>
|
1110 |
|
|
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
|
1111 |
|
|
</td>
|
1112 |
|
|
</tr>
|
1113 |
|
|
<tr class="altColor">
|
1114 |
|
|
<td class="colFirst"><code>long</code></td>
|
1115 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaLS(java.lang.String,%20boolean,%20int)">configureFpgaLS</a></strong>(java.lang.String fwFileName,
|
1116 |
|
|
boolean force,
|
1117 |
|
|
int bs)</code>
|
1118 |
|
|
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
|
1119 |
|
|
</td>
|
1120 |
|
|
</tr>
|
1121 |
|
|
<tr class="rowColor">
|
1122 |
|
|
<td class="colFirst"><code>int</code></td>
|
1123 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2Cnt()">debug2Cnt</a></strong>()</code>
|
1124 |
|
|
<div class="block">Returns the number of messages in buffer.</div>
|
1125 |
|
|
</td>
|
1126 |
|
|
</tr>
|
1127 |
|
|
<tr class="altColor">
|
1128 |
|
|
<td class="colFirst"><code>int</code></td>
|
1129 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2EC()">debug2EC</a></strong>()</code>
|
1130 |
|
|
<div class="block">Returns an error code if a fatal error occurred (0 if no error occurred)</div>
|
1131 |
|
|
</td>
|
1132 |
|
|
</tr>
|
1133 |
|
|
<tr class="rowColor">
|
1134 |
|
|
<td class="colFirst"><code>byte[]</code></td>
|
1135 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2GetMessage(int)">debug2GetMessage</a></strong>(int idx)</code>
|
1136 |
|
|
<div class="block">Reads a debug message with given Index in raw format.</div>
|
1137 |
|
|
</td>
|
1138 |
|
|
</tr>
|
1139 |
|
|
<tr class="altColor">
|
1140 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1141 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2GetNextLogMessage()">debug2GetNextLogMessage</a></strong>()</code>
|
1142 |
|
|
<div class="block">Reads the next log message in string format.</div>
|
1143 |
|
|
</td>
|
1144 |
|
|
</tr>
|
1145 |
|
|
<tr class="rowColor">
|
1146 |
|
|
<td class="colFirst"><code>int</code></td>
|
1147 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2LastIdx()">debug2LastIdx</a></strong>()</code>
|
1148 |
|
|
<div class="block">Returns index of last message + 1</div>
|
1149 |
|
|
</td>
|
1150 |
|
|
</tr>
|
1151 |
|
|
<tr class="altColor">
|
1152 |
|
|
<td class="colFirst"><code>void</code></td>
|
1153 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2PrintNextLogMessages(java.io.PrintStream)">debug2PrintNextLogMessages</a></strong>(java.io.PrintStream out)</code>
|
1154 |
|
|
<div class="block">Prints new log message.</div>
|
1155 |
|
|
</td>
|
1156 |
|
|
</tr>
|
1157 |
|
|
<tr class="rowColor">
|
1158 |
|
|
<td class="colFirst"><code>int</code></td>
|
1159 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</a></strong>()</code>
|
1160 |
|
|
<div class="block">Returns the number of the last message read out by <a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])"><code>debugReadMessages(boolean,byte[])</code></a></div>
|
1161 |
|
|
</td>
|
1162 |
|
|
</tr>
|
1163 |
|
|
<tr class="altColor">
|
1164 |
|
|
<td class="colFirst"><code>int</code></td>
|
1165 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</a></strong>()</code>
|
1166 |
|
|
<div class="block">Returns the size of messages in bytes.</div>
|
1167 |
|
|
</td>
|
1168 |
|
|
</tr>
|
1169 |
|
|
<tr class="rowColor">
|
1170 |
|
|
<td class="colFirst"><code>int</code></td>
|
1171 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])">debugReadMessages</a></strong>(boolean all,
|
1172 |
|
|
byte[] buf)</code>
|
1173 |
|
|
<div class="block">Reads debug messages from message stack.</div>
|
1174 |
|
|
</td>
|
1175 |
|
|
</tr>
|
1176 |
|
|
<tr class="altColor">
|
1177 |
|
|
<td class="colFirst"><code>int</code></td>
|
1178 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</a></strong>()</code>
|
1179 |
|
|
<div class="block">Returns the size of message stack in messages.</div>
|
1180 |
|
|
</td>
|
1181 |
|
|
</tr>
|
1182 |
|
|
<tr class="rowColor">
|
1183 |
|
|
<td class="colFirst"><code>void</code></td>
|
1184 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultCheckVersion(int)">defaultCheckVersion</a></strong>(int version)</code>
|
1185 |
|
|
<div class="block">Checks version of the default interface.</div>
|
1186 |
|
|
</td>
|
1187 |
|
|
</tr>
|
1188 |
|
|
<tr class="altColor">
|
1189 |
|
|
<td class="colFirst"><code>int</code></td>
|
1190 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultGpioCtl(int,%20int)">defaultGpioCtl</a></strong>(int mask,
|
1191 |
|
|
int value)</code>
|
1192 |
|
|
<div class="block">Reads and modifies the 4 GPIO pins.</div>
|
1193 |
|
|
</td>
|
1194 |
|
|
</tr>
|
1195 |
|
|
<tr class="rowColor">
|
1196 |
|
|
<td class="colFirst"><code>int</code></td>
|
1197 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultInEP()">defaultInEP</a></strong>()</code>
|
1198 |
|
|
<div class="block">Returns input Endpoint of default interface
|
1199 |
|
|
used for high speed communication.</div>
|
1200 |
|
|
</td>
|
1201 |
|
|
</tr>
|
1202 |
|
|
<tr class="altColor">
|
1203 |
|
|
<td class="colFirst"><code>int</code></td>
|
1204 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiGet(int)">defaultLsiGet</a></strong>(int addr)</code>
|
1205 |
|
|
<div class="block">Read data from the low speed interface of default firmwares.</div>
|
1206 |
|
|
</td>
|
1207 |
|
|
</tr>
|
1208 |
|
|
<tr class="rowColor">
|
1209 |
|
|
<td class="colFirst"><code>void</code></td>
|
1210 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiGet(int,%20int[],%20int)">defaultLsiGet</a></strong>(int addr,
|
1211 |
|
|
int[] val,
|
1212 |
|
|
int length)</code>
|
1213 |
|
|
<div class="block">Read data from the low speed interface of default firmwares.</div>
|
1214 |
|
|
</td>
|
1215 |
|
|
</tr>
|
1216 |
|
|
<tr class="altColor">
|
1217 |
|
|
<td class="colFirst"><code>void</code></td>
|
1218 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int[],%20int[],%20int)">defaultLsiSet</a></strong>(int[] addr,
|
1219 |
|
|
int[] val,
|
1220 |
|
|
int length)</code>
|
1221 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.</div>
|
1222 |
|
|
</td>
|
1223 |
|
|
</tr>
|
1224 |
|
|
<tr class="rowColor">
|
1225 |
|
|
<td class="colFirst"><code>void</code></td>
|
1226 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int,%20int)">defaultLsiSet</a></strong>(int addr,
|
1227 |
|
|
int val)</code>
|
1228 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.</div>
|
1229 |
|
|
</td>
|
1230 |
|
|
</tr>
|
1231 |
|
|
<tr class="altColor">
|
1232 |
|
|
<td class="colFirst"><code>void</code></td>
|
1233 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int,%20int[],%20int)">defaultLsiSet</a></strong>(int addr,
|
1234 |
|
|
int[] val,
|
1235 |
|
|
int length)</code>
|
1236 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.</div>
|
1237 |
|
|
</td>
|
1238 |
|
|
</tr>
|
1239 |
|
|
<tr class="rowColor">
|
1240 |
|
|
<td class="colFirst"><code>int</code></td>
|
1241 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultOutEP()">defaultOutEP</a></strong>()</code>
|
1242 |
|
|
<div class="block">Returns output Endpoint of default interface
|
1243 |
|
|
used for high speed communication.</div>
|
1244 |
|
|
</td>
|
1245 |
|
|
</tr>
|
1246 |
|
|
<tr class="altColor">
|
1247 |
|
|
<td class="colFirst"><code>void</code></td>
|
1248 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultReset()">defaultReset</a></strong>()</code>
|
1249 |
|
|
<div class="block">Assert the reset signal.</div>
|
1250 |
|
|
</td>
|
1251 |
|
|
</tr>
|
1252 |
|
|
<tr class="rowColor">
|
1253 |
|
|
<td class="colFirst"><code>void</code></td>
|
1254 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultReset(boolean)">defaultReset</a></strong>(boolean leave)</code>
|
1255 |
|
|
<div class="block">Assert the reset signal.</div>
|
1256 |
|
|
</td>
|
1257 |
|
|
</tr>
|
1258 |
|
|
<tr class="altColor">
|
1259 |
|
|
<td class="colFirst"><code>int</code></td>
|
1260 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultSubVersion()">defaultSubVersion</a></strong>()</code>
|
1261 |
|
|
<div class="block">Returns sub-version of the default interface.</div>
|
1262 |
|
|
</td>
|
1263 |
|
|
</tr>
|
1264 |
|
|
<tr class="rowColor">
|
1265 |
|
|
<td class="colFirst"><code>int</code></td>
|
1266 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultVersion()">defaultVersion</a></strong>()</code>
|
1267 |
|
|
<div class="block">Returns version of the default interface or 0 if default interface is not present.</div>
|
1268 |
|
|
</td>
|
1269 |
|
|
</tr>
|
1270 |
|
|
<tr class="altColor">
|
1271 |
|
|
<td class="colFirst"><code>void</code></td>
|
1272 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</a></strong>()</code>
|
1273 |
|
|
<div class="block"><strong>Deprecated.</strong>
|
1274 |
|
|
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></i></div>
|
1275 |
|
|
</div>
|
1276 |
|
|
</td>
|
1277 |
|
|
</tr>
|
1278 |
|
|
<tr class="rowColor">
|
1279 |
|
|
<td class="colFirst"><code>void</code></td>
|
1280 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromRead(int,%20byte[],%20int)">eepromRead</a></strong>(int addr,
|
1281 |
|
|
byte[] buf,
|
1282 |
|
|
int length)</code>
|
1283 |
|
|
<div class="block">Reads data from the EEPROM.</div>
|
1284 |
|
|
</td>
|
1285 |
|
|
</tr>
|
1286 |
|
|
<tr class="altColor">
|
1287 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1288 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromState()">eepromState</a></strong>()</code>
|
1289 |
|
|
<div class="block">Reads the current EEPROM status.</div>
|
1290 |
|
|
</td>
|
1291 |
|
|
</tr>
|
1292 |
|
|
<tr class="rowColor">
|
1293 |
|
|
<td class="colFirst"><code>long</code></td>
|
1294 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromUpload(java.lang.String,%20boolean)">eepromUpload</a></strong>(java.lang.String imgFileName,
|
1295 |
|
|
boolean force)</code>
|
1296 |
|
|
<div class="block"><strong>Deprecated.</strong>
|
1297 |
|
|
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)"><code>nvUploadFirmware(String,boolean)</code></a></i></div>
|
1298 |
|
|
</div>
|
1299 |
|
|
</td>
|
1300 |
|
|
</tr>
|
1301 |
|
|
<tr class="altColor">
|
1302 |
|
|
<td class="colFirst"><code>long</code></td>
|
1303 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromUpload(ztex.ZtexImgFile1,%20boolean)">eepromUpload</a></strong>(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a> imgFile,
|
1304 |
|
|
boolean force)</code>
|
1305 |
|
|
<div class="block"><strong>Deprecated.</strong>
|
1306 |
|
|
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(ztex.ZtexImgFile1,%20boolean)"><code>nvUploadFirmware(ZtexImgFile1,boolean)</code></a></i></div>
|
1307 |
|
|
</div>
|
1308 |
|
|
</td>
|
1309 |
|
|
</tr>
|
1310 |
|
|
<tr class="rowColor">
|
1311 |
|
|
<td class="colFirst"><code>void</code></td>
|
1312 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromWrite(int,%20byte[],%20int)">eepromWrite</a></strong>(int addr,
|
1313 |
|
|
byte[] buf,
|
1314 |
|
|
int length)</code>
|
1315 |
|
|
<div class="block">Writes data to the EEPROM.</div>
|
1316 |
|
|
</td>
|
1317 |
|
|
</tr>
|
1318 |
|
|
<tr class="altColor">
|
1319 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1320 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Enabled()">flash2Enabled</a></strong>()</code>
|
1321 |
|
|
<div class="block">Returns true if 2nd Flash memory is installed.</div>
|
1322 |
|
|
</td>
|
1323 |
|
|
</tr>
|
1324 |
|
|
<tr class="rowColor">
|
1325 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1326 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Info()">flash2Info</a></strong>()</code>
|
1327 |
|
|
<div class="block">Returns information about 2nd Flash memory.</div>
|
1328 |
|
|
</td>
|
1329 |
|
|
</tr>
|
1330 |
|
|
<tr class="altColor">
|
1331 |
|
|
<td class="colFirst"><code>void</code></td>
|
1332 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2ReadSector(int,%20byte[])">flash2ReadSector</a></strong>(int sector,
|
1333 |
|
|
byte[] buf)</code>
|
1334 |
|
|
<div class="block">Reads one sector from the 2nd Flash memory.</div>
|
1335 |
|
|
</td>
|
1336 |
|
|
</tr>
|
1337 |
|
|
<tr class="rowColor">
|
1338 |
|
|
<td class="colFirst"><code>void</code></td>
|
1339 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2ReadSector(int,%20int,%20byte[])">flash2ReadSector</a></strong>(int sector,
|
1340 |
|
|
int num,
|
1341 |
|
|
byte[] buf)</code>
|
1342 |
|
|
<div class="block">Reads a integer number of sectors from the 2nd Flash memory.</div>
|
1343 |
|
|
</td>
|
1344 |
|
|
</tr>
|
1345 |
|
|
<tr class="altColor">
|
1346 |
|
|
<td class="colFirst"><code>int</code></td>
|
1347 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Sectors()">flash2Sectors</a></strong>()</code>
|
1348 |
|
|
<div class="block">Returns the number of sectors of the 2nd Flash memory or 0, if no 2nd Flash is installed.</div>
|
1349 |
|
|
</td>
|
1350 |
|
|
</tr>
|
1351 |
|
|
<tr class="rowColor">
|
1352 |
|
|
<td class="colFirst"><code>int</code></td>
|
1353 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2SectorSize()">flash2SectorSize</a></strong>()</code>
|
1354 |
|
|
<div class="block">Returns the sector size of the 2nd Flash memory or 0, if no 2nd Flash is installed.</div>
|
1355 |
|
|
</td>
|
1356 |
|
|
</tr>
|
1357 |
|
|
<tr class="altColor">
|
1358 |
|
|
<td class="colFirst"><code>long</code></td>
|
1359 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Size()">flash2Size</a></strong>()</code>
|
1360 |
|
|
<div class="block">Returns the size of 2nd Flash memory or 0, if no 2nd Flash memory is installed.</div>
|
1361 |
|
|
</td>
|
1362 |
|
|
</tr>
|
1363 |
|
|
<tr class="rowColor">
|
1364 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1365 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2State()">flash2State</a></strong>()</code>
|
1366 |
|
|
<div class="block">Reads the the 2nd Flash memory status and information.</div>
|
1367 |
|
|
</td>
|
1368 |
|
|
</tr>
|
1369 |
|
|
<tr class="altColor">
|
1370 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1371 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2StrError()">flash2StrError</a></strong>()</code>
|
1372 |
|
|
<div class="block">Gets the last 2nd Flash error from the device.</div>
|
1373 |
|
|
</td>
|
1374 |
|
|
</tr>
|
1375 |
|
|
<tr class="rowColor">
|
1376 |
|
|
<td class="colFirst"><code>void</code></td>
|
1377 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2WriteSector(int,%20byte[])">flash2WriteSector</a></strong>(int sector,
|
1378 |
|
|
byte[] buf)</code>
|
1379 |
|
|
<div class="block">Writes one sector to the 2nd Flash memory.</div>
|
1380 |
|
|
</td>
|
1381 |
|
|
</tr>
|
1382 |
|
|
<tr class="altColor">
|
1383 |
|
|
<td class="colFirst"><code>void</code></td>
|
1384 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2WriteSector(int,%20int,%20byte[])">flash2WriteSector</a></strong>(int sector,
|
1385 |
|
|
int num,
|
1386 |
|
|
byte[] buf)</code>
|
1387 |
|
|
<div class="block">Writes a integer number of sectors to the 2nd Flash.</div>
|
1388 |
|
|
</td>
|
1389 |
|
|
</tr>
|
1390 |
|
|
<tr class="rowColor">
|
1391 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1392 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</a></strong>()</code>
|
1393 |
|
|
<div class="block">Returns true if Flash memory is installed.</div>
|
1394 |
|
|
</td>
|
1395 |
|
|
</tr>
|
1396 |
|
|
<tr class="altColor">
|
1397 |
|
|
<td class="colFirst"><code>int</code></td>
|
1398 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</a></strong>()</code>
|
1399 |
|
|
<div class="block">Returns the first free sector of the Flash memory.</div>
|
1400 |
|
|
</td>
|
1401 |
|
|
</tr>
|
1402 |
|
|
<tr class="rowColor">
|
1403 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1404 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashInfo()">flashInfo</a></strong>()</code>
|
1405 |
|
|
<div class="block">Returns information about Flash memory.</div>
|
1406 |
|
|
</td>
|
1407 |
|
|
</tr>
|
1408 |
|
|
<tr class="altColor">
|
1409 |
|
|
<td class="colFirst"><code>void</code></td>
|
1410 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashReadSector(int,%20byte[])">flashReadSector</a></strong>(int sector,
|
1411 |
|
|
byte[] buf)</code>
|
1412 |
|
|
<div class="block">Reads one sector from the Flash.</div>
|
1413 |
|
|
</td>
|
1414 |
|
|
</tr>
|
1415 |
|
|
<tr class="rowColor">
|
1416 |
|
|
<td class="colFirst"><code>void</code></td>
|
1417 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashReadSector(int,%20int,%20byte[])">flashReadSector</a></strong>(int sector,
|
1418 |
|
|
int num,
|
1419 |
|
|
byte[] buf)</code>
|
1420 |
|
|
<div class="block">Reads a integer number of sectors from the Flash.</div>
|
1421 |
|
|
</td>
|
1422 |
|
|
</tr>
|
1423 |
|
|
<tr class="altColor">
|
1424 |
|
|
<td class="colFirst"><code>void</code></td>
|
1425 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</a></strong>()</code>
|
1426 |
|
|
<div class="block">Clears a Bitstream from the Flash.</div>
|
1427 |
|
|
</td>
|
1428 |
|
|
</tr>
|
1429 |
|
|
<tr class="rowColor">
|
1430 |
|
|
<td class="colFirst"><code>int</code></td>
|
1431 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSectors()">flashSectors</a></strong>()</code>
|
1432 |
|
|
<div class="block">Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.</div>
|
1433 |
|
|
</td>
|
1434 |
|
|
</tr>
|
1435 |
|
|
<tr class="altColor">
|
1436 |
|
|
<td class="colFirst"><code>int</code></td>
|
1437 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</a></strong>()</code>
|
1438 |
|
|
<div class="block">Returns the sector size of the Flash memory or 0, if no Flash is installed.</div>
|
1439 |
|
|
</td>
|
1440 |
|
|
</tr>
|
1441 |
|
|
<tr class="rowColor">
|
1442 |
|
|
<td class="colFirst"><code>long</code></td>
|
1443 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSize()">flashSize</a></strong>()</code>
|
1444 |
|
|
<div class="block">Returns the size of Flash memory or 0, if no Flash memory is installed.</div>
|
1445 |
|
|
</td>
|
1446 |
|
|
</tr>
|
1447 |
|
|
<tr class="altColor">
|
1448 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1449 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashState()">flashState</a></strong>()</code>
|
1450 |
|
|
<div class="block">Reads the the Flash memory status and information.</div>
|
1451 |
|
|
</td>
|
1452 |
|
|
</tr>
|
1453 |
|
|
<tr class="rowColor">
|
1454 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1455 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashStrError()">flashStrError</a></strong>()</code>
|
1456 |
|
|
<div class="block">Gets the last Flash error from the device.</div>
|
1457 |
|
|
</td>
|
1458 |
|
|
</tr>
|
1459 |
|
|
<tr class="altColor">
|
1460 |
|
|
<td class="colFirst"><code>static java.lang.String</code></td>
|
1461 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</a></strong>(int errNum)</code>
|
1462 |
|
|
<div class="block">Converts a given error code into a String.</div>
|
1463 |
|
|
</td>
|
1464 |
|
|
</tr>
|
1465 |
|
|
<tr class="rowColor">
|
1466 |
|
|
<td class="colFirst"><code>long</code></td>
|
1467 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)">flashUploadBitstream</a></strong>(java.io.InputStream inputStream,
|
1468 |
|
|
int bs)</code>
|
1469 |
|
|
<div class="block">Uploads a Bitstream to the Flash.</div>
|
1470 |
|
|
</td>
|
1471 |
|
|
</tr>
|
1472 |
|
|
<tr class="altColor">
|
1473 |
|
|
<td class="colFirst"><code>long</code></td>
|
1474 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</a></strong>(java.lang.String fwFileName)</code>
|
1475 |
|
|
<div class="block">Uploads a Bitstream to the Flash.</div>
|
1476 |
|
|
</td>
|
1477 |
|
|
</tr>
|
1478 |
|
|
<tr class="rowColor">
|
1479 |
|
|
<td class="colFirst"><code>long</code></td>
|
1480 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String,%20int)">flashUploadBitstream</a></strong>(java.lang.String fwFileName,
|
1481 |
|
|
int bs)</code>
|
1482 |
|
|
<div class="block">Uploads a Bitstream to the Flash.</div>
|
1483 |
|
|
</td>
|
1484 |
|
|
</tr>
|
1485 |
|
|
<tr class="altColor">
|
1486 |
|
|
<td class="colFirst"><code>void</code></td>
|
1487 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashWriteSector(int,%20byte[])">flashWriteSector</a></strong>(int sector,
|
1488 |
|
|
byte[] buf)</code>
|
1489 |
|
|
<div class="block">Writes one sector to the Flash.</div>
|
1490 |
|
|
</td>
|
1491 |
|
|
</tr>
|
1492 |
|
|
<tr class="rowColor">
|
1493 |
|
|
<td class="colFirst"><code>void</code></td>
|
1494 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashWriteSector(int,%20int,%20byte[])">flashWriteSector</a></strong>(int sector,
|
1495 |
|
|
int num,
|
1496 |
|
|
byte[] buf)</code>
|
1497 |
|
|
<div class="block">Writes a integer number of sectors to the Flash.</div>
|
1498 |
|
|
</td>
|
1499 |
|
|
</tr>
|
1500 |
|
|
<tr class="altColor">
|
1501 |
|
|
<td class="colFirst"><code>int</code></td>
|
1502 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFlash2EC()">getFlash2EC</a></strong>()</code>
|
1503 |
|
|
<div class="block">Gets the last 2nd Flash memory error from the device.</div>
|
1504 |
|
|
</td>
|
1505 |
|
|
</tr>
|
1506 |
|
|
<tr class="rowColor">
|
1507 |
|
|
<td class="colFirst"><code>int</code></td>
|
1508 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</a></strong>()</code>
|
1509 |
|
|
<div class="block">Gets the last Flash error from the device.</div>
|
1510 |
|
|
</td>
|
1511 |
|
|
</tr>
|
1512 |
|
|
<tr class="altColor">
|
1513 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1514 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</a></strong>()</code>
|
1515 |
|
|
<div class="block">Returns true if the FPGA is configured.</div>
|
1516 |
|
|
</td>
|
1517 |
|
|
</tr>
|
1518 |
|
|
<tr class="rowColor">
|
1519 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1520 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</a></strong>()</code>
|
1521 |
|
|
<div class="block">Returns a string that indicates the FPGA configuration status.</div>
|
1522 |
|
|
</td>
|
1523 |
|
|
</tr>
|
1524 |
|
|
<tr class="altColor">
|
1525 |
|
|
<td class="colFirst"><code>void</code></td>
|
1526 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getUsb3Errors()">getUsb3Errors</a></strong>()</code>
|
1527 |
|
|
<div class="block">Reads USB 3.0 errors and stores them in <a href="../ztex/Ztex1v1.html#usb3SndErrors"><code>usb3SndErrors</code></a> <a href="../ztex/Ztex1v1.html#usb3RcvErrors"><code>usb3RcvErrors</code></a>.</div>
|
1528 |
|
|
</td>
|
1529 |
|
|
</tr>
|
1530 |
|
|
<tr class="rowColor">
|
1531 |
|
|
<td class="colFirst"><code>protected void</code></td>
|
1532 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#init()">init</a></strong>()</code>
|
1533 |
|
|
<div class="block">Initializates the class.</div>
|
1534 |
|
|
</td>
|
1535 |
|
|
</tr>
|
1536 |
|
|
<tr class="altColor">
|
1537 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1538 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#InterfaceCapabilities(int)">InterfaceCapabilities</a></strong>(int i)</code>
|
1539 |
|
|
<div class="block">Returns interface capability bit.</div>
|
1540 |
|
|
</td>
|
1541 |
|
|
</tr>
|
1542 |
|
|
<tr class="rowColor">
|
1543 |
|
|
<td class="colFirst"><code>void</code></td>
|
1544 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromRead(int,%20byte[],%20int)">macEepromRead</a></strong>(int addr,
|
1545 |
|
|
byte[] buf,
|
1546 |
|
|
int length)</code>
|
1547 |
|
|
<div class="block">Reads data from the MAC EEPROM.</div>
|
1548 |
|
|
</td>
|
1549 |
|
|
</tr>
|
1550 |
|
|
<tr class="altColor">
|
1551 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1552 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromState()">macEepromState</a></strong>()</code>
|
1553 |
|
|
<div class="block">Reads the current MAC EEPROM status.</div>
|
1554 |
|
|
</td>
|
1555 |
|
|
</tr>
|
1556 |
|
|
<tr class="rowColor">
|
1557 |
|
|
<td class="colFirst"><code>void</code></td>
|
1558 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromWrite(int,%20byte[],%20int)">macEepromWrite</a></strong>(int addr,
|
1559 |
|
|
byte[] buf,
|
1560 |
|
|
int length)</code>
|
1561 |
|
|
<div class="block">Writes data to the MAC EEPROM.</div>
|
1562 |
|
|
</td>
|
1563 |
|
|
</tr>
|
1564 |
|
|
<tr class="altColor">
|
1565 |
|
|
<td class="colFirst"><code>void</code></td>
|
1566 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macRead(byte[])">macRead</a></strong>(byte[] buf)</code>
|
1567 |
|
|
<div class="block">Reads MAC address from MAC EEPROM.</div>
|
1568 |
|
|
</td>
|
1569 |
|
|
</tr>
|
1570 |
|
|
<tr class="rowColor">
|
1571 |
|
|
<td class="colFirst"><code>int</code></td>
|
1572 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#numberOfFpgas()">numberOfFpgas</a></strong>()</code>
|
1573 |
|
|
<div class="block">Returns the number of FPGA's</div>
|
1574 |
|
|
</td>
|
1575 |
|
|
</tr>
|
1576 |
|
|
<tr class="altColor">
|
1577 |
|
|
<td class="colFirst"><code>void</code></td>
|
1578 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#nvDisableFirmware()">nvDisableFirmware</a></strong>()</code>
|
1579 |
|
|
<div class="block">Disables the firmware stored in the non-volatile memory.</div>
|
1580 |
|
|
</td>
|
1581 |
|
|
</tr>
|
1582 |
|
|
<tr class="rowColor">
|
1583 |
|
|
<td class="colFirst"><code>long</code></td>
|
1584 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)">nvUploadFirmware</a></strong>(java.lang.String imgFileName,
|
1585 |
|
|
boolean force)</code>
|
1586 |
|
|
<div class="block">Upload the firmware to the non-volatile memory.</div>
|
1587 |
|
|
</td>
|
1588 |
|
|
</tr>
|
1589 |
|
|
<tr class="altColor">
|
1590 |
|
|
<td class="colFirst"><code>long</code></td>
|
1591 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#nvUploadFirmware(ztex.ZtexImgFile1,%20boolean)">nvUploadFirmware</a></strong>(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a> imgFile,
|
1592 |
|
|
boolean force)</code>
|
1593 |
|
|
<div class="block">Upload the firmware to the non-volatile memory.</div>
|
1594 |
|
|
</td>
|
1595 |
|
|
</tr>
|
1596 |
|
|
<tr class="rowColor">
|
1597 |
|
|
<td class="colFirst"><code>void</code></td>
|
1598 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</a></strong>()</code>
|
1599 |
|
|
<div class="block">Prints out the FPGA state.</div>
|
1600 |
|
|
</td>
|
1601 |
|
|
</tr>
|
1602 |
|
|
<tr class="altColor">
|
1603 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1604 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printMmc2State()">printMmc2State</a></strong>()</code>
|
1605 |
|
|
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.</div>
|
1606 |
|
|
</td>
|
1607 |
|
|
</tr>
|
1608 |
|
|
<tr class="rowColor">
|
1609 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1610 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printMmcState()">printMmcState</a></strong>()</code>
|
1611 |
|
|
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.</div>
|
1612 |
|
|
</td>
|
1613 |
|
|
</tr>
|
1614 |
|
|
<tr class="altColor">
|
1615 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1616 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printSpiState()">printSpiState</a></strong>()</code>
|
1617 |
|
|
<div class="block">Prints out some debug information about SPI Flash.</div>
|
1618 |
|
|
</td>
|
1619 |
|
|
</tr>
|
1620 |
|
|
<tr class="rowColor">
|
1621 |
|
|
<td class="colFirst"><code>void</code></td>
|
1622 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#resetFpga()">resetFpga</a></strong>()</code>
|
1623 |
|
|
<div class="block">Resets the FPGA.</div>
|
1624 |
|
|
</td>
|
1625 |
|
|
</tr>
|
1626 |
|
|
<tr class="altColor">
|
1627 |
|
|
<td class="colFirst"><code>void</code></td>
|
1628 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#selectFpga(int)">selectFpga</a></strong>(int num)</code>
|
1629 |
|
|
<div class="block">Select a FPGA</div>
|
1630 |
|
|
</td>
|
1631 |
|
|
</tr>
|
1632 |
|
|
<tr class="rowColor">
|
1633 |
|
|
<td class="colFirst"><code>double</code></td>
|
1634 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#tempSensorRead(int)">tempSensorRead</a></strong>(int idx)</code>
|
1635 |
|
|
<div class="block">Read temperature sensor data.</div>
|
1636 |
|
|
</td>
|
1637 |
|
|
</tr>
|
1638 |
|
|
<tr class="altColor">
|
1639 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1640 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#toHumanStr(long)">toHumanStr</a></strong>(long i)</code>
|
1641 |
|
|
<div class="block">Converts an integer into a base 1024 formatted string.</div>
|
1642 |
|
|
</td>
|
1643 |
|
|
</tr>
|
1644 |
|
|
<tr class="rowColor">
|
1645 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1646 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#toString()">toString</a></strong>()</code>
|
1647 |
|
|
<div class="block">Returns a lot of useful information about the corresponding device.</div>
|
1648 |
|
|
</td>
|
1649 |
|
|
</tr>
|
1650 |
|
|
<tr class="altColor">
|
1651 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1652 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#valid()">valid</a></strong>()</code>
|
1653 |
|
|
<div class="block">Returns true if ZTEX interface 1 is available.</div>
|
1654 |
|
|
</td>
|
1655 |
|
|
</tr>
|
1656 |
|
|
<tr class="rowColor">
|
1657 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1658 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#valid(int,%20int)">valid</a></strong>(int i,
|
1659 |
|
|
int j)</code>
|
1660 |
|
|
<div class="block">Returns true if ZTEX interface 1 and capability i.j are available.</div>
|
1661 |
|
|
</td>
|
1662 |
|
|
</tr>
|
1663 |
|
|
<tr class="altColor">
|
1664 |
|
|
<td class="colFirst"><code>int</code></td>
|
1665 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPages()">xmegaEepromPages</a></strong>()</code>
|
1666 |
|
|
<div class="block">Returns the number of the ATxmega EEPROM pages.</div>
|
1667 |
|
|
</td>
|
1668 |
|
|
</tr>
|
1669 |
|
|
<tr class="rowColor">
|
1670 |
|
|
<td class="colFirst"><code>int</code></td>
|
1671 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPageSize()">xmegaEepromPageSize</a></strong>()</code>
|
1672 |
|
|
<div class="block">Returns the size of the ATXmega EEPROM pages.</div>
|
1673 |
|
|
</td>
|
1674 |
|
|
</tr>
|
1675 |
|
|
<tr class="altColor">
|
1676 |
|
|
<td class="colFirst"><code>void</code></td>
|
1677 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPageWrite(int,%20byte[])">xmegaEepromPageWrite</a></strong>(int addr,
|
1678 |
|
|
byte[] buf)</code>
|
1679 |
|
|
<div class="block">Writes data to EEPROM memory of ATxmega.</div>
|
1680 |
|
|
</td>
|
1681 |
|
|
</tr>
|
1682 |
|
|
<tr class="rowColor">
|
1683 |
|
|
<td class="colFirst"><code>void</code></td>
|
1684 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromRead(int,%20byte[],%20int)">xmegaEepromRead</a></strong>(int addr,
|
1685 |
|
|
byte[] buf,
|
1686 |
|
|
int length)</code>
|
1687 |
|
|
<div class="block">Reads data from EEPROM memory of ATxmega.</div>
|
1688 |
|
|
</td>
|
1689 |
|
|
</tr>
|
1690 |
|
|
<tr class="altColor">
|
1691 |
|
|
<td class="colFirst"><code>boolean</code></td>
|
1692 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEnabled()">xmegaEnabled</a></strong>()</code>
|
1693 |
|
|
<div class="block">Returns true if ATxmega controller is available.</div>
|
1694 |
|
|
</td>
|
1695 |
|
|
</tr>
|
1696 |
|
|
<tr class="rowColor">
|
1697 |
|
|
<td class="colFirst"><code>int</code></td>
|
1698 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPages()">xmegaFlashPages</a></strong>()</code>
|
1699 |
|
|
<div class="block">Returns the number of the ATxmega Flash pages.</div>
|
1700 |
|
|
</td>
|
1701 |
|
|
</tr>
|
1702 |
|
|
<tr class="altColor">
|
1703 |
|
|
<td class="colFirst"><code>int</code></td>
|
1704 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPageSize()">xmegaFlashPageSize</a></strong>()</code>
|
1705 |
|
|
<div class="block">Returns the size of the ATxmega Flash pages.</div>
|
1706 |
|
|
</td>
|
1707 |
|
|
</tr>
|
1708 |
|
|
<tr class="rowColor">
|
1709 |
|
|
<td class="colFirst"><code>void</code></td>
|
1710 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPageWrite(int,%20byte[])">xmegaFlashPageWrite</a></strong>(int addr,
|
1711 |
|
|
byte[] buf)</code>
|
1712 |
|
|
<div class="block">Writes data to Flash memory of ATxmega.</div>
|
1713 |
|
|
</td>
|
1714 |
|
|
</tr>
|
1715 |
|
|
<tr class="altColor">
|
1716 |
|
|
<td class="colFirst"><code>void</code></td>
|
1717 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashRead(int,%20byte[],%20int)">xmegaFlashRead</a></strong>(int addr,
|
1718 |
|
|
byte[] buf,
|
1719 |
|
|
int length)</code>
|
1720 |
|
|
<div class="block">Reads data from Flash memory of ATxmega.</div>
|
1721 |
|
|
</td>
|
1722 |
|
|
</tr>
|
1723 |
|
|
<tr class="rowColor">
|
1724 |
|
|
<td class="colFirst"><code>int</code></td>
|
1725 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseRead(int)">xmegaFuseRead</a></strong>(int addr)</code>
|
1726 |
|
|
<div class="block">Reads data one Fuse of ATxmega.</div>
|
1727 |
|
|
</td>
|
1728 |
|
|
</tr>
|
1729 |
|
|
<tr class="altColor">
|
1730 |
|
|
<td class="colFirst"><code>void</code></td>
|
1731 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseRead(int,%20byte[],%20int)">xmegaFuseRead</a></strong>(int addr,
|
1732 |
|
|
byte[] buf,
|
1733 |
|
|
int length)</code>
|
1734 |
|
|
<div class="block">Reads data from Fuse memory of ATxmega.</div>
|
1735 |
|
|
</td>
|
1736 |
|
|
</tr>
|
1737 |
|
|
<tr class="rowColor">
|
1738 |
|
|
<td class="colFirst"><code>void</code></td>
|
1739 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseWrite(int,%20int)">xmegaFuseWrite</a></strong>(int addr,
|
1740 |
|
|
int val)</code>
|
1741 |
|
|
<div class="block">Writes one Fuse of the ATxmega.</div>
|
1742 |
|
|
</td>
|
1743 |
|
|
</tr>
|
1744 |
|
|
<tr class="altColor">
|
1745 |
|
|
<td class="colFirst"><code>void</code></td>
|
1746 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaNvmRead(int,%20byte[],%20int)">xmegaNvmRead</a></strong>(int addr,
|
1747 |
|
|
byte[] buf,
|
1748 |
|
|
int length)</code>
|
1749 |
|
|
<div class="block">Reads data from the NVM of ATxmega.</div>
|
1750 |
|
|
</td>
|
1751 |
|
|
</tr>
|
1752 |
|
|
<tr class="rowColor">
|
1753 |
|
|
<td class="colFirst"><code>void</code></td>
|
1754 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaReset()">xmegaReset</a></strong>()</code>
|
1755 |
|
|
<div class="block">Resets the ATxmega.</div>
|
1756 |
|
|
</td>
|
1757 |
|
|
</tr>
|
1758 |
|
|
<tr class="altColor">
|
1759 |
|
|
<td class="colFirst"><code>int</code></td>
|
1760 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaState()">xmegaState</a></strong>()</code>
|
1761 |
|
|
<div class="block">Read ATxmega error and status information from the device.</div>
|
1762 |
|
|
</td>
|
1763 |
|
|
</tr>
|
1764 |
|
|
<tr class="rowColor">
|
1765 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1766 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaStrError()">xmegaStrError</a></strong>()</code>
|
1767 |
|
|
<div class="block">Gets the last ATxmega error from the device.</div>
|
1768 |
|
|
</td>
|
1769 |
|
|
</tr>
|
1770 |
|
|
<tr class="altColor">
|
1771 |
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
1772 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaStrError(int)">xmegaStrError</a></strong>(int errNum)</code>
|
1773 |
|
|
<div class="block">Converts a given error code into a String.</div>
|
1774 |
|
|
</td>
|
1775 |
|
|
</tr>
|
1776 |
|
|
<tr class="rowColor">
|
1777 |
|
|
<td class="colFirst"><code>long</code></td>
|
1778 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaWriteEeprom(ztex.ImgFile)">xmegaWriteEeprom</a></strong>(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a> imgFile)</code>
|
1779 |
|
|
<div class="block">Uploads data to the EEPROM memory</div>
|
1780 |
|
|
</td>
|
1781 |
|
|
</tr>
|
1782 |
|
|
<tr class="altColor">
|
1783 |
|
|
<td class="colFirst"><code>long</code></td>
|
1784 |
|
|
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaWriteFirmware(ztex.ImgFile)">xmegaWriteFirmware</a></strong>(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a> imgFile)</code>
|
1785 |
|
|
<div class="block">Uploads firmware to the flash memory</div>
|
1786 |
|
|
</td>
|
1787 |
|
|
</tr>
|
1788 |
|
|
</table>
|
1789 |
|
|
<ul class="blockList">
|
1790 |
|
|
<li class="blockList"><a name="methods_inherited_from_class_ztex.Ztex1">
|
1791 |
|
|
<!-- -->
|
1792 |
|
|
</a>
|
1793 |
|
|
<h3>Methods inherited from class ztex.<a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></h3>
|
1794 |
|
|
<code><a href="../ztex/Ztex1.html#allocateByteBuffer(byte[])">allocateByteBuffer</a>, <a href="../ztex/Ztex1.html#allocateByteBuffer(byte[],%20int,%20int)">allocateByteBuffer</a>, <a href="../ztex/Ztex1.html#bulkRead(int,%20byte[],%20int,%20long)">bulkRead</a>, <a href="../ztex/Ztex1.html#bulkRead(int,%20java.nio.ByteBuffer,%20long)">bulkRead</a>, <a href="../ztex/Ztex1.html#bulkWrite(int,%20byte[],%20int,%20long)">bulkWrite</a>, <a href="../ztex/Ztex1.html#bulkWrite(int,%20java.nio.ByteBuffer,%20long)">bulkWrite</a>, <a href="../ztex/Ztex1.html#claimInterface(int)">claimInterface</a>, <a href="../ztex/Ztex1.html#dev()">dev</a>, <a href="../ztex/Ztex1.html#dispose()">dispose</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#resetDevice(boolean)">resetDevice</a>, <a href="../ztex/Ztex1.html#resetEzUsb()">resetEzUsb</a>, <a href="../ztex/Ztex1.html#setConfiguration(int)">setConfiguration</a>, <a href="../ztex/Ztex1.html#trySetConfiguration(int)">trySetConfiguration</a>, <a href="../ztex/Ztex1.html#uploadFirmware(java.io.InputStream,%20java.lang.String,%20boolean)">uploadFirmware</a>, <a href="../ztex/Ztex1.html#uploadFirmware(java.lang.String,%20boolean)">uploadFirmware</a>, <a href="../ztex/Ztex1.html#uploadFirmware(ztex.ZtexImgFile1,%20boolean)">uploadFirmware</a>, <a href="../ztex/Ztex1.html#vendorCommand(int,%20java.lang.String)">vendorCommand</a>, <a href="../ztex/Ztex1.html#vendorCommand(int,%20java.lang.String,%20int,%20int)">vendorCommand</a>, <a href="../ztex/Ztex1.html#vendorCommand(int,%20java.lang.String,%20int,%20int,%20byte[],%20int)">vendorCommand</a>, <a href="../ztex/Ztex1.html#vendorCommand(int,%20java.lang.String,%20int,%20int,%20java.nio.ByteBuffer)">vendorCommand</a>, <a href="../ztex/Ztex1.html#vendorCommand2(int,%20java.lang.String,%20int,%20int,%20byte[],%20int)">vendorCommand2</a>, <a href="../ztex/Ztex1.html#vendorCommand2(int,%20java.lang.String,%20int,%20int,%20java.nio.ByteBuffer)">vendorCommand2</a>, <a href="../ztex/Ztex1.html#vendorRequest(int,%20java.lang.String,%20byte[],%20int)">vendorRequest</a>, <a href="../ztex/Ztex1.html#vendorRequest(int,%20java.lang.String,%20java.nio.ByteBuffer)">vendorRequest</a>, <a href="../ztex/Ztex1.html#vendorRequest(int,%20java.lang.String,%20int,%20int,%20byte[],%20int)">vendorRequest</a>, <a href="../ztex/Ztex1.html#vendorRequest(int,%20java.lang.String,%20int,%20int,%20java.nio.ByteBuffer)">vendorRequest</a>, <a href="../ztex/Ztex1.html#vendorRequest2(int,%20java.lang.String,%20byte[],%20int)">vendorRequest2</a>, <a href="../ztex/Ztex1.html#vendorRequest2(int,%20java.lang.String,%20java.nio.ByteBuffer)">vendorRequest2</a>, <a href="../ztex/Ztex1.html#vendorRequest2(int,%20java.lang.String,%20int,%20int,%20byte[],%20int)">vendorRequest2</a>, <a href="../ztex/Ztex1.html#vendorRequest2(int,%20java.lang.String,%20int,%20int,%20java.nio.ByteBuffer)">vendorRequest2</a></code></li>
|
1795 |
|
|
</ul>
|
1796 |
|
|
<ul class="blockList">
|
1797 |
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
1798 |
|
|
<!-- -->
|
1799 |
|
|
</a>
|
1800 |
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
1801 |
|
|
<code>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
1802 |
|
|
</ul>
|
1803 |
|
|
</li>
|
1804 |
|
|
</ul>
|
1805 |
|
|
</li>
|
1806 |
|
|
</ul>
|
1807 |
|
|
</div>
|
1808 |
|
|
<div class="details">
|
1809 |
|
|
<ul class="blockList">
|
1810 |
|
|
<li class="blockList">
|
1811 |
|
|
<!-- ============ FIELD DETAIL =========== -->
|
1812 |
|
|
<ul class="blockList">
|
1813 |
|
|
<li class="blockList"><a name="field_detail">
|
1814 |
|
|
<!-- -->
|
1815 |
|
|
</a>
|
1816 |
|
|
<h3>Field Detail</h3>
|
1817 |
|
|
<a name="CAPABILITY_EEPROM">
|
1818 |
|
|
<!-- -->
|
1819 |
|
|
</a>
|
1820 |
|
|
<ul class="blockList">
|
1821 |
|
|
<li class="blockList">
|
1822 |
|
|
<h4>CAPABILITY_EEPROM</h4>
|
1823 |
|
|
<pre>public static final int CAPABILITY_EEPROM</pre>
|
1824 |
|
|
<div class="block">Capability index for EEPROM support.</div>
|
1825 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_EEPROM">Constant Field Values</a></dd></dl>
|
1826 |
|
|
</li>
|
1827 |
|
|
</ul>
|
1828 |
|
|
<a name="CAPABILITY_FPGA">
|
1829 |
|
|
<!-- -->
|
1830 |
|
|
</a>
|
1831 |
|
|
<ul class="blockList">
|
1832 |
|
|
<li class="blockList">
|
1833 |
|
|
<h4>CAPABILITY_FPGA</h4>
|
1834 |
|
|
<pre>public static final int CAPABILITY_FPGA</pre>
|
1835 |
|
|
<div class="block">Capability index for FPGA configuration support.</div>
|
1836 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FPGA">Constant Field Values</a></dd></dl>
|
1837 |
|
|
</li>
|
1838 |
|
|
</ul>
|
1839 |
|
|
<a name="CAPABILITY_FLASH">
|
1840 |
|
|
<!-- -->
|
1841 |
|
|
</a>
|
1842 |
|
|
<ul class="blockList">
|
1843 |
|
|
<li class="blockList">
|
1844 |
|
|
<h4>CAPABILITY_FLASH</h4>
|
1845 |
|
|
<pre>public static final int CAPABILITY_FLASH</pre>
|
1846 |
|
|
<div class="block">Capability index for FLASH memory support.</div>
|
1847 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH">Constant Field Values</a></dd></dl>
|
1848 |
|
|
</li>
|
1849 |
|
|
</ul>
|
1850 |
|
|
<a name="CAPABILITY_DEBUG">
|
1851 |
|
|
<!-- -->
|
1852 |
|
|
</a>
|
1853 |
|
|
<ul class="blockList">
|
1854 |
|
|
<li class="blockList">
|
1855 |
|
|
<h4>CAPABILITY_DEBUG</h4>
|
1856 |
|
|
<pre>public static final int CAPABILITY_DEBUG</pre>
|
1857 |
|
|
<div class="block">Capability index for DEBUG helper support.</div>
|
1858 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG">Constant Field Values</a></dd></dl>
|
1859 |
|
|
</li>
|
1860 |
|
|
</ul>
|
1861 |
|
|
<a name="CAPABILITY_XMEGA">
|
1862 |
|
|
<!-- -->
|
1863 |
|
|
</a>
|
1864 |
|
|
<ul class="blockList">
|
1865 |
|
|
<li class="blockList">
|
1866 |
|
|
<h4>CAPABILITY_XMEGA</h4>
|
1867 |
|
|
<pre>public static final int CAPABILITY_XMEGA</pre>
|
1868 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
1869 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_XMEGA">Constant Field Values</a></dd></dl>
|
1870 |
|
|
</li>
|
1871 |
|
|
</ul>
|
1872 |
|
|
<a name="CAPABILITY_HS_FPGA">
|
1873 |
|
|
<!-- -->
|
1874 |
|
|
</a>
|
1875 |
|
|
<ul class="blockList">
|
1876 |
|
|
<li class="blockList">
|
1877 |
|
|
<h4>CAPABILITY_HS_FPGA</h4>
|
1878 |
|
|
<pre>public static final int CAPABILITY_HS_FPGA</pre>
|
1879 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
1880 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_HS_FPGA">Constant Field Values</a></dd></dl>
|
1881 |
|
|
</li>
|
1882 |
|
|
</ul>
|
1883 |
|
|
<a name="CAPABILITY_MAC_EEPROM">
|
1884 |
|
|
<!-- -->
|
1885 |
|
|
</a>
|
1886 |
|
|
<ul class="blockList">
|
1887 |
|
|
<li class="blockList">
|
1888 |
|
|
<h4>CAPABILITY_MAC_EEPROM</h4>
|
1889 |
|
|
<pre>public static final int CAPABILITY_MAC_EEPROM</pre>
|
1890 |
|
|
<div class="block">Capability index for AVR XMEGA support.</div>
|
1891 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MAC_EEPROM">Constant Field Values</a></dd></dl>
|
1892 |
|
|
</li>
|
1893 |
|
|
</ul>
|
1894 |
|
|
<a name="CAPABILITY_MULTI_FPGA">
|
1895 |
|
|
<!-- -->
|
1896 |
|
|
</a>
|
1897 |
|
|
<ul class="blockList">
|
1898 |
|
|
<li class="blockList">
|
1899 |
|
|
<h4>CAPABILITY_MULTI_FPGA</h4>
|
1900 |
|
|
<pre>public static final int CAPABILITY_MULTI_FPGA</pre>
|
1901 |
|
|
<div class="block">Capability index for multi FPGA support</div>
|
1902 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_MULTI_FPGA">Constant Field Values</a></dd></dl>
|
1903 |
|
|
</li>
|
1904 |
|
|
</ul>
|
1905 |
|
|
<a name="CAPABILITY_TEMP_SENSOR">
|
1906 |
|
|
<!-- -->
|
1907 |
|
|
</a>
|
1908 |
|
|
<ul class="blockList">
|
1909 |
|
|
<li class="blockList">
|
1910 |
|
|
<h4>CAPABILITY_TEMP_SENSOR</h4>
|
1911 |
|
|
<pre>public static final int CAPABILITY_TEMP_SENSOR</pre>
|
1912 |
|
|
<div class="block">Capability index for Temperature sensor support</div>
|
1913 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_TEMP_SENSOR">Constant Field Values</a></dd></dl>
|
1914 |
|
|
</li>
|
1915 |
|
|
</ul>
|
1916 |
|
|
<a name="CAPABILITY_FLASH2">
|
1917 |
|
|
<!-- -->
|
1918 |
|
|
</a>
|
1919 |
|
|
<ul class="blockList">
|
1920 |
|
|
<li class="blockList">
|
1921 |
|
|
<h4>CAPABILITY_FLASH2</h4>
|
1922 |
|
|
<pre>public static final int CAPABILITY_FLASH2</pre>
|
1923 |
|
|
<div class="block">Capability index for 2nd FLASH memory support.</div>
|
1924 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FLASH2">Constant Field Values</a></dd></dl>
|
1925 |
|
|
</li>
|
1926 |
|
|
</ul>
|
1927 |
|
|
<a name="CAPABILITY_FX3">
|
1928 |
|
|
<!-- -->
|
1929 |
|
|
</a>
|
1930 |
|
|
<ul class="blockList">
|
1931 |
|
|
<li class="blockList">
|
1932 |
|
|
<h4>CAPABILITY_FX3</h4>
|
1933 |
|
|
<pre>public static final int CAPABILITY_FX3</pre>
|
1934 |
|
|
<div class="block">Capability index for FX3 firmware</div>
|
1935 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_FX3">Constant Field Values</a></dd></dl>
|
1936 |
|
|
</li>
|
1937 |
|
|
</ul>
|
1938 |
|
|
<a name="CAPABILITY_DEBUG2">
|
1939 |
|
|
<!-- -->
|
1940 |
|
|
</a>
|
1941 |
|
|
<ul class="blockList">
|
1942 |
|
|
<li class="blockList">
|
1943 |
|
|
<h4>CAPABILITY_DEBUG2</h4>
|
1944 |
|
|
<pre>public static final int CAPABILITY_DEBUG2</pre>
|
1945 |
|
|
<div class="block">Capability index for debug helper 2</div>
|
1946 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEBUG2">Constant Field Values</a></dd></dl>
|
1947 |
|
|
</li>
|
1948 |
|
|
</ul>
|
1949 |
|
|
<a name="CAPABILITY_DEFAULT">
|
1950 |
|
|
<!-- -->
|
1951 |
|
|
</a>
|
1952 |
|
|
<ul class="blockList">
|
1953 |
|
|
<li class="blockList">
|
1954 |
|
|
<h4>CAPABILITY_DEFAULT</h4>
|
1955 |
|
|
<pre>public static final int CAPABILITY_DEFAULT</pre>
|
1956 |
|
|
<div class="block">Capability index for default firmware interface</div>
|
1957 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.CAPABILITY_DEFAULT">Constant Field Values</a></dd></dl>
|
1958 |
|
|
</li>
|
1959 |
|
|
</ul>
|
1960 |
|
|
<a name="capabilityStrings">
|
1961 |
|
|
<!-- -->
|
1962 |
|
|
</a>
|
1963 |
|
|
<ul class="blockList">
|
1964 |
|
|
<li class="blockList">
|
1965 |
|
|
<h4>capabilityStrings</h4>
|
1966 |
|
|
<pre>public static final java.lang.String[] capabilityStrings</pre>
|
1967 |
|
|
<div class="block">The names of the capabilities</div>
|
1968 |
|
|
</li>
|
1969 |
|
|
</ul>
|
1970 |
|
|
<a name="enableExtraFpgaConfigurationChecks">
|
1971 |
|
|
<!-- -->
|
1972 |
|
|
</a>
|
1973 |
|
|
<ul class="blockList">
|
1974 |
|
|
<li class="blockList">
|
1975 |
|
|
<h4>enableExtraFpgaConfigurationChecks</h4>
|
1976 |
|
|
<pre>public boolean enableExtraFpgaConfigurationChecks</pre>
|
1977 |
|
|
<div class="block">Enables extra FPGA configuration checks. Certain Bistream settings may cause false warnings.</div>
|
1978 |
|
|
</li>
|
1979 |
|
|
</ul>
|
1980 |
|
|
<a name="eepromBytes">
|
1981 |
|
|
<!-- -->
|
1982 |
|
|
</a>
|
1983 |
|
|
<ul class="blockList">
|
1984 |
|
|
<li class="blockList">
|
1985 |
|
|
<h4>eepromBytes</h4>
|
1986 |
|
|
<pre>public int eepromBytes</pre>
|
1987 |
|
|
<div class="block">Number of bytes written to EEPROM. (Obtained by <a href="../ztex/Ztex1v1.html#eepromState()"><code>eepromState()</code></a>.)</div>
|
1988 |
|
|
</li>
|
1989 |
|
|
</ul>
|
1990 |
|
|
<a name="eepromChecksum">
|
1991 |
|
|
<!-- -->
|
1992 |
|
|
</a>
|
1993 |
|
|
<ul class="blockList">
|
1994 |
|
|
<li class="blockList">
|
1995 |
|
|
<h4>eepromChecksum</h4>
|
1996 |
|
|
<pre>public int eepromChecksum</pre>
|
1997 |
|
|
<div class="block">Checksum of the last EEPROM transfer. (Obtained by <a href="../ztex/Ztex1v1.html#eepromState()"><code>eepromState()</code></a>.)</div>
|
1998 |
|
|
</li>
|
1999 |
|
|
</ul>
|
2000 |
|
|
<a name="flashEC">
|
2001 |
|
|
<!-- -->
|
2002 |
|
|
</a>
|
2003 |
|
|
<ul class="blockList">
|
2004 |
|
|
<li class="blockList">
|
2005 |
|
|
<h4>flashEC</h4>
|
2006 |
|
|
<pre>public int flashEC</pre>
|
2007 |
|
|
<div class="block">Last Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>. See FLASH_EC_* for possible error codes.</div>
|
2008 |
|
|
</li>
|
2009 |
|
|
</ul>
|
2010 |
|
|
<a name="flash2EC">
|
2011 |
|
|
<!-- -->
|
2012 |
|
|
</a>
|
2013 |
|
|
<ul class="blockList">
|
2014 |
|
|
<li class="blockList">
|
2015 |
|
|
<h4>flash2EC</h4>
|
2016 |
|
|
<pre>public int flash2EC</pre>
|
2017 |
|
|
<div class="block">Last 2nd Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>. See FLASH_EC_* for possible error codes.</div>
|
2018 |
|
|
</li>
|
2019 |
|
|
</ul>
|
2020 |
|
|
<a name="FLASH_EC_NO_ERROR">
|
2021 |
|
|
<!-- -->
|
2022 |
|
|
</a>
|
2023 |
|
|
<ul class="blockList">
|
2024 |
|
|
<li class="blockList">
|
2025 |
|
|
<h4>FLASH_EC_NO_ERROR</h4>
|
2026 |
|
|
<pre>public static final int FLASH_EC_NO_ERROR</pre>
|
2027 |
|
|
<div class="block">Means no error.</div>
|
2028 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NO_ERROR">Constant Field Values</a></dd></dl>
|
2029 |
|
|
</li>
|
2030 |
|
|
</ul>
|
2031 |
|
|
<a name="FLASH_EC_CMD_ERROR">
|
2032 |
|
|
<!-- -->
|
2033 |
|
|
</a>
|
2034 |
|
|
<ul class="blockList">
|
2035 |
|
|
<li class="blockList">
|
2036 |
|
|
<h4>FLASH_EC_CMD_ERROR</h4>
|
2037 |
|
|
<pre>public static final int FLASH_EC_CMD_ERROR</pre>
|
2038 |
|
|
<div class="block">Signals an error while attempting to execute a command.</div>
|
2039 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_CMD_ERROR">Constant Field Values</a></dd></dl>
|
2040 |
|
|
</li>
|
2041 |
|
|
</ul>
|
2042 |
|
|
<a name="FLASH_EC_TIMEOUT">
|
2043 |
|
|
<!-- -->
|
2044 |
|
|
</a>
|
2045 |
|
|
<ul class="blockList">
|
2046 |
|
|
<li class="blockList">
|
2047 |
|
|
<h4>FLASH_EC_TIMEOUT</h4>
|
2048 |
|
|
<pre>public static final int FLASH_EC_TIMEOUT</pre>
|
2049 |
|
|
<div class="block">Signals that a timeout occurred.</div>
|
2050 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_TIMEOUT">Constant Field Values</a></dd></dl>
|
2051 |
|
|
</li>
|
2052 |
|
|
</ul>
|
2053 |
|
|
<a name="FLASH_EC_BUSY">
|
2054 |
|
|
<!-- -->
|
2055 |
|
|
</a>
|
2056 |
|
|
<ul class="blockList">
|
2057 |
|
|
<li class="blockList">
|
2058 |
|
|
<h4>FLASH_EC_BUSY</h4>
|
2059 |
|
|
<pre>public static final int FLASH_EC_BUSY</pre>
|
2060 |
|
|
<div class="block">Signals that Flash memory it busy.</div>
|
2061 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_BUSY">Constant Field Values</a></dd></dl>
|
2062 |
|
|
</li>
|
2063 |
|
|
</ul>
|
2064 |
|
|
<a name="FLASH_EC_PENDING">
|
2065 |
|
|
<!-- -->
|
2066 |
|
|
</a>
|
2067 |
|
|
<ul class="blockList">
|
2068 |
|
|
<li class="blockList">
|
2069 |
|
|
<h4>FLASH_EC_PENDING</h4>
|
2070 |
|
|
<pre>public static final int FLASH_EC_PENDING</pre>
|
2071 |
|
|
<div class="block">Signals that another Flash operation is pending.</div>
|
2072 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_PENDING">Constant Field Values</a></dd></dl>
|
2073 |
|
|
</li>
|
2074 |
|
|
</ul>
|
2075 |
|
|
<a name="FLASH_EC_READ_ERROR">
|
2076 |
|
|
<!-- -->
|
2077 |
|
|
</a>
|
2078 |
|
|
<ul class="blockList">
|
2079 |
|
|
<li class="blockList">
|
2080 |
|
|
<h4>FLASH_EC_READ_ERROR</h4>
|
2081 |
|
|
<pre>public static final int FLASH_EC_READ_ERROR</pre>
|
2082 |
|
|
<div class="block">Signals an error while attempting to read from Flash.</div>
|
2083 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_READ_ERROR">Constant Field Values</a></dd></dl>
|
2084 |
|
|
</li>
|
2085 |
|
|
</ul>
|
2086 |
|
|
<a name="FLASH_EC_WRITE_ERROR">
|
2087 |
|
|
<!-- -->
|
2088 |
|
|
</a>
|
2089 |
|
|
<ul class="blockList">
|
2090 |
|
|
<li class="blockList">
|
2091 |
|
|
<h4>FLASH_EC_WRITE_ERROR</h4>
|
2092 |
|
|
<pre>public static final int FLASH_EC_WRITE_ERROR</pre>
|
2093 |
|
|
<div class="block">Signals an error while attempting to write to Flash.</div>
|
2094 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_WRITE_ERROR">Constant Field Values</a></dd></dl>
|
2095 |
|
|
</li>
|
2096 |
|
|
</ul>
|
2097 |
|
|
<a name="FLASH_EC_NOTSUPPORTED">
|
2098 |
|
|
<!-- -->
|
2099 |
|
|
</a>
|
2100 |
|
|
<ul class="blockList">
|
2101 |
|
|
<li class="blockList">
|
2102 |
|
|
<h4>FLASH_EC_NOTSUPPORTED</h4>
|
2103 |
|
|
<pre>public static final int FLASH_EC_NOTSUPPORTED</pre>
|
2104 |
|
|
<div class="block">Signals the installed Flash memory is not supported.</div>
|
2105 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_NOTSUPPORTED">Constant Field Values</a></dd></dl>
|
2106 |
|
|
</li>
|
2107 |
|
|
</ul>
|
2108 |
|
|
<a name="FLASH_EC_RUNTIME">
|
2109 |
|
|
<!-- -->
|
2110 |
|
|
</a>
|
2111 |
|
|
<ul class="blockList">
|
2112 |
|
|
<li class="blockList">
|
2113 |
|
|
<h4>FLASH_EC_RUNTIME</h4>
|
2114 |
|
|
<pre>public static final int FLASH_EC_RUNTIME</pre>
|
2115 |
|
|
<div class="block">Signals a runtime error of the firmware.</div>
|
2116 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.FLASH_EC_RUNTIME">Constant Field Values</a></dd></dl>
|
2117 |
|
|
</li>
|
2118 |
|
|
</ul>
|
2119 |
|
|
<a name="debugNewMessages">
|
2120 |
|
|
<!-- -->
|
2121 |
|
|
</a>
|
2122 |
|
|
<ul class="blockList">
|
2123 |
|
|
<li class="blockList">
|
2124 |
|
|
<h4>debugNewMessages</h4>
|
2125 |
|
|
<pre>public int debugNewMessages</pre>
|
2126 |
|
|
<div class="block">Is set by <a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])"><code>debugReadMessages(boolean,byte[])</code></a> and contains the number of new messages.</div>
|
2127 |
|
|
</li>
|
2128 |
|
|
</ul>
|
2129 |
|
|
<a name="xmegaEC">
|
2130 |
|
|
<!-- -->
|
2131 |
|
|
</a>
|
2132 |
|
|
<ul class="blockList">
|
2133 |
|
|
<li class="blockList">
|
2134 |
|
|
<h4>xmegaEC</h4>
|
2135 |
|
|
<pre>public int xmegaEC</pre>
|
2136 |
|
|
<div class="block">Last ATxmega error code obtained by <a href="../ztex/Ztex1v1.html#xmegaState()"><code>xmegaState()</code></a>. See XMEGA_EC_* for possible error codes.</div>
|
2137 |
|
|
</li>
|
2138 |
|
|
</ul>
|
2139 |
|
|
<a name="XMEGA_EC_NO_ERROR">
|
2140 |
|
|
<!-- -->
|
2141 |
|
|
</a>
|
2142 |
|
|
<ul class="blockList">
|
2143 |
|
|
<li class="blockList">
|
2144 |
|
|
<h4>XMEGA_EC_NO_ERROR</h4>
|
2145 |
|
|
<pre>public static final int XMEGA_EC_NO_ERROR</pre>
|
2146 |
|
|
<div class="block">Means no error.</div>
|
2147 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NO_ERROR">Constant Field Values</a></dd></dl>
|
2148 |
|
|
</li>
|
2149 |
|
|
</ul>
|
2150 |
|
|
<a name="XMEGA_EC_PDI_READ_ERROR">
|
2151 |
|
|
<!-- -->
|
2152 |
|
|
</a>
|
2153 |
|
|
<ul class="blockList">
|
2154 |
|
|
<li class="blockList">
|
2155 |
|
|
<h4>XMEGA_EC_PDI_READ_ERROR</h4>
|
2156 |
|
|
<pre>public static final int XMEGA_EC_PDI_READ_ERROR</pre>
|
2157 |
|
|
<div class="block">Signals a PDI read error.</div>
|
2158 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_PDI_READ_ERROR">Constant Field Values</a></dd></dl>
|
2159 |
|
|
</li>
|
2160 |
|
|
</ul>
|
2161 |
|
|
<a name="XMEGA_EC_NVM_TIMEOUT">
|
2162 |
|
|
<!-- -->
|
2163 |
|
|
</a>
|
2164 |
|
|
<ul class="blockList">
|
2165 |
|
|
<li class="blockList">
|
2166 |
|
|
<h4>XMEGA_EC_NVM_TIMEOUT</h4>
|
2167 |
|
|
<pre>public static final int XMEGA_EC_NVM_TIMEOUT</pre>
|
2168 |
|
|
<div class="block">Signals that an NVM timeout occurred.</div>
|
2169 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_TIMEOUT">Constant Field Values</a></dd></dl>
|
2170 |
|
|
</li>
|
2171 |
|
|
</ul>
|
2172 |
|
|
<a name="XMEGA_EC_INVALID_DEVICE">
|
2173 |
|
|
<!-- -->
|
2174 |
|
|
</a>
|
2175 |
|
|
<ul class="blockList">
|
2176 |
|
|
<li class="blockList">
|
2177 |
|
|
<h4>XMEGA_EC_INVALID_DEVICE</h4>
|
2178 |
|
|
<pre>public static final int XMEGA_EC_INVALID_DEVICE</pre>
|
2179 |
|
|
<div class="block">Signals that the ATxmega controller is not supported.</div>
|
2180 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_INVALID_DEVICE">Constant Field Values</a></dd></dl>
|
2181 |
|
|
</li>
|
2182 |
|
|
</ul>
|
2183 |
|
|
<a name="XMEGA_EC_ADDRESS_ERROR">
|
2184 |
|
|
<!-- -->
|
2185 |
|
|
</a>
|
2186 |
|
|
<ul class="blockList">
|
2187 |
|
|
<li class="blockList">
|
2188 |
|
|
<h4>XMEGA_EC_ADDRESS_ERROR</h4>
|
2189 |
|
|
<pre>public static final int XMEGA_EC_ADDRESS_ERROR</pre>
|
2190 |
|
|
<div class="block">Signals an address error (invalid address or wrong page size).</div>
|
2191 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_ADDRESS_ERROR">Constant Field Values</a></dd></dl>
|
2192 |
|
|
</li>
|
2193 |
|
|
</ul>
|
2194 |
|
|
<a name="XMEGA_EC_NVM_BUSY">
|
2195 |
|
|
<!-- -->
|
2196 |
|
|
</a>
|
2197 |
|
|
<ul class="blockList">
|
2198 |
|
|
<li class="blockList">
|
2199 |
|
|
<h4>XMEGA_EC_NVM_BUSY</h4>
|
2200 |
|
|
<pre>public static final int XMEGA_EC_NVM_BUSY</pre>
|
2201 |
|
|
<div class="block">Signals that the NVM is busy.</div>
|
2202 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.XMEGA_EC_NVM_BUSY">Constant Field Values</a></dd></dl>
|
2203 |
|
|
</li>
|
2204 |
|
|
</ul>
|
2205 |
|
|
<a name="tempSensorUpdateInterval">
|
2206 |
|
|
<!-- -->
|
2207 |
|
|
</a>
|
2208 |
|
|
<ul class="blockList">
|
2209 |
|
|
<li class="blockList">
|
2210 |
|
|
<h4>tempSensorUpdateInterval</h4>
|
2211 |
|
|
<pre>public int tempSensorUpdateInterval</pre>
|
2212 |
|
|
<div class="block">smallest temperature sensor update interval in ms</div>
|
2213 |
|
|
</li>
|
2214 |
|
|
</ul>
|
2215 |
|
|
<a name="debug2LogIdx">
|
2216 |
|
|
<!-- -->
|
2217 |
|
|
</a>
|
2218 |
|
|
<ul class="blockList">
|
2219 |
|
|
<li class="blockList">
|
2220 |
|
|
<h4>debug2LogIdx</h4>
|
2221 |
|
|
<pre>public int debug2LogIdx</pre>
|
2222 |
|
|
<div class="block">Index of next log entry (messages of type 1 and 2) to be read.</div>
|
2223 |
|
|
</li>
|
2224 |
|
|
</ul>
|
2225 |
|
|
<a name="usb3SndErrors">
|
2226 |
|
|
<!-- -->
|
2227 |
|
|
</a>
|
2228 |
|
|
<ul class="blockList">
|
2229 |
|
|
<li class="blockList">
|
2230 |
|
|
<h4>usb3SndErrors</h4>
|
2231 |
|
|
<pre>public int usb3SndErrors</pre>
|
2232 |
|
|
<div class="block">USB 3.0 send error count. This variable is set by <a href="../ztex/Ztex1v1.html#getUsb3Errors()"><code>getUsb3Errors()</code></a>.</div>
|
2233 |
|
|
</li>
|
2234 |
|
|
</ul>
|
2235 |
|
|
<a name="usb3RcvErrors">
|
2236 |
|
|
<!-- -->
|
2237 |
|
|
</a>
|
2238 |
|
|
<ul class="blockList">
|
2239 |
|
|
<li class="blockList">
|
2240 |
|
|
<h4>usb3RcvErrors</h4>
|
2241 |
|
|
<pre>public int usb3RcvErrors</pre>
|
2242 |
|
|
<div class="block">USB 3.0 receive error count. This variable is set by <a href="../ztex/Ztex1v1.html#getUsb3Errors()"><code>getUsb3Errors()</code></a>.</div>
|
2243 |
|
|
</li>
|
2244 |
|
|
</ul>
|
2245 |
|
|
<a name="defaultDisableWarnings">
|
2246 |
|
|
<!-- -->
|
2247 |
|
|
</a>
|
2248 |
|
|
<ul class="blockList">
|
2249 |
|
|
<li class="blockList">
|
2250 |
|
|
<h4>defaultDisableWarnings</h4>
|
2251 |
|
|
<pre>public boolean defaultDisableWarnings</pre>
|
2252 |
|
|
<div class="block">disable update warnings.</div>
|
2253 |
|
|
</li>
|
2254 |
|
|
</ul>
|
2255 |
|
|
<a name="defaultLatestVersion">
|
2256 |
|
|
<!-- -->
|
2257 |
|
|
</a>
|
2258 |
|
|
<ul class="blockList">
|
2259 |
|
|
<li class="blockList">
|
2260 |
|
|
<h4>defaultLatestVersion</h4>
|
2261 |
|
|
<pre>public final int defaultLatestVersion</pre>
|
2262 |
|
|
<div class="block">version number of the latest default interface.</div>
|
2263 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.defaultLatestVersion">Constant Field Values</a></dd></dl>
|
2264 |
|
|
</li>
|
2265 |
|
|
</ul>
|
2266 |
|
|
<a name="defaultLatestSubVersion">
|
2267 |
|
|
<!-- -->
|
2268 |
|
|
</a>
|
2269 |
|
|
<ul class="blockList">
|
2270 |
|
|
<li class="blockList">
|
2271 |
|
|
<h4>defaultLatestSubVersion</h4>
|
2272 |
|
|
<pre>public final int defaultLatestSubVersion</pre>
|
2273 |
|
|
<div class="block">sub-version number of the latest default interface.</div>
|
2274 |
|
|
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.defaultLatestSubVersion">Constant Field Values</a></dd></dl>
|
2275 |
|
|
</li>
|
2276 |
|
|
</ul>
|
2277 |
|
|
<a name="config">
|
2278 |
|
|
<!-- -->
|
2279 |
|
|
</a>
|
2280 |
|
|
<ul class="blockListLast">
|
2281 |
|
|
<li class="blockList">
|
2282 |
|
|
<h4>config</h4>
|
2283 |
|
|
<pre>public <a href="../ztex/ConfigData.html" title="class in ztex">ConfigData</a> config</pre>
|
2284 |
|
|
<div class="block">The configuration data structure
|
2285 |
|
|
is initialized if this kind of data is present in MAC EEPROM.
|
2286 |
|
|
In this case MAC EEPROM writes to addresses 0 to 79 are disabled, see <a href="../ztex/Ztex1v1.html#macEepromWrite(int,%20byte[],%20int)"><code>macEepromWrite(int,byte[],int)</code></a>.
|
2287 |
|
|
In order to override this behavior set this variable to null.
|
2288 |
|
|
If no configuration data is present <a href="../ztex/Ztex1v1.html#config"><code>config</code></a> is null.</div>
|
2289 |
|
|
</li>
|
2290 |
|
|
</ul>
|
2291 |
|
|
</li>
|
2292 |
|
|
</ul>
|
2293 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
2294 |
|
|
<ul class="blockList">
|
2295 |
|
|
<li class="blockList"><a name="constructor_detail">
|
2296 |
|
|
<!-- -->
|
2297 |
|
|
</a>
|
2298 |
|
|
<h3>Constructor Detail</h3>
|
2299 |
|
|
<a name="Ztex1v1(ztex.ZtexDevice1)">
|
2300 |
|
|
<!-- -->
|
2301 |
|
|
</a>
|
2302 |
|
|
<ul class="blockListLast">
|
2303 |
|
|
<li class="blockList">
|
2304 |
|
|
<h4>Ztex1v1</h4>
|
2305 |
|
|
<pre>public Ztex1v1(<a href="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</a> pDev)
|
2306 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
|
2307 |
|
|
<div class="block">Constructs an instance from a given device.</div>
|
2308 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pDev</code> - The given device.</dd>
|
2309 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2310 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if an communication error occurred.</dd></dl>
|
2311 |
|
|
</li>
|
2312 |
|
|
</ul>
|
2313 |
|
|
</li>
|
2314 |
|
|
</ul>
|
2315 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
2316 |
|
|
<ul class="blockList">
|
2317 |
|
|
<li class="blockList"><a name="method_detail">
|
2318 |
|
|
<!-- -->
|
2319 |
|
|
</a>
|
2320 |
|
|
<h3>Method Detail</h3>
|
2321 |
|
|
<a name="init()">
|
2322 |
|
|
<!-- -->
|
2323 |
|
|
</a>
|
2324 |
|
|
<ul class="blockList">
|
2325 |
|
|
<li class="blockList">
|
2326 |
|
|
<h4>init</h4>
|
2327 |
|
|
<pre>protected void init()
|
2328 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
|
2329 |
|
|
<div class="block">Initializates the class.</div>
|
2330 |
|
|
<dl>
|
2331 |
|
|
<dt><strong>Overrides:</strong></dt>
|
2332 |
|
|
<dd><code><a href="../ztex/Ztex1.html#init()">init</a></code> in class <code><a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></code></dd>
|
2333 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2334 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if an communication error occurred.</dd></dl>
|
2335 |
|
|
</li>
|
2336 |
|
|
</ul>
|
2337 |
|
|
<a name="valid()">
|
2338 |
|
|
<!-- -->
|
2339 |
|
|
</a>
|
2340 |
|
|
<ul class="blockList">
|
2341 |
|
|
<li class="blockList">
|
2342 |
|
|
<h4>valid</h4>
|
2343 |
|
|
<pre>public boolean valid()</pre>
|
2344 |
|
|
<div class="block">Returns true if ZTEX interface 1 is available.</div>
|
2345 |
|
|
<dl>
|
2346 |
|
|
<dt><strong>Overrides:</strong></dt>
|
2347 |
|
|
<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></dd>
|
2348 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>true if ZTEX interface 1 is available.</dd></dl>
|
2349 |
|
|
</li>
|
2350 |
|
|
</ul>
|
2351 |
|
|
<a name="valid(int, int)">
|
2352 |
|
|
<!-- -->
|
2353 |
|
|
</a>
|
2354 |
|
|
<ul class="blockList">
|
2355 |
|
|
<li class="blockList">
|
2356 |
|
|
<h4>valid</h4>
|
2357 |
|
|
<pre>public boolean valid(int i,
|
2358 |
|
|
int j)</pre>
|
2359 |
|
|
<div class="block">Returns true if ZTEX interface 1 and capability i.j are available.</div>
|
2360 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - byte index of the capability</dd><dd><code>j</code> - bit index of the capability</dd>
|
2361 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>true if ZTEX interface 1 and capability i.j are available.</dd></dl>
|
2362 |
|
|
</li>
|
2363 |
|
|
</ul>
|
2364 |
|
|
<a name="compatible(int, int, int, int)">
|
2365 |
|
|
<!-- -->
|
2366 |
|
|
</a>
|
2367 |
|
|
<ul class="blockList">
|
2368 |
|
|
<li class="blockList">
|
2369 |
|
|
<h4>compatible</h4>
|
2370 |
|
|
<pre>public boolean compatible(int productId0,
|
2371 |
|
|
int productId1,
|
2372 |
|
|
int productId2,
|
2373 |
|
|
int productId3)</pre>
|
2374 |
|
|
<div class="block">Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.<br>
|
2375 |
|
|
The given product ID is compatible
|
2376 |
|
|
<pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) &&
|
2377 |
|
|
( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) &&
|
2378 |
|
|
( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) &&
|
2379 |
|
|
( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre></div>
|
2380 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>productId0</code> - Byte 0 of the given product ID</dd><dd><code>productId1</code> - Byte 1 of the given product ID</dd><dd><code>productId2</code> - Byte 2 of the given product ID</dd><dd><code>productId3</code> - Byte 3 of the given product ID</dd>
|
2381 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>true if the given product ID is compatible and interface 1 is supported.</dd></dl>
|
2382 |
|
|
</li>
|
2383 |
|
|
</ul>
|
2384 |
|
|
<a name="checkValid()">
|
2385 |
|
|
<!-- -->
|
2386 |
|
|
</a>
|
2387 |
|
|
<ul class="blockList">
|
2388 |
|
|
<li class="blockList">
|
2389 |
|
|
<h4>checkValid</h4>
|
2390 |
|
|
<pre>public void checkValid()
|
2391 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
|
2392 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</div>
|
2393 |
|
|
<dl>
|
2394 |
|
|
<dt><strong>Overrides:</strong></dt>
|
2395 |
|
|
<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></dd>
|
2396 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2397 |
|
|
<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.</dd></dl>
|
2398 |
|
|
</li>
|
2399 |
|
|
</ul>
|
2400 |
|
|
<a name="checkCapability(int, int)">
|
2401 |
|
|
<!-- -->
|
2402 |
|
|
</a>
|
2403 |
|
|
<ul class="blockList">
|
2404 |
|
|
<li class="blockList">
|
2405 |
|
|
<h4>checkCapability</h4>
|
2406 |
|
|
<pre>public void checkCapability(int i,
|
2407 |
|
|
int j)
|
2408 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2409 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2410 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
|
2411 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - byte index of the capability</dd><dd><code>j</code> - bit index of the capability</dd>
|
2412 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2413 |
|
|
<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.</dd>
|
2414 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if the given capability is not supported.</dd></dl>
|
2415 |
|
|
</li>
|
2416 |
|
|
</ul>
|
2417 |
|
|
<a name="checkCapability(int)">
|
2418 |
|
|
<!-- -->
|
2419 |
|
|
</a>
|
2420 |
|
|
<ul class="blockList">
|
2421 |
|
|
<li class="blockList">
|
2422 |
|
|
<h4>checkCapability</h4>
|
2423 |
|
|
<pre>public void checkCapability(int i)
|
2424 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2425 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2426 |
|
|
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
|
2427 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - capability index (0..47)</dd>
|
2428 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2429 |
|
|
<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.</dd>
|
2430 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if the given capability is not supported.</dd></dl>
|
2431 |
|
|
</li>
|
2432 |
|
|
</ul>
|
2433 |
|
|
<a name="InterfaceCapabilities(int)">
|
2434 |
|
|
<!-- -->
|
2435 |
|
|
</a>
|
2436 |
|
|
<ul class="blockList">
|
2437 |
|
|
<li class="blockList">
|
2438 |
|
|
<h4>InterfaceCapabilities</h4>
|
2439 |
|
|
<pre>public boolean InterfaceCapabilities(int i)</pre>
|
2440 |
|
|
<div class="block">Returns interface capability bit.</div>
|
2441 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - capability index (0..47)</dd>
|
2442 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>interface capability bit.</dd></dl>
|
2443 |
|
|
</li>
|
2444 |
|
|
</ul>
|
2445 |
|
|
<a name="checkCompatible(int, int, int, int)">
|
2446 |
|
|
<!-- -->
|
2447 |
|
|
</a>
|
2448 |
|
|
<ul class="blockList">
|
2449 |
|
|
<li class="blockList">
|
2450 |
|
|
<h4>checkCompatible</h4>
|
2451 |
|
|
<pre>public void checkCompatible(int productId0,
|
2452 |
|
|
int productId1,
|
2453 |
|
|
int productId2,
|
2454 |
|
|
int productId3)
|
2455 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
|
2456 |
|
|
<div class="block">Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
|
2457 |
|
|
See <a href="../ztex/Ztex1v1.html#compatible(int,%20int,%20int,%20int)"><code>compatible(int,int,int,int)</code></a>.</div>
|
2458 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>productId0</code> - Byte 0 of the given product ID</dd><dd><code>productId1</code> - Byte 1 of the given product ID</dd><dd><code>productId2</code> - Byte 2 of the given product ID</dd><dd><code>productId3</code> - Byte 3 of the given product ID</dd>
|
2459 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2460 |
|
|
<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.</dd></dl>
|
2461 |
|
|
</li>
|
2462 |
|
|
</ul>
|
2463 |
|
|
<a name="printFpgaState()">
|
2464 |
|
|
<!-- -->
|
2465 |
|
|
</a>
|
2466 |
|
|
<ul class="blockList">
|
2467 |
|
|
<li class="blockList">
|
2468 |
|
|
<h4>printFpgaState</h4>
|
2469 |
|
|
<pre>public void printFpgaState()
|
2470 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2471 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2472 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2473 |
|
|
<div class="block">Prints out the FPGA state.</div>
|
2474 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2475 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2476 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2477 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2478 |
|
|
</li>
|
2479 |
|
|
</ul>
|
2480 |
|
|
<a name="getFpgaConfiguration()">
|
2481 |
|
|
<!-- -->
|
2482 |
|
|
</a>
|
2483 |
|
|
<ul class="blockList">
|
2484 |
|
|
<li class="blockList">
|
2485 |
|
|
<h4>getFpgaConfiguration</h4>
|
2486 |
|
|
<pre>public boolean getFpgaConfiguration()
|
2487 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2488 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2489 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2490 |
|
|
<div class="block">Returns true if the FPGA is configured.</div>
|
2491 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if the FPGA is configured.</dd>
|
2492 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2493 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2494 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2495 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2496 |
|
|
</li>
|
2497 |
|
|
</ul>
|
2498 |
|
|
<a name="getFpgaConfigurationStr()">
|
2499 |
|
|
<!-- -->
|
2500 |
|
|
</a>
|
2501 |
|
|
<ul class="blockList">
|
2502 |
|
|
<li class="blockList">
|
2503 |
|
|
<h4>getFpgaConfigurationStr</h4>
|
2504 |
|
|
<pre>public java.lang.String getFpgaConfigurationStr()
|
2505 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2506 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2507 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2508 |
|
|
<div class="block">Returns a string that indicates the FPGA configuration status.</div>
|
2509 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>a string that indicates the FPGA configuration status.</dd>
|
2510 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2511 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2512 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2513 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2514 |
|
|
</li>
|
2515 |
|
|
</ul>
|
2516 |
|
|
<a name="resetFpga()">
|
2517 |
|
|
<!-- -->
|
2518 |
|
|
</a>
|
2519 |
|
|
<ul class="blockList">
|
2520 |
|
|
<li class="blockList">
|
2521 |
|
|
<h4>resetFpga</h4>
|
2522 |
|
|
<pre>public void resetFpga()
|
2523 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2524 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2525 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2526 |
|
|
<div class="block">Resets the FPGA.</div>
|
2527 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2528 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2529 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2530 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2531 |
|
|
</li>
|
2532 |
|
|
</ul>
|
2533 |
|
|
<a name="configureFpgaLS(java.io.InputStream, boolean, int)">
|
2534 |
|
|
<!-- -->
|
2535 |
|
|
</a>
|
2536 |
|
|
<ul class="blockList">
|
2537 |
|
|
<li class="blockList">
|
2538 |
|
|
<h4>configureFpgaLS</h4>
|
2539 |
|
|
<pre>public long configureFpgaLS(java.io.InputStream inputStream,
|
2540 |
|
|
boolean force,
|
2541 |
|
|
int bs)
|
2542 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
2543 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2544 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
2545 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
2546 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2547 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2548 |
|
|
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
|
2549 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inputStream</code> - for reading the Bitstream.</dd><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
2550 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
2551 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2552 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
2553 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
2554 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
2555 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2556 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2557 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2558 |
|
|
</li>
|
2559 |
|
|
</ul>
|
2560 |
|
|
<a name="configureFpgaLS(java.lang.String, boolean, int)">
|
2561 |
|
|
<!-- -->
|
2562 |
|
|
</a>
|
2563 |
|
|
<ul class="blockList">
|
2564 |
|
|
<li class="blockList">
|
2565 |
|
|
<h4>configureFpgaLS</h4>
|
2566 |
|
|
<pre>public long configureFpgaLS(java.lang.String fwFileName,
|
2567 |
|
|
boolean force,
|
2568 |
|
|
int bs)
|
2569 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
2570 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2571 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
2572 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
2573 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2574 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2575 |
|
|
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
|
2576 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
2577 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
2578 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2579 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
2580 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
2581 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
2582 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2583 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2584 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
2585 |
|
|
</li>
|
2586 |
|
|
</ul>
|
2587 |
|
|
<a name="eepromState()">
|
2588 |
|
|
<!-- -->
|
2589 |
|
|
</a>
|
2590 |
|
|
<ul class="blockList">
|
2591 |
|
|
<li class="blockList">
|
2592 |
|
|
<h4>eepromState</h4>
|
2593 |
|
|
<pre>public boolean eepromState()
|
2594 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2595 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2596 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2597 |
|
|
<div class="block">Reads the current EEPROM status.
|
2598 |
|
|
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>.</div>
|
2599 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if EEPROM is ready.</dd>
|
2600 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2601 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2602 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2603 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd></dl>
|
2604 |
|
|
</li>
|
2605 |
|
|
</ul>
|
2606 |
|
|
<a name="eepromWrite(int, byte[], int)">
|
2607 |
|
|
<!-- -->
|
2608 |
|
|
</a>
|
2609 |
|
|
<ul class="blockList">
|
2610 |
|
|
<li class="blockList">
|
2611 |
|
|
<h4>eepromWrite</h4>
|
2612 |
|
|
<pre>public void eepromWrite(int addr,
|
2613 |
|
|
byte[] buf,
|
2614 |
|
|
int length)
|
2615 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2616 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2617 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2618 |
|
|
<div class="block">Writes data to the EEPROM.</div>
|
2619 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The destination address of the EEPROM.</dd><dd><code>buf</code> - The data.</dd><dd><code>length</code> - The amount of bytes to be sent.</dd>
|
2620 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2621 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2622 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2623 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd></dl>
|
2624 |
|
|
</li>
|
2625 |
|
|
</ul>
|
2626 |
|
|
<a name="eepromRead(int, byte[], int)">
|
2627 |
|
|
<!-- -->
|
2628 |
|
|
</a>
|
2629 |
|
|
<ul class="blockList">
|
2630 |
|
|
<li class="blockList">
|
2631 |
|
|
<h4>eepromRead</h4>
|
2632 |
|
|
<pre>public void eepromRead(int addr,
|
2633 |
|
|
byte[] buf,
|
2634 |
|
|
int length)
|
2635 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2636 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2637 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2638 |
|
|
<div class="block">Reads data from the EEPROM.</div>
|
2639 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address of the EEPROM.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
2640 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2641 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2642 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2643 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd></dl>
|
2644 |
|
|
</li>
|
2645 |
|
|
</ul>
|
2646 |
|
|
<a name="nvUploadFirmware(ztex.ZtexImgFile1, boolean)">
|
2647 |
|
|
<!-- -->
|
2648 |
|
|
</a>
|
2649 |
|
|
<ul class="blockList">
|
2650 |
|
|
<li class="blockList">
|
2651 |
|
|
<h4>nvUploadFirmware</h4>
|
2652 |
|
|
<pre>public long nvUploadFirmware(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a> imgFile,
|
2653 |
|
|
boolean force)
|
2654 |
|
|
throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
|
2655 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2656 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2657 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2658 |
|
|
<div class="block">Upload the firmware to the non-volatile memory.
|
2659 |
|
|
In order to start the uploaded firmware the device must be reset.</div>
|
2660 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFile</code> - The firmware image.</dd><dd><code>force</code> - Skips the compatibility check if true.</dd>
|
2661 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Upload time in ms.</dd>
|
2662 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2663 |
|
|
<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,%20int,%20int,%20int)"><code>compatible(int,int,int,int)</code></a> (Upload can be enforced using the <tt>force</tt> parameter.)</dd>
|
2664 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2665 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
|
2666 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if an error occurred while attempting to upload the firmware.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></dd></dl>
|
2667 |
|
|
</li>
|
2668 |
|
|
</ul>
|
2669 |
|
|
<a name="eepromUpload(ztex.ZtexImgFile1, boolean)">
|
2670 |
|
|
<!-- -->
|
2671 |
|
|
</a>
|
2672 |
|
|
<ul class="blockList">
|
2673 |
|
|
<li class="blockList">
|
2674 |
|
|
<h4>eepromUpload</h4>
|
2675 |
|
|
<pre>@Deprecated
|
2676 |
|
|
public long eepromUpload(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a> imgFile,
|
2677 |
|
|
boolean force)
|
2678 |
|
|
throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
|
2679 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2680 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2681 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2682 |
|
|
<div class="block"><span class="strong">Deprecated.</span> <i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(ztex.ZtexImgFile1,%20boolean)"><code>nvUploadFirmware(ZtexImgFile1,boolean)</code></a></i></div>
|
2683 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2684 |
|
|
<dd><code><a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a></code></dd>
|
2685 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
|
2686 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
|
2687 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
|
2688 |
|
|
</li>
|
2689 |
|
|
</ul>
|
2690 |
|
|
<a name="nvUploadFirmware(java.lang.String, boolean)">
|
2691 |
|
|
<!-- -->
|
2692 |
|
|
</a>
|
2693 |
|
|
<ul class="blockList">
|
2694 |
|
|
<li class="blockList">
|
2695 |
|
|
<h4>nvUploadFirmware</h4>
|
2696 |
|
|
<pre>public long nvUploadFirmware(java.lang.String imgFileName,
|
2697 |
|
|
boolean force)
|
2698 |
|
|
throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
|
2699 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2700 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2701 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2702 |
|
|
<div class="block">Upload the firmware to the non-volatile memory.
|
2703 |
|
|
In order to start the uploaded firmware the device must be reset.</div>
|
2704 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFileName</code> - The file name of the firmware image in ihx or img format. The file can be a regular file or a system resource (e.g. a file from the current jar archive).</dd><dd><code>force</code> - Skips the compatibility check if true.</dd>
|
2705 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Upload time in ms.</dd>
|
2706 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2707 |
|
|
<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,%20int,%20int,%20int)"><code>compatible(int,int,int,int)</code></a> (Upload can be enforced using the <tt>force</tt> parameter.)</dd>
|
2708 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2709 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
|
2710 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if an error occurred while attempting to upload the firmware.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></dd></dl>
|
2711 |
|
|
</li>
|
2712 |
|
|
</ul>
|
2713 |
|
|
<a name="eepromUpload(java.lang.String, boolean)">
|
2714 |
|
|
<!-- -->
|
2715 |
|
|
</a>
|
2716 |
|
|
<ul class="blockList">
|
2717 |
|
|
<li class="blockList">
|
2718 |
|
|
<h4>eepromUpload</h4>
|
2719 |
|
|
<pre>@Deprecated
|
2720 |
|
|
public long eepromUpload(java.lang.String imgFileName,
|
2721 |
|
|
boolean force)
|
2722 |
|
|
throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
|
2723 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2724 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2725 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2726 |
|
|
<div class="block"><span class="strong">Deprecated.</span> <i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)"><code>nvUploadFirmware(String,boolean)</code></a></i></div>
|
2727 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2728 |
|
|
<dd><code><a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a></code></dd>
|
2729 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
|
2730 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
|
2731 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
|
2732 |
|
|
</li>
|
2733 |
|
|
</ul>
|
2734 |
|
|
<a name="eepromDisable()">
|
2735 |
|
|
<!-- -->
|
2736 |
|
|
</a>
|
2737 |
|
|
<ul class="blockList">
|
2738 |
|
|
<li class="blockList">
|
2739 |
|
|
<h4>eepromDisable</h4>
|
2740 |
|
|
<pre>@Deprecated
|
2741 |
|
|
public void eepromDisable()
|
2742 |
|
|
throws <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2743 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2744 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2745 |
|
|
<div class="block"><span class="strong">Deprecated.</span> <i>Replaced by <a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></i></div>
|
2746 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2747 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
|
2748 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
|
2749 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
|
2750 |
|
|
</li>
|
2751 |
|
|
</ul>
|
2752 |
|
|
<a name="nvDisableFirmware()">
|
2753 |
|
|
<!-- -->
|
2754 |
|
|
</a>
|
2755 |
|
|
<ul class="blockList">
|
2756 |
|
|
<li class="blockList">
|
2757 |
|
|
<h4>nvDisableFirmware</h4>
|
2758 |
|
|
<pre>public void nvDisableFirmware()
|
2759 |
|
|
throws <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
|
2760 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2761 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2762 |
|
|
<div class="block">Disables the firmware stored in the non-volatile memory.
|
2763 |
|
|
This is achived by writing a "0" to the address 0 of the memory.</div>
|
2764 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
2765 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2766 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
|
2767 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if an error occurred while attempting to disable the firmware.</dd></dl>
|
2768 |
|
|
</li>
|
2769 |
|
|
</ul>
|
2770 |
|
|
<a name="flashStrError(int)">
|
2771 |
|
|
<!-- -->
|
2772 |
|
|
</a>
|
2773 |
|
|
<ul class="blockList">
|
2774 |
|
|
<li class="blockList">
|
2775 |
|
|
<h4>flashStrError</h4>
|
2776 |
|
|
<pre>public static java.lang.String flashStrError(int errNum)</pre>
|
2777 |
|
|
<div class="block">Converts a given error code into a String.</div>
|
2778 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>errNum</code> - The error code.</dd>
|
2779 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
|
2780 |
|
|
</li>
|
2781 |
|
|
</ul>
|
2782 |
|
|
<a name="flashStrError()">
|
2783 |
|
|
<!-- -->
|
2784 |
|
|
</a>
|
2785 |
|
|
<ul class="blockList">
|
2786 |
|
|
<li class="blockList">
|
2787 |
|
|
<h4>flashStrError</h4>
|
2788 |
|
|
<pre>public java.lang.String flashStrError()</pre>
|
2789 |
|
|
<div class="block">Gets the last Flash error from the device.</div>
|
2790 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
|
2791 |
|
|
</li>
|
2792 |
|
|
</ul>
|
2793 |
|
|
<a name="flash2StrError()">
|
2794 |
|
|
<!-- -->
|
2795 |
|
|
</a>
|
2796 |
|
|
<ul class="blockList">
|
2797 |
|
|
<li class="blockList">
|
2798 |
|
|
<h4>flash2StrError</h4>
|
2799 |
|
|
<pre>public java.lang.String flash2StrError()</pre>
|
2800 |
|
|
<div class="block">Gets the last 2nd Flash error from the device.</div>
|
2801 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
|
2802 |
|
|
</li>
|
2803 |
|
|
</ul>
|
2804 |
|
|
<a name="flashState()">
|
2805 |
|
|
<!-- -->
|
2806 |
|
|
</a>
|
2807 |
|
|
<ul class="blockList">
|
2808 |
|
|
<li class="blockList">
|
2809 |
|
|
<h4>flashState</h4>
|
2810 |
|
|
<pre>public boolean flashState()
|
2811 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2812 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2813 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2814 |
|
|
<div class="block">Reads the the Flash memory status and information.
|
2815 |
|
|
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>.</div>
|
2816 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if Flash memory is installed.</dd>
|
2817 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2818 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2819 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2820 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
2821 |
|
|
</li>
|
2822 |
|
|
</ul>
|
2823 |
|
|
<a name="flash2State()">
|
2824 |
|
|
<!-- -->
|
2825 |
|
|
</a>
|
2826 |
|
|
<ul class="blockList">
|
2827 |
|
|
<li class="blockList">
|
2828 |
|
|
<h4>flash2State</h4>
|
2829 |
|
|
<pre>public boolean flash2State()
|
2830 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2831 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2832 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2833 |
|
|
<div class="block">Reads the the 2nd Flash memory status and information.
|
2834 |
|
|
This method also sets the variables <a href="../ztex/Ztex1v1.html#flash2Enabled()"><code>flash2Enabled()</code></a>, <a href="../ztex/Ztex1v1.html#flash2SectorSize()"><code>flash2SectorSize()</code></a> and <a href="../ztex/Ztex1v1.html#flash2Sectors()"><code>flash2Sectors()</code></a>.</div>
|
2835 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if 2nd Flash memory is installed.</dd>
|
2836 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2837 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2838 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2839 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
2840 |
|
|
</li>
|
2841 |
|
|
</ul>
|
2842 |
|
|
<a name="getFlashEC()">
|
2843 |
|
|
<!-- -->
|
2844 |
|
|
</a>
|
2845 |
|
|
<ul class="blockList">
|
2846 |
|
|
<li class="blockList">
|
2847 |
|
|
<h4>getFlashEC</h4>
|
2848 |
|
|
<pre>public int getFlashEC()
|
2849 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2850 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2851 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2852 |
|
|
<div class="block">Gets the last Flash error from the device.</div>
|
2853 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
|
2854 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2855 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2856 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2857 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
2858 |
|
|
</li>
|
2859 |
|
|
</ul>
|
2860 |
|
|
<a name="getFlash2EC()">
|
2861 |
|
|
<!-- -->
|
2862 |
|
|
</a>
|
2863 |
|
|
<ul class="blockList">
|
2864 |
|
|
<li class="blockList">
|
2865 |
|
|
<h4>getFlash2EC</h4>
|
2866 |
|
|
<pre>public int getFlash2EC()
|
2867 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2868 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2869 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
2870 |
|
|
<div class="block">Gets the last 2nd Flash memory error from the device.</div>
|
2871 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
|
2872 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2873 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2874 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2875 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
2876 |
|
|
</li>
|
2877 |
|
|
</ul>
|
2878 |
|
|
<a name="flashReadSector(int, int, byte[])">
|
2879 |
|
|
<!-- -->
|
2880 |
|
|
</a>
|
2881 |
|
|
<ul class="blockList">
|
2882 |
|
|
<li class="blockList">
|
2883 |
|
|
<h4>flashReadSector</h4>
|
2884 |
|
|
<pre>public void flashReadSector(int sector,
|
2885 |
|
|
int num,
|
2886 |
|
|
byte[] buf)
|
2887 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2888 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2889 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2890 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2891 |
|
|
<div class="block">Reads a integer number of sectors from the Flash.</div>
|
2892 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The number of the first sector to be read.</dd><dd><code>num</code> - The number of sectors to be read.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd>
|
2893 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2894 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2895 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2896 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
2897 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
|
2898 |
|
|
</li>
|
2899 |
|
|
</ul>
|
2900 |
|
|
<a name="flashReadSector(int, byte[])">
|
2901 |
|
|
<!-- -->
|
2902 |
|
|
</a>
|
2903 |
|
|
<ul class="blockList">
|
2904 |
|
|
<li class="blockList">
|
2905 |
|
|
<h4>flashReadSector</h4>
|
2906 |
|
|
<pre>public void flashReadSector(int sector,
|
2907 |
|
|
byte[] buf)
|
2908 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2909 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2910 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2911 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2912 |
|
|
<div class="block">Reads one sector from the Flash.</div>
|
2913 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be read.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd>
|
2914 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2915 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2916 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2917 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
2918 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash sector size.</dd></dl>
|
2919 |
|
|
</li>
|
2920 |
|
|
</ul>
|
2921 |
|
|
<a name="flash2ReadSector(int, int, byte[])">
|
2922 |
|
|
<!-- -->
|
2923 |
|
|
</a>
|
2924 |
|
|
<ul class="blockList">
|
2925 |
|
|
<li class="blockList">
|
2926 |
|
|
<h4>flash2ReadSector</h4>
|
2927 |
|
|
<pre>public void flash2ReadSector(int sector,
|
2928 |
|
|
int num,
|
2929 |
|
|
byte[] buf)
|
2930 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2931 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2932 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2933 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2934 |
|
|
<div class="block">Reads a integer number of sectors from the 2nd Flash memory.</div>
|
2935 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The number of the first sector to be read.</dd><dd><code>num</code> - The number of sectors to be read.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd>
|
2936 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2937 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2938 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2939 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash access is not possible.</dd>
|
2940 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
|
2941 |
|
|
</li>
|
2942 |
|
|
</ul>
|
2943 |
|
|
<a name="flash2ReadSector(int, byte[])">
|
2944 |
|
|
<!-- -->
|
2945 |
|
|
</a>
|
2946 |
|
|
<ul class="blockList">
|
2947 |
|
|
<li class="blockList">
|
2948 |
|
|
<h4>flash2ReadSector</h4>
|
2949 |
|
|
<pre>public void flash2ReadSector(int sector,
|
2950 |
|
|
byte[] buf)
|
2951 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2952 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2953 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2954 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2955 |
|
|
<div class="block">Reads one sector from the 2nd Flash memory.</div>
|
2956 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be read.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd>
|
2957 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2958 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2959 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2960 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not possible.</dd>
|
2961 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the 2nd Flash sector size.</dd></dl>
|
2962 |
|
|
</li>
|
2963 |
|
|
</ul>
|
2964 |
|
|
<a name="flashWriteSector(int, int, byte[])">
|
2965 |
|
|
<!-- -->
|
2966 |
|
|
</a>
|
2967 |
|
|
<ul class="blockList">
|
2968 |
|
|
<li class="blockList">
|
2969 |
|
|
<h4>flashWriteSector</h4>
|
2970 |
|
|
<pre>public void flashWriteSector(int sector,
|
2971 |
|
|
int num,
|
2972 |
|
|
byte[] buf)
|
2973 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2974 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2975 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2976 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2977 |
|
|
<div class="block">Writes a integer number of sectors to the Flash.</div>
|
2978 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be written.</dd><dd><code>num</code> - The number of sectors to be read.</dd><dd><code>buf</code> - The data.</dd>
|
2979 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
2980 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
2981 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
2982 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
2983 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
|
2984 |
|
|
</li>
|
2985 |
|
|
</ul>
|
2986 |
|
|
<a name="flashWriteSector(int, byte[])">
|
2987 |
|
|
<!-- -->
|
2988 |
|
|
</a>
|
2989 |
|
|
<ul class="blockList">
|
2990 |
|
|
<li class="blockList">
|
2991 |
|
|
<h4>flashWriteSector</h4>
|
2992 |
|
|
<pre>public void flashWriteSector(int sector,
|
2993 |
|
|
byte[] buf)
|
2994 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
2995 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
2996 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
2997 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
2998 |
|
|
<div class="block">Writes one sector to the Flash.</div>
|
2999 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be written.</dd><dd><code>buf</code> - The data.</dd>
|
3000 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3001 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3002 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3003 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
3004 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash sector size.</dd></dl>
|
3005 |
|
|
</li>
|
3006 |
|
|
</ul>
|
3007 |
|
|
<a name="flash2WriteSector(int, int, byte[])">
|
3008 |
|
|
<!-- -->
|
3009 |
|
|
</a>
|
3010 |
|
|
<ul class="blockList">
|
3011 |
|
|
<li class="blockList">
|
3012 |
|
|
<h4>flash2WriteSector</h4>
|
3013 |
|
|
<pre>public void flash2WriteSector(int sector,
|
3014 |
|
|
int num,
|
3015 |
|
|
byte[] buf)
|
3016 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3017 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3018 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3019 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
3020 |
|
|
<div class="block">Writes a integer number of sectors to the 2nd Flash.</div>
|
3021 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be written.</dd><dd><code>num</code> - The number of sectors to be read.</dd><dd><code>buf</code> - The data.</dd>
|
3022 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3023 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3024 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3025 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not possible.</dd>
|
3026 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
|
3027 |
|
|
</li>
|
3028 |
|
|
</ul>
|
3029 |
|
|
<a name="flash2WriteSector(int, byte[])">
|
3030 |
|
|
<!-- -->
|
3031 |
|
|
</a>
|
3032 |
|
|
<ul class="blockList">
|
3033 |
|
|
<li class="blockList">
|
3034 |
|
|
<h4>flash2WriteSector</h4>
|
3035 |
|
|
<pre>public void flash2WriteSector(int sector,
|
3036 |
|
|
byte[] buf)
|
3037 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3038 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3039 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3040 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
3041 |
|
|
<div class="block">Writes one sector to the 2nd Flash memory.</div>
|
3042 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sector</code> - The sector number to be written.</dd><dd><code>buf</code> - The data.</dd>
|
3043 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3044 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3045 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3046 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash access is not possible.</dd>
|
3047 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the 2nd Flash sector size.</dd></dl>
|
3048 |
|
|
</li>
|
3049 |
|
|
</ul>
|
3050 |
|
|
<a name="flashEnabled()">
|
3051 |
|
|
<!-- -->
|
3052 |
|
|
</a>
|
3053 |
|
|
<ul class="blockList">
|
3054 |
|
|
<li class="blockList">
|
3055 |
|
|
<h4>flashEnabled</h4>
|
3056 |
|
|
<pre>public boolean flashEnabled()
|
3057 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3058 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3059 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3060 |
|
|
<div class="block">Returns true if Flash memory is installed.</div>
|
3061 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if Flash memory is installed.</dd>
|
3062 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3063 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3064 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3065 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
3066 |
|
|
</li>
|
3067 |
|
|
</ul>
|
3068 |
|
|
<a name="flash2Enabled()">
|
3069 |
|
|
<!-- -->
|
3070 |
|
|
</a>
|
3071 |
|
|
<ul class="blockList">
|
3072 |
|
|
<li class="blockList">
|
3073 |
|
|
<h4>flash2Enabled</h4>
|
3074 |
|
|
<pre>public boolean flash2Enabled()
|
3075 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3076 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3077 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3078 |
|
|
<div class="block">Returns true if 2nd Flash memory is installed.</div>
|
3079 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if 2nd Flash memory is installed.</dd>
|
3080 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3081 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3082 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3083 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
3084 |
|
|
</li>
|
3085 |
|
|
</ul>
|
3086 |
|
|
<a name="flashSectorSize()">
|
3087 |
|
|
<!-- -->
|
3088 |
|
|
</a>
|
3089 |
|
|
<ul class="blockList">
|
3090 |
|
|
<li class="blockList">
|
3091 |
|
|
<h4>flashSectorSize</h4>
|
3092 |
|
|
<pre>public int flashSectorSize()
|
3093 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3094 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3095 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3096 |
|
|
<div class="block">Returns the sector size of the Flash memory or 0, if no Flash is installed.
|
3097 |
|
|
If required, the sector size is determined form the device first.</div>
|
3098 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the sector size of the Flash memory.</dd>
|
3099 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3100 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3101 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3102 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
3103 |
|
|
</li>
|
3104 |
|
|
</ul>
|
3105 |
|
|
<a name="flash2SectorSize()">
|
3106 |
|
|
<!-- -->
|
3107 |
|
|
</a>
|
3108 |
|
|
<ul class="blockList">
|
3109 |
|
|
<li class="blockList">
|
3110 |
|
|
<h4>flash2SectorSize</h4>
|
3111 |
|
|
<pre>public int flash2SectorSize()
|
3112 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3113 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3114 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3115 |
|
|
<div class="block">Returns the sector size of the 2nd Flash memory or 0, if no 2nd Flash is installed.
|
3116 |
|
|
If required, the sector size is determined form the device first.</div>
|
3117 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the sector size of the 2nd Flash.</dd>
|
3118 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3119 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3120 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3121 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash access is not supported by the firmware.</dd></dl>
|
3122 |
|
|
</li>
|
3123 |
|
|
</ul>
|
3124 |
|
|
<a name="flashSectors()">
|
3125 |
|
|
<!-- -->
|
3126 |
|
|
</a>
|
3127 |
|
|
<ul class="blockList">
|
3128 |
|
|
<li class="blockList">
|
3129 |
|
|
<h4>flashSectors</h4>
|
3130 |
|
|
<pre>public int flashSectors()
|
3131 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3132 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3133 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3134 |
|
|
<div class="block">Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
|
3135 |
|
|
If required, the number of sectors is determined form the device first.</div>
|
3136 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of sectors of the Flash memory.</dd>
|
3137 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3138 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3139 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3140 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
3141 |
|
|
</li>
|
3142 |
|
|
</ul>
|
3143 |
|
|
<a name="flash2Sectors()">
|
3144 |
|
|
<!-- -->
|
3145 |
|
|
</a>
|
3146 |
|
|
<ul class="blockList">
|
3147 |
|
|
<li class="blockList">
|
3148 |
|
|
<h4>flash2Sectors</h4>
|
3149 |
|
|
<pre>public int flash2Sectors()
|
3150 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3151 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3152 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3153 |
|
|
<div class="block">Returns the number of sectors of the 2nd Flash memory or 0, if no 2nd Flash is installed.
|
3154 |
|
|
If required, the number of sectors is determined form the device first.</div>
|
3155 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of sectors of the 2nd Flash memory.</dd>
|
3156 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3157 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3158 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3159 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
3160 |
|
|
</li>
|
3161 |
|
|
</ul>
|
3162 |
|
|
<a name="flashSize()">
|
3163 |
|
|
<!-- -->
|
3164 |
|
|
</a>
|
3165 |
|
|
<ul class="blockList">
|
3166 |
|
|
<li class="blockList">
|
3167 |
|
|
<h4>flashSize</h4>
|
3168 |
|
|
<pre>public long flashSize()
|
3169 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3170 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3171 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3172 |
|
|
<div class="block">Returns the size of Flash memory or 0, if no Flash memory is installed.
|
3173 |
|
|
If required, the Flash size is determined form the device first.</div>
|
3174 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of Flash memory.</dd>
|
3175 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3176 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3177 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3178 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
3179 |
|
|
</li>
|
3180 |
|
|
</ul>
|
3181 |
|
|
<a name="flash2Size()">
|
3182 |
|
|
<!-- -->
|
3183 |
|
|
</a>
|
3184 |
|
|
<ul class="blockList">
|
3185 |
|
|
<li class="blockList">
|
3186 |
|
|
<h4>flash2Size</h4>
|
3187 |
|
|
<pre>public long flash2Size()
|
3188 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3189 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3190 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3191 |
|
|
<div class="block">Returns the size of 2nd Flash memory or 0, if no 2nd Flash memory is installed.
|
3192 |
|
|
If required, the 2nd Flash size is determined form the device first.</div>
|
3193 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of Flash memory.</dd>
|
3194 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3195 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3196 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3197 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
3198 |
|
|
</li>
|
3199 |
|
|
</ul>
|
3200 |
|
|
<a name="printMmcState()">
|
3201 |
|
|
<!-- -->
|
3202 |
|
|
</a>
|
3203 |
|
|
<ul class="blockList">
|
3204 |
|
|
<li class="blockList">
|
3205 |
|
|
<h4>printMmcState</h4>
|
3206 |
|
|
<pre>public boolean printMmcState()
|
3207 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3208 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3209 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3210 |
|
|
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
|
3211 |
|
|
<b>Only use this method if such kind of Flash is installed.</b></div>
|
3212 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if flash is installed and enabled.</dd>
|
3213 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3214 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3215 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3216 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
3217 |
|
|
</li>
|
3218 |
|
|
</ul>
|
3219 |
|
|
<a name="printMmc2State()">
|
3220 |
|
|
<!-- -->
|
3221 |
|
|
</a>
|
3222 |
|
|
<ul class="blockList">
|
3223 |
|
|
<li class="blockList">
|
3224 |
|
|
<h4>printMmc2State</h4>
|
3225 |
|
|
<pre>public boolean printMmc2State()
|
3226 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3227 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3228 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3229 |
|
|
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
|
3230 |
|
|
<b>Only use this method if such kind of Flash is installed as 2nd Flash memory.</b></div>
|
3231 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>True if flash is installed and enabled.</dd>
|
3232 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3233 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3234 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3235 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not supported by the firmware.</dd></dl>
|
3236 |
|
|
</li>
|
3237 |
|
|
</ul>
|
3238 |
|
|
<a name="flashUploadBitstream(java.io.InputStream, int)">
|
3239 |
|
|
<!-- -->
|
3240 |
|
|
</a>
|
3241 |
|
|
<ul class="blockList">
|
3242 |
|
|
<li class="blockList">
|
3243 |
|
|
<h4>flashUploadBitstream</h4>
|
3244 |
|
|
<pre>public long flashUploadBitstream(java.io.InputStream inputStream,
|
3245 |
|
|
int bs)
|
3246 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3247 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3248 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3249 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3250 |
|
|
<div class="block">Uploads a Bitstream to the Flash.
|
3251 |
|
|
This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
|
3252 |
|
|
it is possible to construct fully autonomous devices.
|
3253 |
|
|
<p>
|
3254 |
|
|
If configuration data is present information about bitstream are stored there and Bitstream starts
|
3255 |
|
|
at sector 0.
|
3256 |
|
|
<p>
|
3257 |
|
|
On all other devices the information about the bitstream is stored in sector 0.
|
3258 |
|
|
This so called boot sector has the following format:
|
3259 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
3260 |
|
|
<tr>
|
3261 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
3262 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
3263 |
|
|
</tr>
|
3264 |
|
|
<tr>
|
3265 |
|
|
<td bgcolor="#ffffff" valign="top">0..7</td>
|
3266 |
|
|
<td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
|
3267 |
|
|
</tr>
|
3268 |
|
|
<tr>
|
3269 |
|
|
<td bgcolor="#ffffff" valign="top">8..9</td>
|
3270 |
|
|
<td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
|
3271 |
|
|
</tr>
|
3272 |
|
|
<tr>
|
3273 |
|
|
<td bgcolor="#ffffff" valign="top">10..11</td>
|
3274 |
|
|
<td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
|
3275 |
|
|
</tr>
|
3276 |
|
|
<tr>
|
3277 |
|
|
<td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
|
3278 |
|
|
<td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
|
3279 |
|
|
</tr>
|
3280 |
|
|
</table>
|
3281 |
|
|
<p>
|
3282 |
|
|
The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
|
3283 |
|
|
where bs[i] denotes byte i of the boot sector.
|
3284 |
|
|
<p>
|
3285 |
|
|
The first sector of the Bitstream is sector 1.</div>
|
3286 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inputStream</code> - for reading the Bitstream.</dd><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3287 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3288 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3289 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3290 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3291 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
3292 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/Ztex1v1.html#flashResetBitstream()"><code>flashResetBitstream()</code></a></dd></dl>
|
3293 |
|
|
</li>
|
3294 |
|
|
</ul>
|
3295 |
|
|
<a name="flashUploadBitstream(java.lang.String, int)">
|
3296 |
|
|
<!-- -->
|
3297 |
|
|
</a>
|
3298 |
|
|
<ul class="blockList">
|
3299 |
|
|
<li class="blockList">
|
3300 |
|
|
<h4>flashUploadBitstream</h4>
|
3301 |
|
|
<pre>public long flashUploadBitstream(java.lang.String fwFileName,
|
3302 |
|
|
int bs)
|
3303 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3304 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3305 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3306 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3307 |
|
|
<div class="block">Uploads a Bitstream to the Flash.
|
3308 |
|
|
This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
|
3309 |
|
|
it is possible to construct fully autonomous devices.
|
3310 |
|
|
See <a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)"><code>flashUploadBitstream(InputStream,int)</code></a> for further details.</div>
|
3311 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3312 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3313 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3314 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3315 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3316 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
3317 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/Ztex1v1.html#flashResetBitstream()"><code>flashResetBitstream()</code></a></dd></dl>
|
3318 |
|
|
</li>
|
3319 |
|
|
</ul>
|
3320 |
|
|
<a name="flashUploadBitstream(java.lang.String)">
|
3321 |
|
|
<!-- -->
|
3322 |
|
|
</a>
|
3323 |
|
|
<ul class="blockList">
|
3324 |
|
|
<li class="blockList">
|
3325 |
|
|
<h4>flashUploadBitstream</h4>
|
3326 |
|
|
<pre>public long flashUploadBitstream(java.lang.String fwFileName)
|
3327 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3328 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3329 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3330 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3331 |
|
|
<div class="block">Uploads a Bitstream to the Flash.
|
3332 |
|
|
This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
|
3333 |
|
|
it is possible to construct fully autonomous devices.
|
3334 |
|
|
See <a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)"><code>flashUploadBitstream(InputStream,int)</code></a> for further details.</div>
|
3335 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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>
|
3336 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3337 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3338 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3339 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3340 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
|
3341 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/Ztex1v1.html#flashResetBitstream()"><code>flashResetBitstream()</code></a></dd></dl>
|
3342 |
|
|
</li>
|
3343 |
|
|
</ul>
|
3344 |
|
|
<a name="flashResetBitstream()">
|
3345 |
|
|
<!-- -->
|
3346 |
|
|
</a>
|
3347 |
|
|
<ul class="blockList">
|
3348 |
|
|
<li class="blockList">
|
3349 |
|
|
<h4>flashResetBitstream</h4>
|
3350 |
|
|
<pre>public void flashResetBitstream()
|
3351 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3352 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3353 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3354 |
|
|
<div class="block">Clears a Bitstream from the Flash.
|
3355 |
|
|
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>.
|
3356 |
|
|
If no boot sector is installed the method returns without any write action.</div>
|
3357 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
3358 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3359 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3360 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
|
3361 |
|
|
</li>
|
3362 |
|
|
</ul>
|
3363 |
|
|
<a name="flashFirstFreeSector()">
|
3364 |
|
|
<!-- -->
|
3365 |
|
|
</a>
|
3366 |
|
|
<ul class="blockList">
|
3367 |
|
|
<li class="blockList">
|
3368 |
|
|
<h4>flashFirstFreeSector</h4>
|
3369 |
|
|
<pre>public int flashFirstFreeSector()
|
3370 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3371 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3372 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3373 |
|
|
<div class="block">Returns the first free sector of the Flash memory.
|
3374 |
|
|
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).</div>
|
3375 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the first free sector of the Flash memory.</dd>
|
3376 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3377 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3378 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3379 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
|
3380 |
|
|
</li>
|
3381 |
|
|
</ul>
|
3382 |
|
|
<a name="toHumanStr(long)">
|
3383 |
|
|
<!-- -->
|
3384 |
|
|
</a>
|
3385 |
|
|
<ul class="blockList">
|
3386 |
|
|
<li class="blockList">
|
3387 |
|
|
<h4>toHumanStr</h4>
|
3388 |
|
|
<pre>public java.lang.String toHumanStr(long i)</pre>
|
3389 |
|
|
<div class="block">Converts an integer into a base 1024 formatted string.
|
3390 |
|
|
E.g. the number 1234567890 is converted to 1G153M384K722.</div>
|
3391 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - an integer which may be large.</dd>
|
3392 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>a human readable string representation.</dd></dl>
|
3393 |
|
|
</li>
|
3394 |
|
|
</ul>
|
3395 |
|
|
<a name="flashInfo()">
|
3396 |
|
|
<!-- -->
|
3397 |
|
|
</a>
|
3398 |
|
|
<ul class="blockList">
|
3399 |
|
|
<li class="blockList">
|
3400 |
|
|
<h4>flashInfo</h4>
|
3401 |
|
|
<pre>public java.lang.String flashInfo()</pre>
|
3402 |
|
|
<div class="block">Returns information about Flash memory.
|
3403 |
|
|
The result contains the size and how much of the Flash is us used / reserved for / by the Bitstream.
|
3404 |
|
|
If no Flash memeory is suppported an empty string is returned.</div>
|
3405 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Information about Flash memory.</dd></dl>
|
3406 |
|
|
</li>
|
3407 |
|
|
</ul>
|
3408 |
|
|
<a name="flash2Info()">
|
3409 |
|
|
<!-- -->
|
3410 |
|
|
</a>
|
3411 |
|
|
<ul class="blockList">
|
3412 |
|
|
<li class="blockList">
|
3413 |
|
|
<h4>flash2Info</h4>
|
3414 |
|
|
<pre>public java.lang.String flash2Info()</pre>
|
3415 |
|
|
<div class="block">Returns information about 2nd Flash memory.
|
3416 |
|
|
The result contains the size and how much of the Flash available.
|
3417 |
|
|
If no 2nd Flash memeory is suppported an empty string is returned.</div>
|
3418 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Information about 2nd Flash memory.</dd></dl>
|
3419 |
|
|
</li>
|
3420 |
|
|
</ul>
|
3421 |
|
|
<a name="debugStackSize()">
|
3422 |
|
|
<!-- -->
|
3423 |
|
|
</a>
|
3424 |
|
|
<ul class="blockList">
|
3425 |
|
|
<li class="blockList">
|
3426 |
|
|
<h4>debugStackSize</h4>
|
3427 |
|
|
<pre>public int debugStackSize()
|
3428 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3429 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3430 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3431 |
|
|
<div class="block">Returns the size of message stack in messages.</div>
|
3432 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of message stack in messages.</dd>
|
3433 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3434 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3435 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3436 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
|
3437 |
|
|
</li>
|
3438 |
|
|
</ul>
|
3439 |
|
|
<a name="debugMsgSize()">
|
3440 |
|
|
<!-- -->
|
3441 |
|
|
</a>
|
3442 |
|
|
<ul class="blockList">
|
3443 |
|
|
<li class="blockList">
|
3444 |
|
|
<h4>debugMsgSize</h4>
|
3445 |
|
|
<pre>public int debugMsgSize()
|
3446 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3447 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3448 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3449 |
|
|
<div class="block">Returns the size of messages in bytes.</div>
|
3450 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of messages in bytes.</dd>
|
3451 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3452 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3453 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3454 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
|
3455 |
|
|
</li>
|
3456 |
|
|
</ul>
|
3457 |
|
|
<a name="debugLastMsg()">
|
3458 |
|
|
<!-- -->
|
3459 |
|
|
</a>
|
3460 |
|
|
<ul class="blockList">
|
3461 |
|
|
<li class="blockList">
|
3462 |
|
|
<h4>debugLastMsg</h4>
|
3463 |
|
|
<pre>public final int debugLastMsg()</pre>
|
3464 |
|
|
<div class="block">Returns the number of the last message read out by <a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])"><code>debugReadMessages(boolean,byte[])</code></a></div>
|
3465 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of the last message read out by <a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])"><code>debugReadMessages(boolean,byte[])</code></a></dd></dl>
|
3466 |
|
|
</li>
|
3467 |
|
|
</ul>
|
3468 |
|
|
<a name="debugReadMessages(boolean, byte[])">
|
3469 |
|
|
<!-- -->
|
3470 |
|
|
</a>
|
3471 |
|
|
<ul class="blockList">
|
3472 |
|
|
<li class="blockList">
|
3473 |
|
|
<h4>debugReadMessages</h4>
|
3474 |
|
|
<pre>public int debugReadMessages(boolean all,
|
3475 |
|
|
byte[] buf)
|
3476 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3477 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3478 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3479 |
|
|
<div class="block">Reads debug messages from message stack.
|
3480 |
|
|
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>.
|
3481 |
|
|
The number of the latest message is returned by <a href="../ztex/Ztex1v1.html#debugLastMsg()"><code>debugLastMsg()</code></a>.</div>
|
3482 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><dd><code>buf</code> - The buffer to store the messages.</dd>
|
3483 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>the size of messages stored in buffer.</dd>
|
3484 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3485 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3486 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3487 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
|
3488 |
|
|
</li>
|
3489 |
|
|
</ul>
|
3490 |
|
|
<a name="xmegaStrError(int)">
|
3491 |
|
|
<!-- -->
|
3492 |
|
|
</a>
|
3493 |
|
|
<ul class="blockList">
|
3494 |
|
|
<li class="blockList">
|
3495 |
|
|
<h4>xmegaStrError</h4>
|
3496 |
|
|
<pre>public java.lang.String xmegaStrError(int errNum)</pre>
|
3497 |
|
|
<div class="block">Converts a given error code into a String.</div>
|
3498 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>errNum</code> - The error code.</dd>
|
3499 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
|
3500 |
|
|
</li>
|
3501 |
|
|
</ul>
|
3502 |
|
|
<a name="xmegaStrError()">
|
3503 |
|
|
<!-- -->
|
3504 |
|
|
</a>
|
3505 |
|
|
<ul class="blockList">
|
3506 |
|
|
<li class="blockList">
|
3507 |
|
|
<h4>xmegaStrError</h4>
|
3508 |
|
|
<pre>public java.lang.String xmegaStrError()</pre>
|
3509 |
|
|
<div class="block">Gets the last ATxmega error from the device.</div>
|
3510 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
|
3511 |
|
|
</li>
|
3512 |
|
|
</ul>
|
3513 |
|
|
<a name="xmegaState()">
|
3514 |
|
|
<!-- -->
|
3515 |
|
|
</a>
|
3516 |
|
|
<ul class="blockList">
|
3517 |
|
|
<li class="blockList">
|
3518 |
|
|
<h4>xmegaState</h4>
|
3519 |
|
|
<pre>public int xmegaState()
|
3520 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3521 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3522 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3523 |
|
|
<div class="block">Read ATxmega error and status information from the device.</div>
|
3524 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
|
3525 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3526 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3527 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3528 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATxmega controllers are not supported by the firmware.</dd></dl>
|
3529 |
|
|
</li>
|
3530 |
|
|
</ul>
|
3531 |
|
|
<a name="xmegaEnabled()">
|
3532 |
|
|
<!-- -->
|
3533 |
|
|
</a>
|
3534 |
|
|
<ul class="blockList">
|
3535 |
|
|
<li class="blockList">
|
3536 |
|
|
<h4>xmegaEnabled</h4>
|
3537 |
|
|
<pre>public boolean xmegaEnabled()
|
3538 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3539 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3540 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3541 |
|
|
<div class="block">Returns true if ATxmega controller is available.</div>
|
3542 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if ATxmega controller is available.</dd>
|
3543 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3544 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3545 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3546 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATxmega controllers are not supported by the firmware.</dd></dl>
|
3547 |
|
|
</li>
|
3548 |
|
|
</ul>
|
3549 |
|
|
<a name="xmegaFlashPages()">
|
3550 |
|
|
<!-- -->
|
3551 |
|
|
</a>
|
3552 |
|
|
<ul class="blockList">
|
3553 |
|
|
<li class="blockList">
|
3554 |
|
|
<h4>xmegaFlashPages</h4>
|
3555 |
|
|
<pre>public int xmegaFlashPages()
|
3556 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3557 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3558 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3559 |
|
|
<div class="block">Returns the number of the ATxmega Flash pages.</div>
|
3560 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of the ATxmega Flash pages.</dd>
|
3561 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3562 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3563 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3564 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATxmega controllers are not supported by the firmware.</dd></dl>
|
3565 |
|
|
</li>
|
3566 |
|
|
</ul>
|
3567 |
|
|
<a name="xmegaEepromPages()">
|
3568 |
|
|
<!-- -->
|
3569 |
|
|
</a>
|
3570 |
|
|
<ul class="blockList">
|
3571 |
|
|
<li class="blockList">
|
3572 |
|
|
<h4>xmegaEepromPages</h4>
|
3573 |
|
|
<pre>public int xmegaEepromPages()
|
3574 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3575 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3576 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3577 |
|
|
<div class="block">Returns the number of the ATxmega EEPROM pages.</div>
|
3578 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of the ATxmega EEPROM pages.</dd>
|
3579 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3580 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3581 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3582 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATxmega controllers are not supported by the firmware.</dd></dl>
|
3583 |
|
|
</li>
|
3584 |
|
|
</ul>
|
3585 |
|
|
<a name="xmegaFlashPageSize()">
|
3586 |
|
|
<!-- -->
|
3587 |
|
|
</a>
|
3588 |
|
|
<ul class="blockList">
|
3589 |
|
|
<li class="blockList">
|
3590 |
|
|
<h4>xmegaFlashPageSize</h4>
|
3591 |
|
|
<pre>public int xmegaFlashPageSize()
|
3592 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3593 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3594 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3595 |
|
|
<div class="block">Returns the size of the ATxmega Flash pages.</div>
|
3596 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The size of the ATxmega Flash pages.</dd>
|
3597 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3598 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3599 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3600 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATxmega controllers are not supported by the firmware.</dd></dl>
|
3601 |
|
|
</li>
|
3602 |
|
|
</ul>
|
3603 |
|
|
<a name="xmegaEepromPageSize()">
|
3604 |
|
|
<!-- -->
|
3605 |
|
|
</a>
|
3606 |
|
|
<ul class="blockList">
|
3607 |
|
|
<li class="blockList">
|
3608 |
|
|
<h4>xmegaEepromPageSize</h4>
|
3609 |
|
|
<pre>public int xmegaEepromPageSize()
|
3610 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3611 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3612 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3613 |
|
|
<div class="block">Returns the size of the ATXmega EEPROM pages.</div>
|
3614 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The size of the ATXmega EEPROM pages.</dd>
|
3615 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3616 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3617 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3618 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if ATXmega controllers are not supported by the firmware.</dd></dl>
|
3619 |
|
|
</li>
|
3620 |
|
|
</ul>
|
3621 |
|
|
<a name="xmegaReset()">
|
3622 |
|
|
<!-- -->
|
3623 |
|
|
</a>
|
3624 |
|
|
<ul class="blockList">
|
3625 |
|
|
<li class="blockList">
|
3626 |
|
|
<h4>xmegaReset</h4>
|
3627 |
|
|
<pre>public void xmegaReset()
|
3628 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3629 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3630 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3631 |
|
|
<div class="block">Resets the ATxmega.</div>
|
3632 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
3633 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3634 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3635 |
|
|
<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.</dd></dl>
|
3636 |
|
|
</li>
|
3637 |
|
|
</ul>
|
3638 |
|
|
<a name="xmegaNvmRead(int, byte[], int)">
|
3639 |
|
|
<!-- -->
|
3640 |
|
|
</a>
|
3641 |
|
|
<ul class="blockList">
|
3642 |
|
|
<li class="blockList">
|
3643 |
|
|
<h4>xmegaNvmRead</h4>
|
3644 |
|
|
<pre>public void xmegaNvmRead(int addr,
|
3645 |
|
|
byte[] buf,
|
3646 |
|
|
int length)
|
3647 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3648 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3649 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3650 |
|
|
<div class="block">Reads data from the NVM of ATxmega.</div>
|
3651 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address of the NVM (PDI address space).</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
3652 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3653 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3654 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3655 |
|
|
<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.</dd></dl>
|
3656 |
|
|
</li>
|
3657 |
|
|
</ul>
|
3658 |
|
|
<a name="xmegaFlashRead(int, byte[], int)">
|
3659 |
|
|
<!-- -->
|
3660 |
|
|
</a>
|
3661 |
|
|
<ul class="blockList">
|
3662 |
|
|
<li class="blockList">
|
3663 |
|
|
<h4>xmegaFlashRead</h4>
|
3664 |
|
|
<pre>public void xmegaFlashRead(int addr,
|
3665 |
|
|
byte[] buf,
|
3666 |
|
|
int length)
|
3667 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3668 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3669 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3670 |
|
|
<div class="block">Reads data from Flash memory of ATxmega.</div>
|
3671 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address relative to the Flash memory base.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
3672 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3673 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3674 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
|
3675 |
|
|
<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.</dd></dl>
|
3676 |
|
|
</li>
|
3677 |
|
|
</ul>
|
3678 |
|
|
<a name="xmegaEepromRead(int, byte[], int)">
|
3679 |
|
|
<!-- -->
|
3680 |
|
|
</a>
|
3681 |
|
|
<ul class="blockList">
|
3682 |
|
|
<li class="blockList">
|
3683 |
|
|
<h4>xmegaEepromRead</h4>
|
3684 |
|
|
<pre>public void xmegaEepromRead(int addr,
|
3685 |
|
|
byte[] buf,
|
3686 |
|
|
int length)
|
3687 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3688 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3689 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3690 |
|
|
<div class="block">Reads data from EEPROM memory of ATxmega.</div>
|
3691 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address relative to the EEPROM memory base.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
3692 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3693 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3694 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
|
3695 |
|
|
<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.</dd></dl>
|
3696 |
|
|
</li>
|
3697 |
|
|
</ul>
|
3698 |
|
|
<a name="xmegaFuseRead(int, byte[], int)">
|
3699 |
|
|
<!-- -->
|
3700 |
|
|
</a>
|
3701 |
|
|
<ul class="blockList">
|
3702 |
|
|
<li class="blockList">
|
3703 |
|
|
<h4>xmegaFuseRead</h4>
|
3704 |
|
|
<pre>public void xmegaFuseRead(int addr,
|
3705 |
|
|
byte[] buf,
|
3706 |
|
|
int length)
|
3707 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3708 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3709 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3710 |
|
|
<div class="block">Reads data from Fuse memory of ATxmega.</div>
|
3711 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address relative to the Fuse memory base.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
3712 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3713 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3714 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
|
3715 |
|
|
<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.</dd></dl>
|
3716 |
|
|
</li>
|
3717 |
|
|
</ul>
|
3718 |
|
|
<a name="xmegaFuseRead(int)">
|
3719 |
|
|
<!-- -->
|
3720 |
|
|
</a>
|
3721 |
|
|
<ul class="blockList">
|
3722 |
|
|
<li class="blockList">
|
3723 |
|
|
<h4>xmegaFuseRead</h4>
|
3724 |
|
|
<pre>public int xmegaFuseRead(int addr)
|
3725 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3726 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3727 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3728 |
|
|
<div class="block">Reads data one Fuse of ATxmega.</div>
|
3729 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The index of th Fuse.</dd>
|
3730 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>The Fuse read.</dd>
|
3731 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3732 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3733 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
|
3734 |
|
|
<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.</dd></dl>
|
3735 |
|
|
</li>
|
3736 |
|
|
</ul>
|
3737 |
|
|
<a name="xmegaFlashPageWrite(int, byte[])">
|
3738 |
|
|
<!-- -->
|
3739 |
|
|
</a>
|
3740 |
|
|
<ul class="blockList">
|
3741 |
|
|
<li class="blockList">
|
3742 |
|
|
<h4>xmegaFlashPageWrite</h4>
|
3743 |
|
|
<pre>public void xmegaFlashPageWrite(int addr,
|
3744 |
|
|
byte[] buf)
|
3745 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3746 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3747 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3748 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
3749 |
|
|
<div class="block">Writes data to Flash memory of ATxmega.</div>
|
3750 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address relative to the Flash memory base.</dd><dd><code>buf</code> - A buffer that stores the data.</dd>
|
3751 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3752 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3753 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3754 |
|
|
<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.</dd>
|
3755 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash page size.</dd></dl>
|
3756 |
|
|
</li>
|
3757 |
|
|
</ul>
|
3758 |
|
|
<a name="xmegaEepromPageWrite(int, byte[])">
|
3759 |
|
|
<!-- -->
|
3760 |
|
|
</a>
|
3761 |
|
|
<ul class="blockList">
|
3762 |
|
|
<li class="blockList">
|
3763 |
|
|
<h4>xmegaEepromPageWrite</h4>
|
3764 |
|
|
<pre>public void xmegaEepromPageWrite(int addr,
|
3765 |
|
|
byte[] buf)
|
3766 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3767 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3768 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3769 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
3770 |
|
|
<div class="block">Writes data to EEPROM memory of ATxmega.</div>
|
3771 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address relative to the EEPROM memory base.</dd><dd><code>buf</code> - A buffer that stores the data.</dd>
|
3772 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3773 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3774 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3775 |
|
|
<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.</dd>
|
3776 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the EEPROM page size.</dd></dl>
|
3777 |
|
|
</li>
|
3778 |
|
|
</ul>
|
3779 |
|
|
<a name="xmegaFuseWrite(int, int)">
|
3780 |
|
|
<!-- -->
|
3781 |
|
|
</a>
|
3782 |
|
|
<ul class="blockList">
|
3783 |
|
|
<li class="blockList">
|
3784 |
|
|
<h4>xmegaFuseWrite</h4>
|
3785 |
|
|
<pre>public void xmegaFuseWrite(int addr,
|
3786 |
|
|
int val)
|
3787 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3788 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3789 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3790 |
|
|
<div class="block">Writes one Fuse of the ATxmega.</div>
|
3791 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The index of th Fuse.</dd><dd><code>val</code> - The value of th Fuse.</dd>
|
3792 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3793 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3794 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3795 |
|
|
<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.</dd></dl>
|
3796 |
|
|
</li>
|
3797 |
|
|
</ul>
|
3798 |
|
|
<a name="xmegaWriteFirmware(ztex.ImgFile)">
|
3799 |
|
|
<!-- -->
|
3800 |
|
|
</a>
|
3801 |
|
|
<ul class="blockList">
|
3802 |
|
|
<li class="blockList">
|
3803 |
|
|
<h4>xmegaWriteFirmware</h4>
|
3804 |
|
|
<pre>public long xmegaWriteFirmware(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a> imgFile)
|
3805 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3806 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3807 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3808 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></pre>
|
3809 |
|
|
<div class="block">Uploads firmware to the flash memory</div>
|
3810 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFile</code> - The firmware / data image.</dd>
|
3811 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>the upload time in ms.</dd>
|
3812 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3813 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3814 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3815 |
|
|
<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.</dd>
|
3816 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if the verification fails.</dd></dl>
|
3817 |
|
|
</li>
|
3818 |
|
|
</ul>
|
3819 |
|
|
<a name="xmegaWriteEeprom(ztex.ImgFile)">
|
3820 |
|
|
<!-- -->
|
3821 |
|
|
</a>
|
3822 |
|
|
<ul class="blockList">
|
3823 |
|
|
<li class="blockList">
|
3824 |
|
|
<h4>xmegaWriteEeprom</h4>
|
3825 |
|
|
<pre>public long xmegaWriteEeprom(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a> imgFile)
|
3826 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3827 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3828 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3829 |
|
|
<a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></pre>
|
3830 |
|
|
<div class="block">Uploads data to the EEPROM memory</div>
|
3831 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFile</code> - The firmware / data image.</dd>
|
3832 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>the upload time in ms.</dd>
|
3833 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3834 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3835 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3836 |
|
|
<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.</dd>
|
3837 |
|
|
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if the verification fails.</dd></dl>
|
3838 |
|
|
</li>
|
3839 |
|
|
</ul>
|
3840 |
|
|
<a name="toString()">
|
3841 |
|
|
<!-- -->
|
3842 |
|
|
</a>
|
3843 |
|
|
<ul class="blockList">
|
3844 |
|
|
<li class="blockList">
|
3845 |
|
|
<h4>toString</h4>
|
3846 |
|
|
<pre>public java.lang.String toString()</pre>
|
3847 |
|
|
<div class="block">Returns a lot of useful information about the corresponding device.</div>
|
3848 |
|
|
<dl>
|
3849 |
|
|
<dt><strong>Overrides:</strong></dt>
|
3850 |
|
|
<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></dd>
|
3851 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>a lot of useful information about the corresponding device.</dd></dl>
|
3852 |
|
|
</li>
|
3853 |
|
|
</ul>
|
3854 |
|
|
<a name="capabilityInfo(java.lang.String)">
|
3855 |
|
|
<!-- -->
|
3856 |
|
|
</a>
|
3857 |
|
|
<ul class="blockList">
|
3858 |
|
|
<li class="blockList">
|
3859 |
|
|
<h4>capabilityInfo</h4>
|
3860 |
|
|
<pre>public java.lang.String capabilityInfo(java.lang.String pf)</pre>
|
3861 |
|
|
<div class="block">Creates a String with capability information.</div>
|
3862 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pf</code> - A separator between the single capabilities, e.g. ", "</dd>
|
3863 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>a string of the supported capabilities.</dd></dl>
|
3864 |
|
|
</li>
|
3865 |
|
|
</ul>
|
3866 |
|
|
<a name="configureFpgaHS(java.io.InputStream, boolean, int)">
|
3867 |
|
|
<!-- -->
|
3868 |
|
|
</a>
|
3869 |
|
|
<ul class="blockList">
|
3870 |
|
|
<li class="blockList">
|
3871 |
|
|
<h4>configureFpgaHS</h4>
|
3872 |
|
|
<pre>public long configureFpgaHS(java.io.InputStream inputStream,
|
3873 |
|
|
boolean force,
|
3874 |
|
|
int bs)
|
3875 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3876 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3877 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
3878 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
3879 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3880 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3881 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
|
3882 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inputStream</code> - for reading the Bitstream.</dd><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3883 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3884 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3885 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
3886 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
3887 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
3888 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3889 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3890 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
3891 |
|
|
</li>
|
3892 |
|
|
</ul>
|
3893 |
|
|
<a name="configureFpgaHS(java.lang.String, boolean, int)">
|
3894 |
|
|
<!-- -->
|
3895 |
|
|
</a>
|
3896 |
|
|
<ul class="blockList">
|
3897 |
|
|
<li class="blockList">
|
3898 |
|
|
<h4>configureFpgaHS</h4>
|
3899 |
|
|
<pre>public long configureFpgaHS(java.lang.String fwFileName,
|
3900 |
|
|
boolean force,
|
3901 |
|
|
int bs)
|
3902 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3903 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3904 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
3905 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
3906 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3907 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3908 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
|
3909 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3910 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3911 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3912 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
3913 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
3914 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
3915 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3916 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3917 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
3918 |
|
|
</li>
|
3919 |
|
|
</ul>
|
3920 |
|
|
<a name="configureFpga(java.io.InputStream, boolean, int)">
|
3921 |
|
|
<!-- -->
|
3922 |
|
|
</a>
|
3923 |
|
|
<ul class="blockList">
|
3924 |
|
|
<li class="blockList">
|
3925 |
|
|
<h4>configureFpga</h4>
|
3926 |
|
|
<pre>public long configureFpga(java.io.InputStream inputStream,
|
3927 |
|
|
boolean force,
|
3928 |
|
|
int bs)
|
3929 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3930 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3931 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
3932 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
3933 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3934 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
3935 |
|
|
java.io.IOException</pre>
|
3936 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
3937 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inputStream</code> - for reading the Bitstream.</dd><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3938 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3939 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3940 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
3941 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
3942 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
3943 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3944 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3945 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd>
|
3946 |
|
|
<dd><code>java.io.IOException</code> - if mark/reset is not supported</dd></dl>
|
3947 |
|
|
</li>
|
3948 |
|
|
</ul>
|
3949 |
|
|
<a name="configureFpga(java.lang.String, boolean, int)">
|
3950 |
|
|
<!-- -->
|
3951 |
|
|
</a>
|
3952 |
|
|
<ul class="blockList">
|
3953 |
|
|
<li class="blockList">
|
3954 |
|
|
<h4>configureFpga</h4>
|
3955 |
|
|
<pre>public long configureFpga(java.lang.String fwFileName,
|
3956 |
|
|
boolean force,
|
3957 |
|
|
int bs)
|
3958 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3959 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3960 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
3961 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
3962 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3963 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3964 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
3965 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><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><dd><code>bs</code> - 0: disable bit swapping, 1: enable bit swapping, all other values: automatic detection of bit order.</dd>
|
3966 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3967 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3968 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
3969 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
3970 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
3971 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3972 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3973 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
3974 |
|
|
</li>
|
3975 |
|
|
</ul>
|
3976 |
|
|
<a name="configureFpga(java.lang.String, boolean)">
|
3977 |
|
|
<!-- -->
|
3978 |
|
|
</a>
|
3979 |
|
|
<ul class="blockList">
|
3980 |
|
|
<li class="blockList">
|
3981 |
|
|
<h4>configureFpga</h4>
|
3982 |
|
|
<pre>public long configureFpga(java.lang.String fwFileName,
|
3983 |
|
|
boolean force)
|
3984 |
|
|
throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
|
3985 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
3986 |
|
|
<a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
|
3987 |
|
|
<a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
|
3988 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
3989 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
3990 |
|
|
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
|
3991 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><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><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>
|
3992 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
|
3993 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
3994 |
|
|
<dd><code><a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a></code> - if an error occurred while attempting to read the Bitstream.</dd>
|
3995 |
|
|
<dd><code><a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a></code> - if an error occurred while attempting to upload the Bitstream.</dd>
|
3996 |
|
|
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
|
3997 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
3998 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
3999 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd></dl>
|
4000 |
|
|
</li>
|
4001 |
|
|
</ul>
|
4002 |
|
|
<a name="macEepromWrite(int, byte[], int)">
|
4003 |
|
|
<!-- -->
|
4004 |
|
|
</a>
|
4005 |
|
|
<ul class="blockList">
|
4006 |
|
|
<li class="blockList">
|
4007 |
|
|
<h4>macEepromWrite</h4>
|
4008 |
|
|
<pre>public void macEepromWrite(int addr,
|
4009 |
|
|
byte[] buf,
|
4010 |
|
|
int length)
|
4011 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4012 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4013 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4014 |
|
|
<div class="block">Writes data to the MAC EEPROM.</div>
|
4015 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The destination address of the MAC EEPROM.</dd><dd><code>buf</code> - The data.</dd><dd><code>length</code> - The amount of bytes to be sent.</dd>
|
4016 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4017 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4018 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4019 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if MAC EEPROM access is not supported by the firmware or if configuration data is present and there is a write to addresses 0 to 79. In order to override this behavior set <a href="../ztex/Ztex1v1.html#config"><code>config</code></a> variable to null.</dd></dl>
|
4020 |
|
|
</li>
|
4021 |
|
|
</ul>
|
4022 |
|
|
<a name="macEepromRead(int, byte[], int)">
|
4023 |
|
|
<!-- -->
|
4024 |
|
|
</a>
|
4025 |
|
|
<ul class="blockList">
|
4026 |
|
|
<li class="blockList">
|
4027 |
|
|
<h4>macEepromRead</h4>
|
4028 |
|
|
<pre>public void macEepromRead(int addr,
|
4029 |
|
|
byte[] buf,
|
4030 |
|
|
int length)
|
4031 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4032 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4033 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4034 |
|
|
<div class="block">Reads data from the MAC EEPROM.</div>
|
4035 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The source address of the MAC EEPROM.</dd><dd><code>buf</code> - A buffer for the storage of the data.</dd><dd><code>length</code> - The amount of bytes to be read.</dd>
|
4036 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4037 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4038 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4039 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if MAC EEPROM access is not supported by the firmware.</dd></dl>
|
4040 |
|
|
</li>
|
4041 |
|
|
</ul>
|
4042 |
|
|
<a name="macEepromState()">
|
4043 |
|
|
<!-- -->
|
4044 |
|
|
</a>
|
4045 |
|
|
<ul class="blockList">
|
4046 |
|
|
<li class="blockList">
|
4047 |
|
|
<h4>macEepromState</h4>
|
4048 |
|
|
<pre>public boolean macEepromState()
|
4049 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4050 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4051 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4052 |
|
|
<div class="block">Reads the current MAC EEPROM status.</div>
|
4053 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if MAC EEPROM is ready.</dd>
|
4054 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4055 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4056 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4057 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if MAC EEPROM access is not supported by the firmware.</dd></dl>
|
4058 |
|
|
</li>
|
4059 |
|
|
</ul>
|
4060 |
|
|
<a name="macRead(byte[])">
|
4061 |
|
|
<!-- -->
|
4062 |
|
|
</a>
|
4063 |
|
|
<ul class="blockList">
|
4064 |
|
|
<li class="blockList">
|
4065 |
|
|
<h4>macRead</h4>
|
4066 |
|
|
<pre>public void macRead(byte[] buf)
|
4067 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4068 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4069 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4070 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4071 |
|
|
<div class="block">Reads MAC address from MAC EEPROM.</div>
|
4072 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>buf</code> - A buffer with a minimum size of 6 bytes.</dd>
|
4073 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4074 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4075 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4076 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if MAC EEPROM access is not supported by the firmware.</dd>
|
4077 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than 6 bytes.</dd></dl>
|
4078 |
|
|
</li>
|
4079 |
|
|
</ul>
|
4080 |
|
|
<a name="numberOfFpgas()">
|
4081 |
|
|
<!-- -->
|
4082 |
|
|
</a>
|
4083 |
|
|
<ul class="blockList">
|
4084 |
|
|
<li class="blockList">
|
4085 |
|
|
<h4>numberOfFpgas</h4>
|
4086 |
|
|
<pre>public int numberOfFpgas()
|
4087 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4088 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
|
4089 |
|
|
<div class="block">Returns the number of FPGA's</div>
|
4090 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>number of FPGA's</dd>
|
4091 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4092 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4093 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4094 |
|
|
</li>
|
4095 |
|
|
</ul>
|
4096 |
|
|
<a name="selectFpga(int)">
|
4097 |
|
|
<!-- -->
|
4098 |
|
|
</a>
|
4099 |
|
|
<ul class="blockList">
|
4100 |
|
|
<li class="blockList">
|
4101 |
|
|
<h4>selectFpga</h4>
|
4102 |
|
|
<pre>public void selectFpga(int num)
|
4103 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4104 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4105 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4106 |
|
|
<div class="block">Select a FPGA</div>
|
4107 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>num</code> - FPGA to select. Valid values are 0 to <a href="../ztex/Ztex1v1.html#numberOfFpgas()"><code>numberOfFpgas()</code></a>-1</dd>
|
4108 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4109 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4110 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4111 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If FPGA number is not in range.</dd></dl>
|
4112 |
|
|
</li>
|
4113 |
|
|
</ul>
|
4114 |
|
|
<a name="tempSensorRead(int)">
|
4115 |
|
|
<!-- -->
|
4116 |
|
|
</a>
|
4117 |
|
|
<ul class="blockList">
|
4118 |
|
|
<li class="blockList">
|
4119 |
|
|
<h4>tempSensorRead</h4>
|
4120 |
|
|
<pre>public double tempSensorRead(int idx)
|
4121 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4122 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4123 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4124 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4125 |
|
|
<div class="block">Read temperature sensor data.</div>
|
4126 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>idx</code> - Temperature sensor index</dd>
|
4127 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>Temperature in deg. C</dd>
|
4128 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4129 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - If interface 1 or temperature sensor protocol is not supported.</dd>
|
4130 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
|
4131 |
|
|
<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.</dd>
|
4132 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If idx is not in range.</dd></dl>
|
4133 |
|
|
</li>
|
4134 |
|
|
</ul>
|
4135 |
|
|
<a name="printSpiState()">
|
4136 |
|
|
<!-- -->
|
4137 |
|
|
</a>
|
4138 |
|
|
<ul class="blockList">
|
4139 |
|
|
<li class="blockList">
|
4140 |
|
|
<h4>printSpiState</h4>
|
4141 |
|
|
<pre>public boolean printSpiState()
|
4142 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4143 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4144 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4145 |
|
|
<div class="block">Prints out some debug information about SPI Flash.<br>
|
4146 |
|
|
<b>Only use this method if such kind of Flash is installed.</b></div>
|
4147 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>true if flash is enabled</dd>
|
4148 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4149 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4150 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4151 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not supported by the firmware.</dd></dl>
|
4152 |
|
|
</li>
|
4153 |
|
|
</ul>
|
4154 |
|
|
<a name="debug2GetMessage(int)">
|
4155 |
|
|
<!-- -->
|
4156 |
|
|
</a>
|
4157 |
|
|
<ul class="blockList">
|
4158 |
|
|
<li class="blockList">
|
4159 |
|
|
<h4>debug2GetMessage</h4>
|
4160 |
|
|
<pre>public byte[] debug2GetMessage(int idx)
|
4161 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4162 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4163 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4164 |
|
|
<div class="block">Reads a debug message with given Index in raw format.
|
4165 |
|
|
Valid indixes are <a href="../ztex/Ztex1v1.html#debug2LastIdx()"><code>debug2LastIdx()</code></a>-<a href="../ztex/Ztex1v1.html#debug2Cnt()"><code>debug2Cnt()</code></a> to <a href="../ztex/Ztex1v1.html#debug2LastIdx()"><code>debug2LastIdx()</code></a>-1.
|
4166 |
|
|
Data format is:
|
4167 |
|
|
<table bgcolor="#404040" cellspacing=1 cellpadding=4>
|
4168 |
|
|
<tr>
|
4169 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
|
4170 |
|
|
<td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
|
4171 |
|
|
</tr>
|
4172 |
|
|
<tr>
|
4173 |
|
|
<td bgcolor="#ffffff" valign="top">0</td>
|
4174 |
|
|
<td bgcolor="#ffffff" valign="top">Type</td>
|
4175 |
|
|
</tr>
|
4176 |
|
|
<tr>
|
4177 |
|
|
<td bgcolor="#ffffff" valign="top">1..length</td>
|
4178 |
|
|
<td bgcolor="#ffffff" valign="top">Message</td>
|
4179 |
|
|
</tr>
|
4180 |
|
|
</table></div>
|
4181 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>idx</code> - Index of message.</dd>
|
4182 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>A buffer with the raw message. (Length of the message is result.length-1)</dd>
|
4183 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4184 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4185 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
|
4186 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4187 |
|
|
</li>
|
4188 |
|
|
</ul>
|
4189 |
|
|
<a name="debug2LastIdx()">
|
4190 |
|
|
<!-- -->
|
4191 |
|
|
</a>
|
4192 |
|
|
<ul class="blockList">
|
4193 |
|
|
<li class="blockList">
|
4194 |
|
|
<h4>debug2LastIdx</h4>
|
4195 |
|
|
<pre>public int debug2LastIdx()
|
4196 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4197 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4198 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4199 |
|
|
<div class="block">Returns index of last message + 1</div>
|
4200 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>index of last message + 1</dd>
|
4201 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4202 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4203 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
|
4204 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4205 |
|
|
</li>
|
4206 |
|
|
</ul>
|
4207 |
|
|
<a name="debug2EC()">
|
4208 |
|
|
<!-- -->
|
4209 |
|
|
</a>
|
4210 |
|
|
<ul class="blockList">
|
4211 |
|
|
<li class="blockList">
|
4212 |
|
|
<h4>debug2EC</h4>
|
4213 |
|
|
<pre>public int debug2EC()
|
4214 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4215 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4216 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4217 |
|
|
<div class="block">Returns an error code if a fatal error occurred (0 if no error occurred)</div>
|
4218 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>error code.</dd>
|
4219 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4220 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4221 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
|
4222 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4223 |
|
|
</li>
|
4224 |
|
|
</ul>
|
4225 |
|
|
<a name="debug2Cnt()">
|
4226 |
|
|
<!-- -->
|
4227 |
|
|
</a>
|
4228 |
|
|
<ul class="blockList">
|
4229 |
|
|
<li class="blockList">
|
4230 |
|
|
<h4>debug2Cnt</h4>
|
4231 |
|
|
<pre>public int debug2Cnt()
|
4232 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4233 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4234 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4235 |
|
|
<div class="block">Returns the number of messages in buffer.</div>
|
4236 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>Returns the number of buffered messages.</dd>
|
4237 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4238 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4239 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
|
4240 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4241 |
|
|
</li>
|
4242 |
|
|
</ul>
|
4243 |
|
|
<a name="debug2GetNextLogMessage()">
|
4244 |
|
|
<!-- -->
|
4245 |
|
|
</a>
|
4246 |
|
|
<ul class="blockList">
|
4247 |
|
|
<li class="blockList">
|
4248 |
|
|
<h4>debug2GetNextLogMessage</h4>
|
4249 |
|
|
<pre>public java.lang.String debug2GetNextLogMessage()
|
4250 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4251 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4252 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4253 |
|
|
<div class="block">Reads the next log message in string format.
|
4254 |
|
|
The message index is <a href="../ztex/Ztex1v1.html#debug2LogIdx"><code>debug2LogIdx</code></a> which is incremented by this function.
|
4255 |
|
|
null is returned if no log message is available.</div>
|
4256 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>The log message.</dd>
|
4257 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4258 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4259 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
|
4260 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4261 |
|
|
</li>
|
4262 |
|
|
</ul>
|
4263 |
|
|
<a name="debug2PrintNextLogMessages(java.io.PrintStream)">
|
4264 |
|
|
<!-- -->
|
4265 |
|
|
</a>
|
4266 |
|
|
<ul class="blockList">
|
4267 |
|
|
<li class="blockList">
|
4268 |
|
|
<h4>debug2PrintNextLogMessages</h4>
|
4269 |
|
|
<pre>public void debug2PrintNextLogMessages(java.io.PrintStream out)
|
4270 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4271 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
|
4272 |
|
|
<div class="block">Prints new log message. Index if the first message is <a href="../ztex/Ztex1v1.html#debug2LogIdx"><code>debug2LogIdx</code></a> which is incremented by this function.
|
4273 |
|
|
Returns quietly if debug2 functionality is not supported.</div>
|
4274 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - destination for printing the messages.</dd>
|
4275 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4276 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4277 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
|
4278 |
|
|
</li>
|
4279 |
|
|
</ul>
|
4280 |
|
|
<a name="getUsb3Errors()">
|
4281 |
|
|
<!-- -->
|
4282 |
|
|
</a>
|
4283 |
|
|
<ul class="blockList">
|
4284 |
|
|
<li class="blockList">
|
4285 |
|
|
<h4>getUsb3Errors</h4>
|
4286 |
|
|
<pre>public void getUsb3Errors()
|
4287 |
|
|
throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4288 |
|
|
<a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4289 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4290 |
|
|
<div class="block">Reads USB 3.0 errors and stores them in <a href="../ztex/Ztex1v1.html#usb3SndErrors"><code>usb3SndErrors</code></a> <a href="../ztex/Ztex1v1.html#usb3RcvErrors"><code>usb3RcvErrors</code></a>.</div>
|
4291 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
4292 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported or invalid result is returned.</dd>
|
4293 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
|
4294 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd></dl>
|
4295 |
|
|
</li>
|
4296 |
|
|
</ul>
|
4297 |
|
|
<a name="defaultVersion()">
|
4298 |
|
|
<!-- -->
|
4299 |
|
|
</a>
|
4300 |
|
|
<ul class="blockList">
|
4301 |
|
|
<li class="blockList">
|
4302 |
|
|
<h4>defaultVersion</h4>
|
4303 |
|
|
<pre>public int defaultVersion()
|
4304 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4305 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
|
4306 |
|
|
<div class="block">Returns version of the default interface or 0 if default interface is not present.</div>
|
4307 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>version of the default interface</dd>
|
4308 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4309 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4310 |
|
|
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
|
4311 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4312 |
|
|
</li>
|
4313 |
|
|
</ul>
|
4314 |
|
|
<a name="defaultCheckVersion(int)">
|
4315 |
|
|
<!-- -->
|
4316 |
|
|
</a>
|
4317 |
|
|
<ul class="blockList">
|
4318 |
|
|
<li class="blockList">
|
4319 |
|
|
<h4>defaultCheckVersion</h4>
|
4320 |
|
|
<pre>public void defaultCheckVersion(int version)
|
4321 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4322 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4323 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4324 |
|
|
<div class="block">Checks version of the default interface.
|
4325 |
|
|
If version number is less than required an exception it thrown.
|
4326 |
|
|
If the firmware is not up-to-date a warning is issued.</div>
|
4327 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>version</code> - The minimum required version. Minimum valid version is 1.</dd>
|
4328 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4329 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4330 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4331 |
|
|
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
|
4332 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4333 |
|
|
</li>
|
4334 |
|
|
</ul>
|
4335 |
|
|
<a name="defaultOutEP()">
|
4336 |
|
|
<!-- -->
|
4337 |
|
|
</a>
|
4338 |
|
|
<ul class="blockList">
|
4339 |
|
|
<li class="blockList">
|
4340 |
|
|
<h4>defaultOutEP</h4>
|
4341 |
|
|
<pre>public int defaultOutEP()
|
4342 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4343 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4344 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4345 |
|
|
<div class="block">Returns output Endpoint of default interface
|
4346 |
|
|
used for high speed communication. The direction is seen from the host.</div>
|
4347 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>output Endpoint for high speed communication of the default interface</dd>
|
4348 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4349 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4350 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4351 |
|
|
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
|
4352 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4353 |
|
|
</li>
|
4354 |
|
|
</ul>
|
4355 |
|
|
<a name="defaultInEP()">
|
4356 |
|
|
<!-- -->
|
4357 |
|
|
</a>
|
4358 |
|
|
<ul class="blockList">
|
4359 |
|
|
<li class="blockList">
|
4360 |
|
|
<h4>defaultInEP</h4>
|
4361 |
|
|
<pre>public int defaultInEP()
|
4362 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4363 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4364 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4365 |
|
|
<div class="block">Returns input Endpoint of default interface
|
4366 |
|
|
used for high speed communication. The direction is seen from the host. The result is or'ed with 128.</div>
|
4367 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>input Endpoint for high speed communication of the default interface</dd>
|
4368 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4369 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4370 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4371 |
|
|
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
|
4372 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4373 |
|
|
</li>
|
4374 |
|
|
</ul>
|
4375 |
|
|
<a name="defaultSubVersion()">
|
4376 |
|
|
<!-- -->
|
4377 |
|
|
</a>
|
4378 |
|
|
<ul class="blockList">
|
4379 |
|
|
<li class="blockList">
|
4380 |
|
|
<h4>defaultSubVersion</h4>
|
4381 |
|
|
<pre>public int defaultSubVersion()
|
4382 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4383 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4384 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4385 |
|
|
<div class="block">Returns sub-version of the default interface.</div>
|
4386 |
|
|
<dl><dt><span class="strong">Returns:</span></dt><dd>sub-version of the default interface</dd>
|
4387 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4388 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4389 |
|
|
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
|
4390 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd>
|
4391 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
|
4392 |
|
|
</li>
|
4393 |
|
|
</ul>
|
4394 |
|
|
<a name="defaultReset(boolean)">
|
4395 |
|
|
<!-- -->
|
4396 |
|
|
</a>
|
4397 |
|
|
<ul class="blockList">
|
4398 |
|
|
<li class="blockList">
|
4399 |
|
|
<h4>defaultReset</h4>
|
4400 |
|
|
<pre>public void defaultReset(boolean leave)
|
4401 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4402 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4403 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4404 |
|
|
<div class="block">Assert the reset signal.</div>
|
4405 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>leave</code> - if true, the signal is left active. Otherwise only a short impulse is sent.</dd>
|
4406 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4407 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4408 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4409 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4410 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4411 |
|
|
</li>
|
4412 |
|
|
</ul>
|
4413 |
|
|
<a name="defaultReset()">
|
4414 |
|
|
<!-- -->
|
4415 |
|
|
</a>
|
4416 |
|
|
<ul class="blockList">
|
4417 |
|
|
<li class="blockList">
|
4418 |
|
|
<h4>defaultReset</h4>
|
4419 |
|
|
<pre>public void defaultReset()
|
4420 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4421 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4422 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4423 |
|
|
<div class="block">Assert the reset signal.
|
4424 |
|
|
Equvalent to defaultReset(false), see <a href="../ztex/Ztex1v1.html#defaultReset(boolean)"><code>defaultReset(boolean)</code></a></div>
|
4425 |
|
|
<dl><dt><span class="strong">Throws:</span></dt>
|
4426 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4427 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4428 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4429 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4430 |
|
|
</li>
|
4431 |
|
|
</ul>
|
4432 |
|
|
<a name="defaultGpioCtl(int, int)">
|
4433 |
|
|
<!-- -->
|
4434 |
|
|
</a>
|
4435 |
|
|
<ul class="blockList">
|
4436 |
|
|
<li class="blockList">
|
4437 |
|
|
<h4>defaultGpioCtl</h4>
|
4438 |
|
|
<pre>public int defaultGpioCtl(int mask,
|
4439 |
|
|
int value)
|
4440 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4441 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4442 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
|
4443 |
|
|
<div class="block">Reads and modifies the 4 GPIO pins.</div>
|
4444 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mask</code> - Bitmask for the pins which are modified. 1 means a bit is set. Only the lowest 4 bits are significant.</dd><dd><code>value</code> - The bit values which are to be set. Only the lowest 4 bits are significant.</dd>
|
4445 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>current values of the GPIO's</dd>
|
4446 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4447 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4448 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4449 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4450 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4451 |
|
|
</li>
|
4452 |
|
|
</ul>
|
4453 |
|
|
<a name="defaultLsiSet(int, int)">
|
4454 |
|
|
<!-- -->
|
4455 |
|
|
</a>
|
4456 |
|
|
<ul class="blockList">
|
4457 |
|
|
<li class="blockList">
|
4458 |
|
|
<h4>defaultLsiSet</h4>
|
4459 |
|
|
<pre>public void defaultLsiSet(int addr,
|
4460 |
|
|
int val)
|
4461 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4462 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4463 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4464 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4465 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.
|
4466 |
|
|
It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
|
4467 |
|
|
This function sets one register.</div>
|
4468 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The address. Valid values are 0 to 255.</dd><dd><code>val</code> - The register data with a width of 32 Bit.</dd>
|
4469 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4470 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4471 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4472 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4473 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range.</dd>
|
4474 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4475 |
|
|
</li>
|
4476 |
|
|
</ul>
|
4477 |
|
|
<a name="defaultLsiSet(int, int[], int)">
|
4478 |
|
|
<!-- -->
|
4479 |
|
|
</a>
|
4480 |
|
|
<ul class="blockList">
|
4481 |
|
|
<li class="blockList">
|
4482 |
|
|
<h4>defaultLsiSet</h4>
|
4483 |
|
|
<pre>public void defaultLsiSet(int addr,
|
4484 |
|
|
int[] val,
|
4485 |
|
|
int length)
|
4486 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4487 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4488 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4489 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4490 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.
|
4491 |
|
|
It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
|
4492 |
|
|
This function sets a sequential set of registers.</div>
|
4493 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The starting address address. Valid values are 0 to 255. Address is wrapped from 255 to 0.</dd><dd><code>val</code> - The register data array with a word width of 32 Bit.</dd><dd><code>length</code> - The length of the data array.</dd>
|
4494 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4495 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4496 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4497 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4498 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
|
4499 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4500 |
|
|
</li>
|
4501 |
|
|
</ul>
|
4502 |
|
|
<a name="defaultLsiSet(int[], int[], int)">
|
4503 |
|
|
<!-- -->
|
4504 |
|
|
</a>
|
4505 |
|
|
<ul class="blockList">
|
4506 |
|
|
<li class="blockList">
|
4507 |
|
|
<h4>defaultLsiSet</h4>
|
4508 |
|
|
<pre>public void defaultLsiSet(int[] addr,
|
4509 |
|
|
int[] val,
|
4510 |
|
|
int length)
|
4511 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4512 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4513 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4514 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4515 |
|
|
<div class="block">Send data to the low speed interface of default firmwares.
|
4516 |
|
|
It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
|
4517 |
|
|
This function sets a random set of registers.</div>
|
4518 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The register addresses. Valid values are 0 to 255.</dd><dd><code>val</code> - The register data array with a word width of 32 Bit.</dd><dd><code>length</code> - The length of the data array.</dd>
|
4519 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4520 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4521 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4522 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4523 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
|
4524 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4525 |
|
|
</li>
|
4526 |
|
|
</ul>
|
4527 |
|
|
<a name="defaultLsiGet(int)">
|
4528 |
|
|
<!-- -->
|
4529 |
|
|
</a>
|
4530 |
|
|
<ul class="blockList">
|
4531 |
|
|
<li class="blockList">
|
4532 |
|
|
<h4>defaultLsiGet</h4>
|
4533 |
|
|
<pre>public int defaultLsiGet(int addr)
|
4534 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4535 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4536 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4537 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4538 |
|
|
<div class="block">Read data from the low speed interface of default firmwares.
|
4539 |
|
|
It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
|
4540 |
|
|
This function reads one register.</div>
|
4541 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The address. Valid values are 0 to 255.</dd>
|
4542 |
|
|
<dt><span class="strong">Returns:</span></dt><dd>The register value with a width of 32 Bit.</dd>
|
4543 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4544 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4545 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4546 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4547 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range.</dd>
|
4548 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4549 |
|
|
</li>
|
4550 |
|
|
</ul>
|
4551 |
|
|
<a name="defaultLsiGet(int, int[], int)">
|
4552 |
|
|
<!-- -->
|
4553 |
|
|
</a>
|
4554 |
|
|
<ul class="blockListLast">
|
4555 |
|
|
<li class="blockList">
|
4556 |
|
|
<h4>defaultLsiGet</h4>
|
4557 |
|
|
<pre>public void defaultLsiGet(int addr,
|
4558 |
|
|
int[] val,
|
4559 |
|
|
int length)
|
4560 |
|
|
throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
|
4561 |
|
|
<a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
|
4562 |
|
|
<a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
|
4563 |
|
|
java.lang.IndexOutOfBoundsException</pre>
|
4564 |
|
|
<div class="block">Read data from the low speed interface of default firmwares.
|
4565 |
|
|
It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
|
4566 |
|
|
This function reads a sequencial set of registers.</div>
|
4567 |
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The start address. Valid values are 0 to 255. Address is wrapped from 255 to 0.</dd><dd><code>val</code> - The array where to store the register data with a word width of 32 Bit.</dd><dd><code>length</code> - The amount of register to be read.</dd>
|
4568 |
|
|
<dt><span class="strong">Throws:</span></dt>
|
4569 |
|
|
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
|
4570 |
|
|
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if default interface if not present or version number is lower than required</dd>
|
4571 |
|
|
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
|
4572 |
|
|
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
|
4573 |
|
|
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
|
4574 |
|
|
</li>
|
4575 |
|
|
</ul>
|
4576 |
|
|
</li>
|
4577 |
|
|
</ul>
|
4578 |
|
|
</li>
|
4579 |
|
|
</ul>
|
4580 |
|
|
</div>
|
4581 |
|
|
</div>
|
4582 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
4583 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
4584 |
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
4585 |
|
|
<!-- -->
|
4586 |
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
4587 |
|
|
<!-- -->
|
4588 |
|
|
</a>
|
4589 |
|
|
<ul class="navList" title="Navigation">
|
4590 |
|
|
<li><a href="../ztex/package-summary.html">Package</a></li>
|
4591 |
|
|
<li class="navBarCell1Rev">Class</li>
|
4592 |
|
|
<li><a href="package-tree.html">Tree</a></li>
|
4593 |
|
|
<li><a href="../deprecated-list.html">Deprecated</a></li>
|
4594 |
|
|
<li><a href="../index-all.html">Index</a></li>
|
4595 |
|
|
<li><a href="../help-doc.html">Help</a></li>
|
4596 |
|
|
</ul>
|
4597 |
|
|
</div>
|
4598 |
|
|
<div class="subNav">
|
4599 |
|
|
<ul class="navList">
|
4600 |
|
|
<li><a href="../ztex/Ztex1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
|
4601 |
|
|
<li><a href="../ztex/ZtexContext.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
|
4602 |
|
|
</ul>
|
4603 |
|
|
<ul class="navList">
|
4604 |
|
|
<li><a href="../index.html?ztex/Ztex1v1.html" target="_top">Frames</a></li>
|
4605 |
|
|
<li><a href="Ztex1v1.html" target="_top">No Frames</a></li>
|
4606 |
|
|
</ul>
|
4607 |
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
4608 |
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
4609 |
|
|
</ul>
|
4610 |
|
|
<div>
|
4611 |
|
|
<script type="text/javascript"><!--
|
4612 |
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
4613 |
|
|
if(window==top) {
|
4614 |
|
|
allClassesLink.style.display = "block";
|
4615 |
|
|
}
|
4616 |
|
|
else {
|
4617 |
|
|
allClassesLink.style.display = "none";
|
4618 |
|
|
}
|
4619 |
|
|
//-->
|
4620 |
|
|
</script>
|
4621 |
|
|
</div>
|
4622 |
|
|
<div>
|
4623 |
|
|
<ul class="subNavList">
|
4624 |
|
|
<li>Summary: </li>
|
4625 |
|
|
<li>Nested | </li>
|
4626 |
|
|
<li><a href="#field_summary">Field</a> | </li>
|
4627 |
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
4628 |
|
|
<li><a href="#method_summary">Method</a></li>
|
4629 |
|
|
</ul>
|
4630 |
|
|
<ul class="subNavList">
|
4631 |
|
|
<li>Detail: </li>
|
4632 |
|
|
<li><a href="#field_detail">Field</a> | </li>
|
4633 |
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
4634 |
|
|
<li><a href="#method_detail">Method</a></li>
|
4635 |
|
|
</ul>
|
4636 |
|
|
</div>
|
4637 |
|
|
<a name="skip-navbar_bottom">
|
4638 |
|
|
<!-- -->
|
4639 |
|
|
</a></div>
|
4640 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
4641 |
|
|
</body>
|
4642 |
|
|
</html>
|