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

Subversion Repositories usb_fpga_2_14

[/] [usb_fpga_2_14/] [trunk/] [docs/] [java/] [ztex/] [Ztex1v1.html] - Rev 2

Compare with Previous | Blame | View Log

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Wed Mar 22 19:20:13 CET 2017 -->
<title>Ztex1v1</title>
<meta name="date" content="2017-03-22">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Ztex1v1";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../ztex/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../ztex/Ztex1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
<li><a href="../ztex/ZtexContext.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?ztex/Ztex1v1.html" target="_top">Frames</a></li>
<li><a href="Ztex1v1.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">ztex</div>
<h2 title="Class Ztex1v1" class="title">Class Ztex1v1</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../ztex/Ztex1.html" title="class in ztex">ztex.Ztex1</a></li>
<li>
<ul class="inheritance">
<li>ztex.Ztex1v1</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">Ztex1v1</span>
extends <a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></pre>
<div class="block">This class implements the communication protocol of the interface version 1 for the interaction with the ZTEX firmware.
 <p>
 The features supported by this interface can be accessed via vendor commands and vendor requests via Endpoint 0.
 Each feature can be enabled or disabled by the firmware and also depends from the hardware.
 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>.
 The following table gives an overview about the features
 <table bgcolor="#404040" cellspacing=1 cellpadding=10>
   <tr>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Capability bit</b></td>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.0</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
          EEPROM support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x38</td>
           <td bgcolor="#ffffff" valign="top">Read from EEPROM</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x39</td>
           <td bgcolor="#ffffff" valign="top">Write to EEPROM</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x3a</td>
           <td bgcolor="#ffffff" valign="top">Get EEPROM state. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0-1</td>
                 <td bgcolor="#ffffff" valign="top">Number of bytes written.</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">2</td>
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">3</td>
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
        </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.1</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       FPGA Configuration<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x30</td>
           <td bgcolor="#ffffff" valign="top">Get FPGA state. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">1: unconfigured, 0:configured</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1</td>
                 <td bgcolor="#ffffff" valign="top">Checksum</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">2-5</td>
                 <td bgcolor="#ffffff" valign="top">Number of bytes transferred.</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">6</td>
                 <td bgcolor="#ffffff" valign="top">INIT_B states.</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">7</td>
                 <td bgcolor="#ffffff" valign="top">Flash configuration result.</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">8</td>
                 <td bgcolor="#ffffff" valign="top">Flash Bitstreambit order (1=swapped).</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x31</td>
           <td bgcolor="#ffffff" valign="top">Reset FPGA</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x32</td>
           <td bgcolor="#ffffff" valign="top">Send Bitstream</td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.2</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       Flash memory support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x40</td>
           <td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1-2</td>
                 <td bgcolor="#ffffff" valign="top">Sector size</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">3-6</td>
                 <td bgcolor="#ffffff" valign="top">Number of sectors</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">7</td>
                 <td bgcolor="#ffffff" valign="top">Error code</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x41</td>
           <td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x42</td>
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.3</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       Debug helper support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x28</td>
           <td bgcolor="#ffffff" valign="top">Get debug data. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0-1</td>
                 <td bgcolor="#ffffff" valign="top">Number of the last message</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">2</td>
                 <td bgcolor="#ffffff" valign="top">Stack size in messages</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">3</td>
                 <td bgcolor="#ffffff" valign="top">Message size in bytes</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">&ge;4</td>
                 <td bgcolor="#ffffff" valign="top">Message stack</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.4</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       XMEGA support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x48</td>
           <td bgcolor="#ffffff" valign="top">Read XMEGA status information. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Error code</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1-2</td>
                 <td bgcolor="#ffffff" valign="top">Flash size in pages</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">3-4</td>
                 <td bgcolor="#ffffff" valign="top">EEPROM sie in pages</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">5</td>
                 <td bgcolor="#ffffff" valign="top">Flash page size as power of two     (e.g. 9 means 512 bytes)</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">6</td>
                 <td bgcolor="#ffffff" valign="top">EEPROM page size as power of two</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x49</td>
           <td bgcolor="#ffffff" valign="top">Reset XMEGA</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VRs 0x4A, 0x4B, 0x4C, 0x4D</td>
           <td bgcolor="#ffffff" valign="top">Read XMEGA NVM using PDI address space / relative to Flash address base / EEPROM address base / Fuse address base</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VCs 0x4B, 0x4C</td>
           <td bgcolor="#ffffff" valign="top">Write exactly one Flash / EEPROM page</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VCs 0x4D</td>
           <td bgcolor="#ffffff" valign="top">Write Fuse</td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.5</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
          High speed FPGA configuration support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x33</td>
           <td bgcolor="#ffffff" valign="top">Read Endpoint settings. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Endpoint number</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1</td>
                 <td bgcolor="#ffffff" valign="top">Interface number</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x34</td>
           <td bgcolor="#ffffff" valign="top">Start FPGA configuration</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x35</td>
           <td bgcolor="#ffffff" valign="top">Finish FPGA configuration</td>
         </tr>
       </table>
        </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.6</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
          MAC EEPROM support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x3B</td>
           <td bgcolor="#ffffff" valign="top">Read from MAC EEPROM</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x3C</td>
           <td bgcolor="#ffffff" valign="top">Write to MAC EEPROM</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x3D</td>
           <td bgcolor="#ffffff" valign="top">Get MAC EEPROM state. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">0:idle, 1:busy or error</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
        </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0.7</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
          Multi-FPGA support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x50</td>
           <td bgcolor="#ffffff" valign="top">Return multi-FPGA information:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Number of FPGA's - 1</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1</td>
                 <td bgcolor="#ffffff" valign="top">Selected FPGA - 1</td>
               </tr>
               <tr>
                    <td bgcolor="#ffffff" valign="top">2</td>
                    <td bgcolor="#ffffff" valign="top">Parallel configuration support (0:no, 1:yes)</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x51</td>
           <td bgcolor="#ffffff" valign="top">Parameters:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Parameter</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">index</td>
                 <td bgcolor="#ffffff" valign="top">Select command<br> 0: Select single FPGA <br> 1: Select all FPGA's for configuration</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">value</td>
                 <td bgcolor="#ffffff" valign="top">FPGA to select - 1</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
        </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1.0</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
          Temperature sensor support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x58</td>
           <td bgcolor="#ffffff" valign="top">Return temperature data:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Protocol</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1..n</td>
                 <td bgcolor="#ffffff" valign="top">Data</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
        </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1.1</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       Flash 2 support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x40</td>
           <td bgcolor="#ffffff" valign="top">Get Flash state. Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">1:enabled, 0:disabled</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1-2</td>
                 <td bgcolor="#ffffff" valign="top">Sector size</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">3-6</td>
                 <td bgcolor="#ffffff" valign="top">Number of sectors</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">7</td>
                 <td bgcolor="#ffffff" valign="top">Error code</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x41</td>
           <td bgcolor="#ffffff" valign="top">Read one sector from Flash</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x42</td>
           <td bgcolor="#ffffff" valign="top">Write one sector to Flash</td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1.2</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>Indicates an FX3 firmware</td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1.3</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       Debug helper support<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x28</td>
           <td bgcolor="#ffffff" valign="top">Read debug message given by index (value<<16 | index) Returns:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Error code (!= 0 if fatal error occurred)</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1..4</td>
                 <td bgcolor="#ffffff" valign="top">Index of last message in buffer</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">5..6</td>
                 <td bgcolor="#ffffff" valign="top">Number of messages in buffer</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">7..8</td>
                 <td bgcolor="#ffffff" valign="top">Size if the message</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">9</td>
                 <td bgcolor="#ffffff" valign="top">Type of the message</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">10..</td>
                 <td bgcolor="#ffffff" valign="top">Message data</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x29</td>
           <td bgcolor="#ffffff" valign="top">Return USB 3.0 errors
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0..1</td>
                 <td bgcolor="#ffffff" valign="top">Send errors</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">2..3</td>
                 <td bgcolor="#ffffff" valign="top">Receive errors</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
     </td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1.4</td>
     <td bgcolor="#ffffff" valign="top" colspan=2>
       Default firmware interface<p>
       <table bgcolor="#404040" cellspacing=1 cellpadding=6>
         <tr>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Vendor request (VR)<br> or command (VC)</b></td>
           <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x60</td>
           <td bgcolor="#ffffff" valign="top">Reset</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x61</td>
           <td bgcolor="#ffffff" valign="top">Read/write GPIO's:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">GPIO state (bits 0..3)</td>
               </tr>
             </table>
           </td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x62</td>
           <td bgcolor="#ffffff" valign="top">Write to low speed interface</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VC 0x63</td>
           <td bgcolor="#ffffff" valign="top">Read from low speed interface</td>
         </tr>
         <tr>
           <td bgcolor="#ffffff" valign="top">VR 0x64</td>
           <td bgcolor="#ffffff" valign="top">Return Default Interface information:
             <table bgcolor="#404040" cellspacing=1 cellpadding=4>
               <tr>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
                 <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">0</td>
                 <td bgcolor="#ffffff" valign="top">Version</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">1</td>
                 <td bgcolor="#ffffff" valign="top">Output Endpoint of the high speed interface</td>
               </tr>
               <tr>
                 <td bgcolor="#ffffff" valign="top">2</td>
                 <td bgcolor="#ffffff" valign="top">Input Endpoint of the high speed interface</td>
               </tr>
             </table>
           </td>
         </tr>
       </table>
     </td>
   </tr>
 </table></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../ztex/ZtexDevice1.html" title="class in ztex"><code>ZtexDevice1</code></a>, 
<a href="../ztex/Ztex1.html" title="class in ztex"><code>Ztex1</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEBUG">CAPABILITY_DEBUG</a></strong></code>
<div class="block">Capability index for DEBUG helper support.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEBUG2">CAPABILITY_DEBUG2</a></strong></code>
<div class="block">Capability index for debug helper 2</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_DEFAULT">CAPABILITY_DEFAULT</a></strong></code>
<div class="block">Capability index for default firmware interface</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_EEPROM">CAPABILITY_EEPROM</a></strong></code>
<div class="block">Capability index for EEPROM support.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FLASH">CAPABILITY_FLASH</a></strong></code>
<div class="block">Capability index for FLASH memory support.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FLASH2">CAPABILITY_FLASH2</a></strong></code>
<div class="block">Capability index for 2nd FLASH memory support.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FPGA">CAPABILITY_FPGA</a></strong></code>
<div class="block">Capability index for FPGA configuration support.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_FX3">CAPABILITY_FX3</a></strong></code>
<div class="block">Capability index for FX3 firmware</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_HS_FPGA">CAPABILITY_HS_FPGA</a></strong></code>
<div class="block">Capability index for AVR XMEGA support.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_MAC_EEPROM">CAPABILITY_MAC_EEPROM</a></strong></code>
<div class="block">Capability index for AVR XMEGA support.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_MULTI_FPGA">CAPABILITY_MULTI_FPGA</a></strong></code>
<div class="block">Capability index for multi FPGA support</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_TEMP_SENSOR">CAPABILITY_TEMP_SENSOR</a></strong></code>
<div class="block">Capability index for Temperature sensor support</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#CAPABILITY_XMEGA">CAPABILITY_XMEGA</a></strong></code>
<div class="block">Capability index for AVR XMEGA support.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#capabilityStrings">capabilityStrings</a></strong></code>
<div class="block">The names of the capabilities</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../ztex/ConfigData.html" title="class in ztex">ConfigData</a></code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#config">config</a></strong></code>
<div class="block">The configuration data structure 
 is initialized if this kind of data is present in MAC EEPROM.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2LogIdx">debug2LogIdx</a></strong></code>
<div class="block">Index of next log entry (messages of type 1 and 2) to be read.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugNewMessages">debugNewMessages</a></strong></code>
<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>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultDisableWarnings">defaultDisableWarnings</a></strong></code>
<div class="block">disable update warnings.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLatestSubVersion">defaultLatestSubVersion</a></strong></code>
<div class="block">sub-version number of the latest default interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLatestVersion">defaultLatestVersion</a></strong></code>
<div class="block">version number of the latest default interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromBytes">eepromBytes</a></strong></code>
<div class="block">Number of bytes written to EEPROM.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromChecksum">eepromChecksum</a></strong></code>
<div class="block">Checksum of the last EEPROM transfer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#enableExtraFpgaConfigurationChecks">enableExtraFpgaConfigurationChecks</a></strong></code>
<div class="block">Enables extra FPGA configuration checks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_BUSY">FLASH_EC_BUSY</a></strong></code>
<div class="block">Signals that Flash memory it busy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_CMD_ERROR">FLASH_EC_CMD_ERROR</a></strong></code>
<div class="block">Signals an error while attempting to execute a command.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_NO_ERROR">FLASH_EC_NO_ERROR</a></strong></code>
<div class="block">Means no error.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_NOTSUPPORTED">FLASH_EC_NOTSUPPORTED</a></strong></code>
<div class="block">Signals the installed Flash memory is not supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_PENDING">FLASH_EC_PENDING</a></strong></code>
<div class="block">Signals that another Flash operation is pending.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_READ_ERROR">FLASH_EC_READ_ERROR</a></strong></code>
<div class="block">Signals an error while attempting to read from Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_RUNTIME">FLASH_EC_RUNTIME</a></strong></code>
<div class="block">Signals a runtime error of the firmware.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_TIMEOUT">FLASH_EC_TIMEOUT</a></strong></code>
<div class="block">Signals that a timeout occurred.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#FLASH_EC_WRITE_ERROR">FLASH_EC_WRITE_ERROR</a></strong></code>
<div class="block">Signals an error while attempting to write to Flash.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2EC">flash2EC</a></strong></code>
<div class="block">Last 2nd Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashEC">flashEC</a></strong></code>
<div class="block">Last Flash error code obtained by <a href="../ztex/Ztex1v1.html#flashState()"><code>flashState()</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#tempSensorUpdateInterval">tempSensorUpdateInterval</a></strong></code>
<div class="block">smallest temperature sensor update interval in ms</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#usb3RcvErrors">usb3RcvErrors</a></strong></code>
<div class="block">USB 3.0 receive error count.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#usb3SndErrors">usb3SndErrors</a></strong></code>
<div class="block">USB 3.0 send error count.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_ADDRESS_ERROR">XMEGA_EC_ADDRESS_ERROR</a></strong></code>
<div class="block">Signals an address error (invalid address or wrong page size).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_INVALID_DEVICE">XMEGA_EC_INVALID_DEVICE</a></strong></code>
<div class="block">Signals that the ATxmega controller is not supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NO_ERROR">XMEGA_EC_NO_ERROR</a></strong></code>
<div class="block">Means no error.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NVM_BUSY">XMEGA_EC_NVM_BUSY</a></strong></code>
<div class="block">Signals that the NVM is busy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_NVM_TIMEOUT">XMEGA_EC_NVM_TIMEOUT</a></strong></code>
<div class="block">Signals that an NVM timeout occurred.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#XMEGA_EC_PDI_READ_ERROR">XMEGA_EC_PDI_READ_ERROR</a></strong></code>
<div class="block">Signals a PDI read error.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEC">xmegaEC</a></strong></code>
<div class="block">Last ATxmega error code obtained by <a href="../ztex/Ztex1v1.html#xmegaState()"><code>xmegaState()</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_ztex.Ztex1">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;ztex.<a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></h3>
<code><a href="../ztex/Ztex1.html#controlMsgTimeout">controlMsgTimeout</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<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>&nbsp;pDev)</code>
<div class="block">Constructs an instance from a given device.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#capabilityInfo(java.lang.String)">capabilityInfo</a></strong>(java.lang.String&nbsp;pf)</code>
<div class="block">Creates a String with capability information.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCapability(int)">checkCapability</a></strong>(int&nbsp;i)</code>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCapability(int,%20int)">checkCapability</a></strong>(int&nbsp;i,
               int&nbsp;j)</code>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkCompatible(int,%20int,%20int,%20int)">checkCompatible</a></strong>(int&nbsp;productId0,
               int&nbsp;productId1,
               int&nbsp;productId2,
               int&nbsp;productId3)</code>
<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>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#checkValid()">checkValid</a></strong>()</code>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#compatible(int,%20int,%20int,%20int)">compatible</a></strong>(int&nbsp;productId0,
          int&nbsp;productId1,
          int&nbsp;productId2,
          int&nbsp;productId3)</code>
<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>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.io.InputStream,%20boolean,%20int)">configureFpga</a></strong>(java.io.InputStream&nbsp;inputStream,
             boolean&nbsp;force,
             int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.lang.String,%20boolean)">configureFpga</a></strong>(java.lang.String&nbsp;fwFileName,
             boolean&nbsp;force)</code>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpga(java.lang.String,%20boolean,%20int)">configureFpga</a></strong>(java.lang.String&nbsp;fwFileName,
             boolean&nbsp;force,
             int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaHS(java.io.InputStream,%20boolean,%20int)">configureFpgaHS</a></strong>(java.io.InputStream&nbsp;inputStream,
               boolean&nbsp;force,
               int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaHS(java.lang.String,%20boolean,%20int)">configureFpgaHS</a></strong>(java.lang.String&nbsp;fwFileName,
               boolean&nbsp;force,
               int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaLS(java.io.InputStream,%20boolean,%20int)">configureFpgaLS</a></strong>(java.io.InputStream&nbsp;inputStream,
               boolean&nbsp;force,
               int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#configureFpgaLS(java.lang.String,%20boolean,%20int)">configureFpgaLS</a></strong>(java.lang.String&nbsp;fwFileName,
               boolean&nbsp;force,
               int&nbsp;bs)</code>
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2Cnt()">debug2Cnt</a></strong>()</code>
<div class="block">Returns the number of messages in buffer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2EC()">debug2EC</a></strong>()</code>
<div class="block">Returns an error code if a fatal error occurred (0 if no error occurred)</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>byte[]</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2GetMessage(int)">debug2GetMessage</a></strong>(int&nbsp;idx)</code>
<div class="block">Reads a debug message with given Index in raw format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2GetNextLogMessage()">debug2GetNextLogMessage</a></strong>()</code>
<div class="block">Reads the next log message in string format.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2LastIdx()">debug2LastIdx</a></strong>()</code>
<div class="block">Returns index of last message + 1</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debug2PrintNextLogMessages(java.io.PrintStream)">debug2PrintNextLogMessages</a></strong>(java.io.PrintStream&nbsp;out)</code>
<div class="block">Prints new log message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugLastMsg()">debugLastMsg</a></strong>()</code>
<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>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugMsgSize()">debugMsgSize</a></strong>()</code>
<div class="block">Returns the size of messages in bytes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugReadMessages(boolean,%20byte[])">debugReadMessages</a></strong>(boolean&nbsp;all,
                 byte[]&nbsp;buf)</code>
<div class="block">Reads debug messages from message stack.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#debugStackSize()">debugStackSize</a></strong>()</code>
<div class="block">Returns the size of message stack in messages.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultCheckVersion(int)">defaultCheckVersion</a></strong>(int&nbsp;version)</code>
<div class="block">Checks version of the default interface.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultGpioCtl(int,%20int)">defaultGpioCtl</a></strong>(int&nbsp;mask,
              int&nbsp;value)</code>
<div class="block">Reads and modifies the 4 GPIO pins.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultInEP()">defaultInEP</a></strong>()</code>
<div class="block">Returns input Endpoint of default interface 
 used for high speed communication.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiGet(int)">defaultLsiGet</a></strong>(int&nbsp;addr)</code>
<div class="block">Read data from the low speed interface of default firmwares.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiGet(int,%20int[],%20int)">defaultLsiGet</a></strong>(int&nbsp;addr,
             int[]&nbsp;val,
             int&nbsp;length)</code>
<div class="block">Read data from the low speed interface of default firmwares.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int[],%20int[],%20int)">defaultLsiSet</a></strong>(int[]&nbsp;addr,
             int[]&nbsp;val,
             int&nbsp;length)</code>
<div class="block">Send data to the low speed interface of default firmwares.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int,%20int)">defaultLsiSet</a></strong>(int&nbsp;addr,
             int&nbsp;val)</code>
<div class="block">Send data to the low speed interface of default firmwares.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultLsiSet(int,%20int[],%20int)">defaultLsiSet</a></strong>(int&nbsp;addr,
             int[]&nbsp;val,
             int&nbsp;length)</code>
<div class="block">Send data to the low speed interface of default firmwares.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultOutEP()">defaultOutEP</a></strong>()</code>
<div class="block">Returns output Endpoint of default interface 
 used for high speed communication.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultReset()">defaultReset</a></strong>()</code>
<div class="block">Assert the reset signal.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultReset(boolean)">defaultReset</a></strong>(boolean&nbsp;leave)</code>
<div class="block">Assert the reset signal.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultSubVersion()">defaultSubVersion</a></strong>()</code>
<div class="block">Returns sub-version of the default interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#defaultVersion()">defaultVersion</a></strong>()</code>
<div class="block">Returns version of the default interface or 0 if default interface is not present.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromDisable()">eepromDisable</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromRead(int,%20byte[],%20int)">eepromRead</a></strong>(int&nbsp;addr,
          byte[]&nbsp;buf,
          int&nbsp;length)</code>
<div class="block">Reads data from the EEPROM.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromState()">eepromState</a></strong>()</code>
<div class="block">Reads the current EEPROM status.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromUpload(java.lang.String,%20boolean)">eepromUpload</a></strong>(java.lang.String&nbsp;imgFileName,
            boolean&nbsp;force)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)"><code>nvUploadFirmware(String,boolean)</code></a></i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<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>&nbsp;imgFile,
            boolean&nbsp;force)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(ztex.ZtexImgFile1,%20boolean)"><code>nvUploadFirmware(ZtexImgFile1,boolean)</code></a></i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#eepromWrite(int,%20byte[],%20int)">eepromWrite</a></strong>(int&nbsp;addr,
           byte[]&nbsp;buf,
           int&nbsp;length)</code>
<div class="block">Writes data to the EEPROM.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Enabled()">flash2Enabled</a></strong>()</code>
<div class="block">Returns true if 2nd Flash memory is installed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Info()">flash2Info</a></strong>()</code>
<div class="block">Returns information about 2nd Flash memory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2ReadSector(int,%20byte[])">flash2ReadSector</a></strong>(int&nbsp;sector,
                byte[]&nbsp;buf)</code>
<div class="block">Reads one sector from the 2nd Flash memory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2ReadSector(int,%20int,%20byte[])">flash2ReadSector</a></strong>(int&nbsp;sector,
                int&nbsp;num,
                byte[]&nbsp;buf)</code>
<div class="block">Reads a integer number of sectors from the 2nd Flash memory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Sectors()">flash2Sectors</a></strong>()</code>
<div class="block">Returns the number of sectors of the 2nd Flash memory or 0, if no 2nd Flash is installed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2SectorSize()">flash2SectorSize</a></strong>()</code>
<div class="block">Returns the sector size of the 2nd Flash memory or 0, if no 2nd Flash is installed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2Size()">flash2Size</a></strong>()</code>
<div class="block">Returns the size of 2nd Flash memory or 0, if no 2nd Flash memory is installed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2State()">flash2State</a></strong>()</code>
<div class="block">Reads the the 2nd Flash memory status and information.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2StrError()">flash2StrError</a></strong>()</code>
<div class="block">Gets the last 2nd Flash error from the device.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2WriteSector(int,%20byte[])">flash2WriteSector</a></strong>(int&nbsp;sector,
                 byte[]&nbsp;buf)</code>
<div class="block">Writes one sector to the 2nd Flash memory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flash2WriteSector(int,%20int,%20byte[])">flash2WriteSector</a></strong>(int&nbsp;sector,
                 int&nbsp;num,
                 byte[]&nbsp;buf)</code>
<div class="block">Writes a integer number of sectors to the 2nd Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashEnabled()">flashEnabled</a></strong>()</code>
<div class="block">Returns true if Flash memory is installed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashFirstFreeSector()">flashFirstFreeSector</a></strong>()</code>
<div class="block">Returns the first free sector of the Flash memory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashInfo()">flashInfo</a></strong>()</code>
<div class="block">Returns information about Flash memory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashReadSector(int,%20byte[])">flashReadSector</a></strong>(int&nbsp;sector,
               byte[]&nbsp;buf)</code>
<div class="block">Reads one sector from the Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashReadSector(int,%20int,%20byte[])">flashReadSector</a></strong>(int&nbsp;sector,
               int&nbsp;num,
               byte[]&nbsp;buf)</code>
<div class="block">Reads a integer number of sectors from the Flash.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashResetBitstream()">flashResetBitstream</a></strong>()</code>
<div class="block">Clears a Bitstream from the Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSectors()">flashSectors</a></strong>()</code>
<div class="block">Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSectorSize()">flashSectorSize</a></strong>()</code>
<div class="block">Returns the sector size of the Flash memory or 0, if no Flash is installed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashSize()">flashSize</a></strong>()</code>
<div class="block">Returns the size of Flash memory or 0, if no Flash memory is installed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashState()">flashState</a></strong>()</code>
<div class="block">Reads the the Flash memory status and information.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashStrError()">flashStrError</a></strong>()</code>
<div class="block">Gets the last Flash error from the device.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashStrError(int)">flashStrError</a></strong>(int&nbsp;errNum)</code>
<div class="block">Converts a given error code into a String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)">flashUploadBitstream</a></strong>(java.io.InputStream&nbsp;inputStream,
                    int&nbsp;bs)</code>
<div class="block">Uploads a Bitstream to the Flash.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String)">flashUploadBitstream</a></strong>(java.lang.String&nbsp;fwFileName)</code>
<div class="block">Uploads a Bitstream to the Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.lang.String,%20int)">flashUploadBitstream</a></strong>(java.lang.String&nbsp;fwFileName,
                    int&nbsp;bs)</code>
<div class="block">Uploads a Bitstream to the Flash.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashWriteSector(int,%20byte[])">flashWriteSector</a></strong>(int&nbsp;sector,
                byte[]&nbsp;buf)</code>
<div class="block">Writes one sector to the Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#flashWriteSector(int,%20int,%20byte[])">flashWriteSector</a></strong>(int&nbsp;sector,
                int&nbsp;num,
                byte[]&nbsp;buf)</code>
<div class="block">Writes a integer number of sectors to the Flash.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFlash2EC()">getFlash2EC</a></strong>()</code>
<div class="block">Gets the last 2nd Flash memory error from the device.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFlashEC()">getFlashEC</a></strong>()</code>
<div class="block">Gets the last Flash error from the device.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFpgaConfiguration()">getFpgaConfiguration</a></strong>()</code>
<div class="block">Returns true if the FPGA is configured.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getFpgaConfigurationStr()">getFpgaConfigurationStr</a></strong>()</code>
<div class="block">Returns a string that indicates the FPGA configuration status.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#getUsb3Errors()">getUsb3Errors</a></strong>()</code>
<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>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#init()">init</a></strong>()</code>
<div class="block">Initializates the class.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#InterfaceCapabilities(int)">InterfaceCapabilities</a></strong>(int&nbsp;i)</code>
<div class="block">Returns interface capability bit.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromRead(int,%20byte[],%20int)">macEepromRead</a></strong>(int&nbsp;addr,
             byte[]&nbsp;buf,
             int&nbsp;length)</code>
<div class="block">Reads data from the MAC EEPROM.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromState()">macEepromState</a></strong>()</code>
<div class="block">Reads the current MAC EEPROM status.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macEepromWrite(int,%20byte[],%20int)">macEepromWrite</a></strong>(int&nbsp;addr,
              byte[]&nbsp;buf,
              int&nbsp;length)</code>
<div class="block">Writes data to the MAC EEPROM.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#macRead(byte[])">macRead</a></strong>(byte[]&nbsp;buf)</code>
<div class="block">Reads MAC address from MAC EEPROM.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#numberOfFpgas()">numberOfFpgas</a></strong>()</code>
<div class="block">Returns the number of FPGA's</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#nvDisableFirmware()">nvDisableFirmware</a></strong>()</code>
<div class="block">Disables the firmware stored in the non-volatile memory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)">nvUploadFirmware</a></strong>(java.lang.String&nbsp;imgFileName,
                boolean&nbsp;force)</code>
<div class="block">Upload the firmware to the non-volatile memory.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<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>&nbsp;imgFile,
                boolean&nbsp;force)</code>
<div class="block">Upload the firmware to the non-volatile memory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printFpgaState()">printFpgaState</a></strong>()</code>
<div class="block">Prints out the FPGA state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printMmc2State()">printMmc2State</a></strong>()</code>
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printMmcState()">printMmcState</a></strong>()</code>
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#printSpiState()">printSpiState</a></strong>()</code>
<div class="block">Prints out some debug information about SPI Flash.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#resetFpga()">resetFpga</a></strong>()</code>
<div class="block">Resets the FPGA.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#selectFpga(int)">selectFpga</a></strong>(int&nbsp;num)</code>
<div class="block">Select a FPGA</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#tempSensorRead(int)">tempSensorRead</a></strong>(int&nbsp;idx)</code>
<div class="block">Read temperature sensor data.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#toHumanStr(long)">toHumanStr</a></strong>(long&nbsp;i)</code>
<div class="block">Converts an integer into a base 1024 formatted string.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#toString()">toString</a></strong>()</code>
<div class="block">Returns a lot of useful information about the corresponding device.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#valid()">valid</a></strong>()</code>
<div class="block">Returns true if ZTEX interface 1 is available.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#valid(int,%20int)">valid</a></strong>(int&nbsp;i,
     int&nbsp;j)</code>
<div class="block">Returns true if ZTEX interface 1 and capability i.j are available.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPages()">xmegaEepromPages</a></strong>()</code>
<div class="block">Returns the number of the ATxmega EEPROM pages.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPageSize()">xmegaEepromPageSize</a></strong>()</code>
<div class="block">Returns the size of the ATXmega EEPROM pages.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromPageWrite(int,%20byte[])">xmegaEepromPageWrite</a></strong>(int&nbsp;addr,
                    byte[]&nbsp;buf)</code>
<div class="block">Writes data to EEPROM memory of ATxmega.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEepromRead(int,%20byte[],%20int)">xmegaEepromRead</a></strong>(int&nbsp;addr,
               byte[]&nbsp;buf,
               int&nbsp;length)</code>
<div class="block">Reads data from EEPROM memory of ATxmega.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaEnabled()">xmegaEnabled</a></strong>()</code>
<div class="block">Returns true if ATxmega controller is available.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPages()">xmegaFlashPages</a></strong>()</code>
<div class="block">Returns the number of the ATxmega Flash pages.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPageSize()">xmegaFlashPageSize</a></strong>()</code>
<div class="block">Returns the size of the ATxmega Flash pages.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashPageWrite(int,%20byte[])">xmegaFlashPageWrite</a></strong>(int&nbsp;addr,
                   byte[]&nbsp;buf)</code>
<div class="block">Writes data to Flash memory of ATxmega.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFlashRead(int,%20byte[],%20int)">xmegaFlashRead</a></strong>(int&nbsp;addr,
              byte[]&nbsp;buf,
              int&nbsp;length)</code>
<div class="block">Reads data from Flash memory of ATxmega.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseRead(int)">xmegaFuseRead</a></strong>(int&nbsp;addr)</code>
<div class="block">Reads data one Fuse of ATxmega.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseRead(int,%20byte[],%20int)">xmegaFuseRead</a></strong>(int&nbsp;addr,
             byte[]&nbsp;buf,
             int&nbsp;length)</code>
<div class="block">Reads data from Fuse memory of ATxmega.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaFuseWrite(int,%20int)">xmegaFuseWrite</a></strong>(int&nbsp;addr,
              int&nbsp;val)</code>
<div class="block">Writes one Fuse of the ATxmega.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaNvmRead(int,%20byte[],%20int)">xmegaNvmRead</a></strong>(int&nbsp;addr,
            byte[]&nbsp;buf,
            int&nbsp;length)</code>
<div class="block">Reads data from the NVM of ATxmega.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaReset()">xmegaReset</a></strong>()</code>
<div class="block">Resets the ATxmega.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaState()">xmegaState</a></strong>()</code>
<div class="block">Read ATxmega error and status information from the device.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaStrError()">xmegaStrError</a></strong>()</code>
<div class="block">Gets the last ATxmega error from the device.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../ztex/Ztex1v1.html#xmegaStrError(int)">xmegaStrError</a></strong>(int&nbsp;errNum)</code>
<div class="block">Converts a given error code into a String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<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>&nbsp;imgFile)</code>
<div class="block">Uploads data to the EEPROM memory</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<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>&nbsp;imgFile)</code>
<div class="block">Uploads firmware to the flash memory</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_ztex.Ztex1">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;ztex.<a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></h3>
<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>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="CAPABILITY_EEPROM">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_EEPROM</h4>
<pre>public static final&nbsp;int CAPABILITY_EEPROM</pre>
<div class="block">Capability index for EEPROM support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_FPGA">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_FPGA</h4>
<pre>public static final&nbsp;int CAPABILITY_FPGA</pre>
<div class="block">Capability index for FPGA configuration support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_FLASH">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_FLASH</h4>
<pre>public static final&nbsp;int CAPABILITY_FLASH</pre>
<div class="block">Capability index for FLASH memory support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_DEBUG">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_DEBUG</h4>
<pre>public static final&nbsp;int CAPABILITY_DEBUG</pre>
<div class="block">Capability index for DEBUG helper support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_XMEGA">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_XMEGA</h4>
<pre>public static final&nbsp;int CAPABILITY_XMEGA</pre>
<div class="block">Capability index for AVR XMEGA support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_HS_FPGA">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_HS_FPGA</h4>
<pre>public static final&nbsp;int CAPABILITY_HS_FPGA</pre>
<div class="block">Capability index for AVR XMEGA support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_MAC_EEPROM">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_MAC_EEPROM</h4>
<pre>public static final&nbsp;int CAPABILITY_MAC_EEPROM</pre>
<div class="block">Capability index for AVR XMEGA support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_MULTI_FPGA">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_MULTI_FPGA</h4>
<pre>public static final&nbsp;int CAPABILITY_MULTI_FPGA</pre>
<div class="block">Capability index for multi FPGA support</div>
<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>
</li>
</ul>
<a name="CAPABILITY_TEMP_SENSOR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_TEMP_SENSOR</h4>
<pre>public static final&nbsp;int CAPABILITY_TEMP_SENSOR</pre>
<div class="block">Capability index for Temperature sensor support</div>
<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>
</li>
</ul>
<a name="CAPABILITY_FLASH2">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_FLASH2</h4>
<pre>public static final&nbsp;int CAPABILITY_FLASH2</pre>
<div class="block">Capability index for 2nd FLASH memory support.</div>
<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>
</li>
</ul>
<a name="CAPABILITY_FX3">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_FX3</h4>
<pre>public static final&nbsp;int CAPABILITY_FX3</pre>
<div class="block">Capability index for FX3 firmware</div>
<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>
</li>
</ul>
<a name="CAPABILITY_DEBUG2">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_DEBUG2</h4>
<pre>public static final&nbsp;int CAPABILITY_DEBUG2</pre>
<div class="block">Capability index for debug helper 2</div>
<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>
</li>
</ul>
<a name="CAPABILITY_DEFAULT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CAPABILITY_DEFAULT</h4>
<pre>public static final&nbsp;int CAPABILITY_DEFAULT</pre>
<div class="block">Capability index for default firmware interface</div>
<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>
</li>
</ul>
<a name="capabilityStrings">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capabilityStrings</h4>
<pre>public static final&nbsp;java.lang.String[] capabilityStrings</pre>
<div class="block">The names of the capabilities</div>
</li>
</ul>
<a name="enableExtraFpgaConfigurationChecks">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enableExtraFpgaConfigurationChecks</h4>
<pre>public&nbsp;boolean enableExtraFpgaConfigurationChecks</pre>
<div class="block">Enables extra FPGA configuration checks. Certain Bistream settings may cause false warnings.</div>
</li>
</ul>
<a name="eepromBytes">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromBytes</h4>
<pre>public&nbsp;int eepromBytes</pre>
<div class="block">Number of bytes written to EEPROM. (Obtained by <a href="../ztex/Ztex1v1.html#eepromState()"><code>eepromState()</code></a>.)</div>
</li>
</ul>
<a name="eepromChecksum">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromChecksum</h4>
<pre>public&nbsp;int eepromChecksum</pre>
<div class="block">Checksum of the last EEPROM transfer. (Obtained by <a href="../ztex/Ztex1v1.html#eepromState()"><code>eepromState()</code></a>.)</div>
</li>
</ul>
<a name="flashEC">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashEC</h4>
<pre>public&nbsp;int flashEC</pre>
<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>
</li>
</ul>
<a name="flash2EC">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2EC</h4>
<pre>public&nbsp;int flash2EC</pre>
<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>
</li>
</ul>
<a name="FLASH_EC_NO_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_NO_ERROR</h4>
<pre>public static final&nbsp;int FLASH_EC_NO_ERROR</pre>
<div class="block">Means no error.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_CMD_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_CMD_ERROR</h4>
<pre>public static final&nbsp;int FLASH_EC_CMD_ERROR</pre>
<div class="block">Signals an error while attempting to execute a command.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_TIMEOUT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_TIMEOUT</h4>
<pre>public static final&nbsp;int FLASH_EC_TIMEOUT</pre>
<div class="block">Signals that a timeout occurred.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_BUSY">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_BUSY</h4>
<pre>public static final&nbsp;int FLASH_EC_BUSY</pre>
<div class="block">Signals that Flash memory it busy.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_PENDING">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_PENDING</h4>
<pre>public static final&nbsp;int FLASH_EC_PENDING</pre>
<div class="block">Signals that another Flash operation is pending.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_READ_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_READ_ERROR</h4>
<pre>public static final&nbsp;int FLASH_EC_READ_ERROR</pre>
<div class="block">Signals an error while attempting to read from Flash.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_WRITE_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_WRITE_ERROR</h4>
<pre>public static final&nbsp;int FLASH_EC_WRITE_ERROR</pre>
<div class="block">Signals an error while attempting to write to Flash.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_NOTSUPPORTED">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_NOTSUPPORTED</h4>
<pre>public static final&nbsp;int FLASH_EC_NOTSUPPORTED</pre>
<div class="block">Signals the installed Flash memory is not supported.</div>
<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>
</li>
</ul>
<a name="FLASH_EC_RUNTIME">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLASH_EC_RUNTIME</h4>
<pre>public static final&nbsp;int FLASH_EC_RUNTIME</pre>
<div class="block">Signals a runtime error of the firmware.</div>
<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>
</li>
</ul>
<a name="debugNewMessages">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debugNewMessages</h4>
<pre>public&nbsp;int debugNewMessages</pre>
<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>
</li>
</ul>
<a name="xmegaEC">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEC</h4>
<pre>public&nbsp;int xmegaEC</pre>
<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>
</li>
</ul>
<a name="XMEGA_EC_NO_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_NO_ERROR</h4>
<pre>public static final&nbsp;int XMEGA_EC_NO_ERROR</pre>
<div class="block">Means no error.</div>
<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>
</li>
</ul>
<a name="XMEGA_EC_PDI_READ_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_PDI_READ_ERROR</h4>
<pre>public static final&nbsp;int XMEGA_EC_PDI_READ_ERROR</pre>
<div class="block">Signals a PDI read error.</div>
<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>
</li>
</ul>
<a name="XMEGA_EC_NVM_TIMEOUT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_NVM_TIMEOUT</h4>
<pre>public static final&nbsp;int XMEGA_EC_NVM_TIMEOUT</pre>
<div class="block">Signals that an NVM timeout occurred.</div>
<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>
</li>
</ul>
<a name="XMEGA_EC_INVALID_DEVICE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_INVALID_DEVICE</h4>
<pre>public static final&nbsp;int XMEGA_EC_INVALID_DEVICE</pre>
<div class="block">Signals that the ATxmega controller is not supported.</div>
<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>
</li>
</ul>
<a name="XMEGA_EC_ADDRESS_ERROR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_ADDRESS_ERROR</h4>
<pre>public static final&nbsp;int XMEGA_EC_ADDRESS_ERROR</pre>
<div class="block">Signals an address error (invalid address or wrong page size).</div>
<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>
</li>
</ul>
<a name="XMEGA_EC_NVM_BUSY">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMEGA_EC_NVM_BUSY</h4>
<pre>public static final&nbsp;int XMEGA_EC_NVM_BUSY</pre>
<div class="block">Signals that the NVM is busy.</div>
<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>
</li>
</ul>
<a name="tempSensorUpdateInterval">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tempSensorUpdateInterval</h4>
<pre>public&nbsp;int tempSensorUpdateInterval</pre>
<div class="block">smallest temperature sensor update interval in ms</div>
</li>
</ul>
<a name="debug2LogIdx">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2LogIdx</h4>
<pre>public&nbsp;int debug2LogIdx</pre>
<div class="block">Index of next log entry (messages of type 1 and 2) to be read.</div>
</li>
</ul>
<a name="usb3SndErrors">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>usb3SndErrors</h4>
<pre>public&nbsp;int usb3SndErrors</pre>
<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>
</li>
</ul>
<a name="usb3RcvErrors">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>usb3RcvErrors</h4>
<pre>public&nbsp;int usb3RcvErrors</pre>
<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>
</li>
</ul>
<a name="defaultDisableWarnings">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultDisableWarnings</h4>
<pre>public&nbsp;boolean defaultDisableWarnings</pre>
<div class="block">disable update warnings.</div>
</li>
</ul>
<a name="defaultLatestVersion">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLatestVersion</h4>
<pre>public final&nbsp;int defaultLatestVersion</pre>
<div class="block">version number of the latest default interface.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.defaultLatestVersion">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="defaultLatestSubVersion">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLatestSubVersion</h4>
<pre>public final&nbsp;int defaultLatestSubVersion</pre>
<div class="block">sub-version number of the latest default interface.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../constant-values.html#ztex.Ztex1v1.defaultLatestSubVersion">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="config">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>config</h4>
<pre>public&nbsp;<a href="../ztex/ConfigData.html" title="class in ztex">ConfigData</a> config</pre>
<div class="block">The configuration data structure 
 is initialized if this kind of data is present in MAC EEPROM.
 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>.
 In order to override this behavior set this variable to null.
 If no configuration data is present <a href="../ztex/Ztex1v1.html#config"><code>config</code></a> is null.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="Ztex1v1(ztex.ZtexDevice1)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Ztex1v1</h4>
<pre>public&nbsp;Ztex1v1(<a href="../ztex/ZtexDevice1.html" title="class in ztex">ZtexDevice1</a>&nbsp;pDev)
        throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
<div class="block">Constructs an instance from a given device.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pDev</code> - The given device.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if an communication error occurred.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="init()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>protected&nbsp;void&nbsp;init()
             throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
<div class="block">Initializates the class.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../ztex/Ztex1.html#init()">init</a></code>&nbsp;in class&nbsp;<code><a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if an communication error occurred.</dd></dl>
</li>
</ul>
<a name="valid()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valid</h4>
<pre>public&nbsp;boolean&nbsp;valid()</pre>
<div class="block">Returns true if ZTEX interface 1 is available.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../ztex/Ztex1.html#valid()">valid</a></code>&nbsp;in class&nbsp;<code><a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>true if ZTEX interface 1 is available.</dd></dl>
</li>
</ul>
<a name="valid(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valid</h4>
<pre>public&nbsp;boolean&nbsp;valid(int&nbsp;i,
            int&nbsp;j)</pre>
<div class="block">Returns true if ZTEX interface 1 and capability i.j are available.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>true if ZTEX interface 1 and capability i.j are available.</dd></dl>
</li>
</ul>
<a name="compatible(int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compatible</h4>
<pre>public&nbsp;boolean&nbsp;compatible(int&nbsp;productId0,
                 int&nbsp;productId1,
                 int&nbsp;productId2,
                 int&nbsp;productId3)</pre>
<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>
 The given product ID is compatible
 <pre>if ( this.productId(0)==0 || productId0<=0 || this.productId(0)==productId0 ) && 
   ( this.productId(0)==0 || productId1<=0 || this.productId(1)==productId1 ) && 
   ( this.productId(2)==0 || productId2<=0 || this.productId(2)==productId2 ) && 
   ( this.productId(3)==0 || productId3<=0 || this.productId(3)==productId3 ) </pre></div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>true if the given product ID is compatible and interface 1 is supported.</dd></dl>
</li>
</ul>
<a name="checkValid()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkValid</h4>
<pre>public&nbsp;void&nbsp;checkValid()
                throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 is supported.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../ztex/Ztex1.html#checkValid()">checkValid</a></code>&nbsp;in class&nbsp;<code><a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<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>
</li>
</ul>
<a name="checkCapability(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkCapability</h4>
<pre>public&nbsp;void&nbsp;checkCapability(int&nbsp;i,
                   int&nbsp;j)
                     throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if the given capability is not supported.</dd></dl>
</li>
</ul>
<a name="checkCapability(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkCapability</h4>
<pre>public&nbsp;void&nbsp;checkCapability(int&nbsp;i)
                     throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Checks whether ZTEX descriptor 1 is available and interface 1 and a given capability are supported.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - capability index (0..47)</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if the given capability is not supported.</dd></dl>
</li>
</ul>
<a name="InterfaceCapabilities(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>InterfaceCapabilities</h4>
<pre>public&nbsp;boolean&nbsp;InterfaceCapabilities(int&nbsp;i)</pre>
<div class="block">Returns interface capability bit.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - capability index (0..47)</dd>
<dt><span class="strong">Returns:</span></dt><dd>interface capability bit.</dd></dl>
</li>
</ul>
<a name="checkCompatible(int, int, int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>checkCompatible</h4>
<pre>public&nbsp;void&nbsp;checkCompatible(int&nbsp;productId0,
                   int&nbsp;productId1,
                   int&nbsp;productId2,
                   int&nbsp;productId3)
                     throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
<div class="block">Checks whether the given product ID is compatible to the device corresponding to this class and whether interface 1 is supported.
 See <a href="../ztex/Ztex1v1.html#compatible(int,%20int,%20int,%20int)"><code>compatible(int,int,int,int)</code></a>.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<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>
</li>
</ul>
<a name="printFpgaState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printFpgaState</h4>
<pre>public&nbsp;void&nbsp;printFpgaState()
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Prints out the FPGA state.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="getFpgaConfiguration()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFpgaConfiguration</h4>
<pre>public&nbsp;boolean&nbsp;getFpgaConfiguration()
                             throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                    <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                    <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns true if the FPGA is configured.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if the FPGA is configured.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="getFpgaConfigurationStr()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFpgaConfigurationStr</h4>
<pre>public&nbsp;java.lang.String&nbsp;getFpgaConfigurationStr()
                                         throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                                <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns a string that indicates the FPGA configuration status.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a string that indicates the FPGA configuration status.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="resetFpga()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resetFpga</h4>
<pre>public&nbsp;void&nbsp;resetFpga()
               throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                      <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                      <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Resets the FPGA.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="configureFpgaLS(java.io.InputStream, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpgaLS</h4>
<pre>public&nbsp;long&nbsp;configureFpgaLS(java.io.InputStream&nbsp;inputStream,
                   boolean&nbsp;force,
                   int&nbsp;bs)
                     throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                            <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                            <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="configureFpgaLS(java.lang.String, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpgaLS</h4>
<pre>public&nbsp;long&nbsp;configureFpgaLS(java.lang.String&nbsp;fwFileName,
                   boolean&nbsp;force,
                   int&nbsp;bs)
                     throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                            <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                            <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using low speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="eepromState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromState</h4>
<pre>public&nbsp;boolean&nbsp;eepromState()
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads the current EEPROM status.
 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>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if EEPROM is ready.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="eepromWrite(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromWrite</h4>
<pre>public&nbsp;void&nbsp;eepromWrite(int&nbsp;addr,
               byte[]&nbsp;buf,
               int&nbsp;length)
                 throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                        <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                        <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Writes data to the EEPROM.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="eepromRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromRead</h4>
<pre>public&nbsp;void&nbsp;eepromRead(int&nbsp;addr,
              byte[]&nbsp;buf,
              int&nbsp;length)
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from the EEPROM.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="nvUploadFirmware(ztex.ZtexImgFile1, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nvUploadFirmware</h4>
<pre>public&nbsp;long&nbsp;nvUploadFirmware(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a>&nbsp;imgFile,
                    boolean&nbsp;force)
                      throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
                             <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload the firmware to the non-volatile memory.
 In order to start the uploaded firmware the device must be reset.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Upload time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
<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>
</li>
</ul>
<a name="eepromUpload(ztex.ZtexImgFile1, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromUpload</h4>
<pre>@Deprecated
public&nbsp;long&nbsp;eepromUpload(<a href="../ztex/ZtexImgFile1.html" title="class in ztex">ZtexImgFile1</a>&nbsp;imgFile,
                           boolean&nbsp;force)
                  throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
                         <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(ztex.ZtexImgFile1,%20boolean)"><code>nvUploadFirmware(ZtexImgFile1,boolean)</code></a></i></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a></code></dd>
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
</li>
</ul>
<a name="nvUploadFirmware(java.lang.String, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nvUploadFirmware</h4>
<pre>public&nbsp;long&nbsp;nvUploadFirmware(java.lang.String&nbsp;imgFileName,
                    boolean&nbsp;force)
                      throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
                             <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload the firmware to the non-volatile memory.
 In order to start the uploaded firmware the device must be reset.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Upload time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
<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>
</li>
</ul>
<a name="eepromUpload(java.lang.String, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromUpload</h4>
<pre>@Deprecated
public&nbsp;long&nbsp;eepromUpload(java.lang.String&nbsp;imgFileName,
                           boolean&nbsp;force)
                  throws <a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a>,
                         <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Replaced by <a href="../ztex/Ztex1v1.html#nvUploadFirmware(java.lang.String,%20boolean)"><code>nvUploadFirmware(String,boolean)</code></a></i></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/IncompatibleFirmwareException.html" title="class in ztex">IncompatibleFirmwareException</a></code></dd>
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
</li>
</ul>
<a name="eepromDisable()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eepromDisable</h4>
<pre>@Deprecated
public&nbsp;void&nbsp;eepromDisable()
                   throws <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Replaced by <a href="../ztex/Ztex1v1.html#nvDisableFirmware()"><code>nvDisableFirmware()</code></a></i></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code></dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code></dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
</li>
</ul>
<a name="nvDisableFirmware()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nvDisableFirmware</h4>
<pre>public&nbsp;void&nbsp;nvDisableFirmware()
                       throws <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Disables the firmware stored in the non-volatile memory.
 This is achived by writing a "0" to the address 0 of the memory.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if EEPROM access is not supported by the firmware.</dd>
<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>
</li>
</ul>
<a name="flashStrError(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashStrError</h4>
<pre>public static&nbsp;java.lang.String&nbsp;flashStrError(int&nbsp;errNum)</pre>
<div class="block">Converts a given error code into a String.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>errNum</code> - The error code.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
</li>
</ul>
<a name="flashStrError()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashStrError</h4>
<pre>public&nbsp;java.lang.String&nbsp;flashStrError()</pre>
<div class="block">Gets the last Flash error from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
</li>
</ul>
<a name="flash2StrError()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2StrError</h4>
<pre>public&nbsp;java.lang.String&nbsp;flash2StrError()</pre>
<div class="block">Gets the last 2nd Flash error from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
</li>
</ul>
<a name="flashState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashState</h4>
<pre>public&nbsp;boolean&nbsp;flashState()
                   throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads the the Flash memory status and information.
 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>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if Flash memory is installed.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flash2State()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2State</h4>
<pre>public&nbsp;boolean&nbsp;flash2State()
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads the the 2nd Flash memory status and information.
 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>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if 2nd Flash memory is installed.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="getFlashEC()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFlashEC</h4>
<pre>public&nbsp;int&nbsp;getFlashEC()
               throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                      <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                      <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Gets the last Flash error from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="getFlash2EC()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFlash2EC</h4>
<pre>public&nbsp;int&nbsp;getFlash2EC()
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Gets the last 2nd Flash memory error from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flashReadSector(int, int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashReadSector</h4>
<pre>public&nbsp;void&nbsp;flashReadSector(int&nbsp;sector,
                   int&nbsp;num,
                   byte[]&nbsp;buf)
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                            java.lang.IndexOutOfBoundsException</pre>
<div class="block">Reads a integer number of sectors from the Flash.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
</li>
</ul>
<a name="flashReadSector(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashReadSector</h4>
<pre>public&nbsp;void&nbsp;flashReadSector(int&nbsp;sector,
                   byte[]&nbsp;buf)
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                            java.lang.IndexOutOfBoundsException</pre>
<div class="block">Reads one sector from the Flash.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash sector size.</dd></dl>
</li>
</ul>
<a name="flash2ReadSector(int, int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2ReadSector</h4>
<pre>public&nbsp;void&nbsp;flash2ReadSector(int&nbsp;sector,
                    int&nbsp;num,
                    byte[]&nbsp;buf)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             java.lang.IndexOutOfBoundsException</pre>
<div class="block">Reads a integer number of sectors from the 2nd Flash memory.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
</li>
</ul>
<a name="flash2ReadSector(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2ReadSector</h4>
<pre>public&nbsp;void&nbsp;flash2ReadSector(int&nbsp;sector,
                    byte[]&nbsp;buf)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             java.lang.IndexOutOfBoundsException</pre>
<div class="block">Reads one sector from the 2nd Flash memory.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the 2nd Flash sector size.</dd></dl>
</li>
</ul>
<a name="flashWriteSector(int, int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashWriteSector</h4>
<pre>public&nbsp;void&nbsp;flashWriteSector(int&nbsp;sector,
                    int&nbsp;num,
                    byte[]&nbsp;buf)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes a integer number of sectors to the Flash.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
</li>
</ul>
<a name="flashWriteSector(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashWriteSector</h4>
<pre>public&nbsp;void&nbsp;flashWriteSector(int&nbsp;sector,
                    byte[]&nbsp;buf)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes one sector to the Flash.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash sector size.</dd></dl>
</li>
</ul>
<a name="flash2WriteSector(int, int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2WriteSector</h4>
<pre>public&nbsp;void&nbsp;flash2WriteSector(int&nbsp;sector,
                     int&nbsp;num,
                     byte[]&nbsp;buf)
                       throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                              java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes a integer number of sectors to the 2nd Flash.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash memory access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is to small.</dd></dl>
</li>
</ul>
<a name="flash2WriteSector(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2WriteSector</h4>
<pre>public&nbsp;void&nbsp;flash2WriteSector(int&nbsp;sector,
                     byte[]&nbsp;buf)
                       throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                              java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes one sector to the 2nd Flash memory.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if 2nd Flash access is not possible.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the 2nd Flash sector size.</dd></dl>
</li>
</ul>
<a name="flashEnabled()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashEnabled</h4>
<pre>public&nbsp;boolean&nbsp;flashEnabled()
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns true if Flash memory is installed.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if Flash memory is installed.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flash2Enabled()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2Enabled</h4>
<pre>public&nbsp;boolean&nbsp;flash2Enabled()
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns true if 2nd Flash memory is installed.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if 2nd Flash memory is installed.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flashSectorSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashSectorSize</h4>
<pre>public&nbsp;int&nbsp;flashSectorSize()
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the sector size of the Flash memory or 0, if no Flash is installed.
 If required, the sector size is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the sector size of the Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flash2SectorSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2SectorSize</h4>
<pre>public&nbsp;int&nbsp;flash2SectorSize()
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the sector size of the 2nd Flash memory or 0, if no 2nd Flash is installed.
 If required, the sector size is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the sector size of the 2nd Flash.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flashSectors()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashSectors</h4>
<pre>public&nbsp;int&nbsp;flashSectors()
                 throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                        <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                        <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the number of sectors of the Flash memory or 0, if no Flash memory is installed.
 If required, the number of sectors is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of sectors of the Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flash2Sectors()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2Sectors</h4>
<pre>public&nbsp;int&nbsp;flash2Sectors()
                  throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the number of sectors of the 2nd Flash memory or 0, if no 2nd Flash is installed.
 If required, the number of sectors is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of sectors of the 2nd Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flashSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashSize</h4>
<pre>public&nbsp;long&nbsp;flashSize()
               throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                      <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                      <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of Flash memory or 0, if no Flash memory is installed.
 If required, the Flash size is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flash2Size()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2Size</h4>
<pre>public&nbsp;long&nbsp;flash2Size()
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of 2nd Flash memory or 0, if no 2nd Flash memory is installed.
 If required, the 2nd Flash size is determined form the device first.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="printMmcState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printMmcState</h4>
<pre>public&nbsp;boolean&nbsp;printMmcState()
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
 <b>Only use this method if such kind of Flash is installed.</b></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if flash is installed and enabled.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="printMmc2State()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printMmc2State</h4>
<pre>public&nbsp;boolean&nbsp;printMmc2State()
                       throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Prints out some debug information about *SD/MMC Flash cards in SPI mode.<br>
 <b>Only use this method if such kind of Flash is installed as 2nd Flash memory.</b></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if flash is installed and enabled.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="flashUploadBitstream(java.io.InputStream, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashUploadBitstream</h4>
<pre>public&nbsp;long&nbsp;flashUploadBitstream(java.io.InputStream&nbsp;inputStream,
                        int&nbsp;bs)
                          throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                                 <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                 <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                 <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Uploads a Bitstream to the Flash.
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
 it is possible to construct fully autonomous devices.
 <p>
 If configuration data is present information about bitstream are stored there and Bitstream starts
 at sector 0.
 <p>
 On all other devices the information about the bitstream is stored in sector 0.
 This so called boot sector has the following format:
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
   <tr>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0..7</td>
     <td bgcolor="#ffffff" valign="top">ID, must be "ZTEXBS",1,1</td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">8..9</td>
     <td bgcolor="#ffffff" valign="top">The number of sectors used to store the Bitstream. 0 means no Bitstream.</td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">10..11</td>
     <td bgcolor="#ffffff" valign="top">The number of bytes in the last sector.</td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">12..sectorSize-1</td>
     <td bgcolor="#ffffff" valign="top">This data is reserved for future use and preserved by this method.</td>
   </tr>
 </table>
 <p>
 The total size of the Bitstream is computed as ((bs[8] | (bs[9]<<8) - 1) * flash_sector_size + ((bs[10] | (bs[11]<<8))
 where bs[i] denotes byte i of the boot sector.
 <p>
 The first sector of the Bitstream is sector 1.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<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>
</li>
</ul>
<a name="flashUploadBitstream(java.lang.String, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashUploadBitstream</h4>
<pre>public&nbsp;long&nbsp;flashUploadBitstream(java.lang.String&nbsp;fwFileName,
                        int&nbsp;bs)
                          throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                                 <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                 <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                 <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Uploads a Bitstream to the Flash.
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
 it is possible to construct fully autonomous devices.
 See <a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)"><code>flashUploadBitstream(InputStream,int)</code></a> for further details.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<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>
</li>
</ul>
<a name="flashUploadBitstream(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashUploadBitstream</h4>
<pre>public&nbsp;long&nbsp;flashUploadBitstream(java.lang.String&nbsp;fwFileName)
                          throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                                 <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                 <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                 <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Uploads a Bitstream to the Flash.
 This allows the firmware to load the Bitstream from Flash. Together with installation of the firmware in EEPROM
 it is possible to construct fully autonomous devices.
 See <a href="../ztex/Ztex1v1.html#flashUploadBitstream(java.io.InputStream,%20int)"><code>flashUploadBitstream(InputStream,int)</code></a> for further details.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd>
<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>
</li>
</ul>
<a name="flashResetBitstream()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashResetBitstream</h4>
<pre>public&nbsp;void&nbsp;flashResetBitstream()
                         throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Clears a Bitstream from the Flash.
 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>.
 If no boot sector is installed the method returns without any write action.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
</li>
</ul>
<a name="flashFirstFreeSector()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashFirstFreeSector</h4>
<pre>public&nbsp;int&nbsp;flashFirstFreeSector()
                         throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the first free sector of the Flash memory.
 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>
<dl><dt><span class="strong">Returns:</span></dt><dd>the first free sector of the Flash memory.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
</li>
</ul>
<a name="toHumanStr(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toHumanStr</h4>
<pre>public&nbsp;java.lang.String&nbsp;toHumanStr(long&nbsp;i)</pre>
<div class="block">Converts an integer into a base 1024 formatted string. 
 E.g. the number 1234567890 is converted to 1G153M384K722.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - an integer which may be large.</dd>
<dt><span class="strong">Returns:</span></dt><dd>a human readable string representation.</dd></dl>
</li>
</ul>
<a name="flashInfo()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flashInfo</h4>
<pre>public&nbsp;java.lang.String&nbsp;flashInfo()</pre>
<div class="block">Returns information about Flash memory. 
 The result contains the size and how much of the Flash is us used / reserved for / by the Bitstream.
 If no Flash memeory is suppported an empty string is returned.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Information about Flash memory.</dd></dl>
</li>
</ul>
<a name="flash2Info()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flash2Info</h4>
<pre>public&nbsp;java.lang.String&nbsp;flash2Info()</pre>
<div class="block">Returns information about 2nd Flash memory. 
 The result contains the size and how much of the Flash available.
 If no 2nd Flash memeory is suppported an empty string is returned.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Information about 2nd Flash memory.</dd></dl>
</li>
</ul>
<a name="debugStackSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debugStackSize</h4>
<pre>public&nbsp;int&nbsp;debugStackSize()
                   throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of message stack in messages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of message stack in messages.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
</li>
</ul>
<a name="debugMsgSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debugMsgSize</h4>
<pre>public&nbsp;int&nbsp;debugMsgSize()
                 throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                        <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                        <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of messages in bytes.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the size of messages in bytes.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
</li>
</ul>
<a name="debugLastMsg()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debugLastMsg</h4>
<pre>public final&nbsp;int&nbsp;debugLastMsg()</pre>
<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>
<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>
</li>
</ul>
<a name="debugReadMessages(boolean, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debugReadMessages</h4>
<pre>public&nbsp;int&nbsp;debugReadMessages(boolean&nbsp;all,
                    byte[]&nbsp;buf)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads debug messages from message stack.
 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>.
 The number of the latest message is returned by <a href="../ztex/Ztex1v1.html#debugLastMsg()"><code>debugLastMsg()</code></a>.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>the size of messages stored in buffer.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if Flash memory access is not possible.</dd></dl>
</li>
</ul>
<a name="xmegaStrError(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaStrError</h4>
<pre>public&nbsp;java.lang.String&nbsp;xmegaStrError(int&nbsp;errNum)</pre>
<div class="block">Converts a given error code into a String.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>errNum</code> - The error code.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
</li>
</ul>
<a name="xmegaStrError()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaStrError</h4>
<pre>public&nbsp;java.lang.String&nbsp;xmegaStrError()</pre>
<div class="block">Gets the last ATxmega error from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>an error message.</dd></dl>
</li>
</ul>
<a name="xmegaState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaState</h4>
<pre>public&nbsp;int&nbsp;xmegaState()
               throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                      <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                      <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Read ATxmega error and status information from the device.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The last error code.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaEnabled()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEnabled</h4>
<pre>public&nbsp;boolean&nbsp;xmegaEnabled()
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns true if ATxmega controller is available.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if ATxmega controller is available.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFlashPages()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFlashPages</h4>
<pre>public&nbsp;int&nbsp;xmegaFlashPages()
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the number of the ATxmega Flash pages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of the ATxmega Flash pages.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaEepromPages()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEepromPages</h4>
<pre>public&nbsp;int&nbsp;xmegaEepromPages()
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the number of the ATxmega EEPROM pages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The number of the ATxmega EEPROM pages.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFlashPageSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFlashPageSize</h4>
<pre>public&nbsp;int&nbsp;xmegaFlashPageSize()
                       throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of the ATxmega Flash pages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The size of the ATxmega Flash pages.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaEepromPageSize()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEepromPageSize</h4>
<pre>public&nbsp;int&nbsp;xmegaEepromPageSize()
                        throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                               <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                               <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the size of the ATXmega EEPROM pages.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The size of the ATXmega EEPROM pages.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaReset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaReset</h4>
<pre>public&nbsp;void&nbsp;xmegaReset()
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Resets the ATxmega.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaNvmRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaNvmRead</h4>
<pre>public&nbsp;void&nbsp;xmegaNvmRead(int&nbsp;addr,
                byte[]&nbsp;buf,
                int&nbsp;length)
                  throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from the NVM of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFlashRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFlashRead</h4>
<pre>public&nbsp;void&nbsp;xmegaFlashRead(int&nbsp;addr,
                  byte[]&nbsp;buf,
                  int&nbsp;length)
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from Flash memory of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaEepromRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEepromRead</h4>
<pre>public&nbsp;void&nbsp;xmegaEepromRead(int&nbsp;addr,
                   byte[]&nbsp;buf,
                   int&nbsp;length)
                     throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from EEPROM memory of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFuseRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFuseRead</h4>
<pre>public&nbsp;void&nbsp;xmegaFuseRead(int&nbsp;addr,
                 byte[]&nbsp;buf,
                 int&nbsp;length)
                   throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from Fuse memory of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFuseRead(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFuseRead</h4>
<pre>public&nbsp;int&nbsp;xmegaFuseRead(int&nbsp;addr)
                  throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data one Fuse of ATxmega.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The index of th Fuse.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The Fuse read.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaFlashPageWrite(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFlashPageWrite</h4>
<pre>public&nbsp;void&nbsp;xmegaFlashPageWrite(int&nbsp;addr,
                       byte[]&nbsp;buf)
                         throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                                java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes data to Flash memory of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the Flash page size.</dd></dl>
</li>
</ul>
<a name="xmegaEepromPageWrite(int, byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaEepromPageWrite</h4>
<pre>public&nbsp;void&nbsp;xmegaEepromPageWrite(int&nbsp;addr,
                        byte[]&nbsp;buf)
                          throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                 <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                 <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                                 java.lang.IndexOutOfBoundsException</pre>
<div class="block">Writes data to EEPROM memory of ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than the EEPROM page size.</dd></dl>
</li>
</ul>
<a name="xmegaFuseWrite(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaFuseWrite</h4>
<pre>public&nbsp;void&nbsp;xmegaFuseWrite(int&nbsp;addr,
                  int&nbsp;val)
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Writes one Fuse of the ATxmega.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="xmegaWriteFirmware(ztex.ImgFile)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaWriteFirmware</h4>
<pre>public&nbsp;long&nbsp;xmegaWriteFirmware(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a>&nbsp;imgFile)
                        throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                               <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                               <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                               <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></pre>
<div class="block">Uploads firmware to the flash memory</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFile</code> - The firmware / data image.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the upload time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if the verification fails.</dd></dl>
</li>
</ul>
<a name="xmegaWriteEeprom(ztex.ImgFile)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>xmegaWriteEeprom</h4>
<pre>public&nbsp;long&nbsp;xmegaWriteEeprom(<a href="../ztex/ImgFile.html" title="class in ztex">ImgFile</a>&nbsp;imgFile)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             <a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></pre>
<div class="block">Uploads data to the EEPROM memory</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>imgFile</code> - The firmware / data image.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the upload time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
<dd><code><a href="../ztex/FirmwareUploadException.html" title="class in ztex">FirmwareUploadException</a></code> - if the verification fails.</dd></dl>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
<div class="block">Returns a lot of useful information about the corresponding device.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../ztex/Ztex1.html#toString()">toString</a></code>&nbsp;in class&nbsp;<code><a href="../ztex/Ztex1.html" title="class in ztex">Ztex1</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a lot of useful information about the corresponding device.</dd></dl>
</li>
</ul>
<a name="capabilityInfo(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capabilityInfo</h4>
<pre>public&nbsp;java.lang.String&nbsp;capabilityInfo(java.lang.String&nbsp;pf)</pre>
<div class="block">Creates a String with capability information.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pf</code> - A separator between the single capabilities, e.g. ", "</dd>
<dt><span class="strong">Returns:</span></dt><dd>a string of the supported capabilities.</dd></dl>
</li>
</ul>
<a name="configureFpgaHS(java.io.InputStream, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpgaHS</h4>
<pre>public&nbsp;long&nbsp;configureFpgaHS(java.io.InputStream&nbsp;inputStream,
                   boolean&nbsp;force,
                   int&nbsp;bs)
                     throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                            <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                            <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="configureFpgaHS(java.lang.String, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpgaHS</h4>
<pre>public&nbsp;long&nbsp;configureFpgaHS(java.lang.String&nbsp;fwFileName,
                   boolean&nbsp;force,
                   int&nbsp;bs)
                     throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                            <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                            <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                            <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                            <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                            <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using high speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="configureFpga(java.io.InputStream, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpga</h4>
<pre>public&nbsp;long&nbsp;configureFpga(java.io.InputStream&nbsp;inputStream,
                 boolean&nbsp;force,
                 int&nbsp;bs)
                   throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                          <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                          java.io.IOException</pre>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - if FPGA configuration is not supported by the firmware.</dd>
<dd><code>java.io.IOException</code> - if mark/reset is not supported</dd></dl>
</li>
</ul>
<a name="configureFpga(java.lang.String, boolean, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpga</h4>
<pre>public&nbsp;long&nbsp;configureFpga(java.lang.String&nbsp;fwFileName,
                 boolean&nbsp;force,
                 int&nbsp;bs)
                   throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                          <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="configureFpga(java.lang.String, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configureFpga</h4>
<pre>public&nbsp;long&nbsp;configureFpga(java.lang.String&nbsp;fwFileName,
                 boolean&nbsp;force)
                   throws <a href="../ztex/BitstreamReadException.html" title="class in ztex">BitstreamReadException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/BitstreamUploadException.html" title="class in ztex">BitstreamUploadException</a>,
                          <a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Upload a Bitstream to the FPGA using high speed mode (if available) or low speed mode.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>Configuration time in ms.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<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>
<dd><code><a href="../ztex/AlreadyConfiguredException.html" title="class in ztex">AlreadyConfiguredException</a></code> - if the FPGA is already configured.</dd>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="macEepromWrite(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>macEepromWrite</h4>
<pre>public&nbsp;void&nbsp;macEepromWrite(int&nbsp;addr,
                  byte[]&nbsp;buf,
                  int&nbsp;length)
                    throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                           <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                           <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Writes data to the MAC EEPROM.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="macEepromRead(int, byte[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>macEepromRead</h4>
<pre>public&nbsp;void&nbsp;macEepromRead(int&nbsp;addr,
                 byte[]&nbsp;buf,
                 int&nbsp;length)
                   throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads data from the MAC EEPROM.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="macEepromState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>macEepromState</h4>
<pre>public&nbsp;boolean&nbsp;macEepromState()
                       throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                              <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                              <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads the current MAC EEPROM status.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if MAC EEPROM is ready.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="macRead(byte[])">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>macRead</h4>
<pre>public&nbsp;void&nbsp;macRead(byte[]&nbsp;buf)
             throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                    <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                    <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                    java.lang.IndexOutOfBoundsException</pre>
<div class="block">Reads MAC address from MAC EEPROM.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>buf</code> - A buffer with a minimum size of 6 bytes.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the buffer is smaller than 6 bytes.</dd></dl>
</li>
</ul>
<a name="numberOfFpgas()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numberOfFpgas</h4>
<pre>public&nbsp;int&nbsp;numberOfFpgas()
                  throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
<div class="block">Returns the number of FPGA's</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>number of FPGA's</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="selectFpga(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectFpga</h4>
<pre>public&nbsp;void&nbsp;selectFpga(int&nbsp;num)
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       java.lang.IndexOutOfBoundsException</pre>
<div class="block">Select a FPGA</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If FPGA number is not in range.</dd></dl>
</li>
</ul>
<a name="tempSensorRead(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tempSensorRead</h4>
<pre>public&nbsp;double&nbsp;tempSensorRead(int&nbsp;idx)
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                             java.lang.IndexOutOfBoundsException</pre>
<div class="block">Read temperature sensor data.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>idx</code> - Temperature sensor index</dd>
<dt><span class="strong">Returns:</span></dt><dd>Temperature in deg. C</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - If a communication error occurs.</dd>
<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>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If idx is not in range.</dd></dl>
</li>
</ul>
<a name="printSpiState()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printSpiState</h4>
<pre>public&nbsp;boolean&nbsp;printSpiState()
                      throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Prints out some debug information about SPI Flash.<br>
 <b>Only use this method if such kind of Flash is installed.</b></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>true if flash is enabled</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<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>
</li>
</ul>
<a name="debug2GetMessage(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2GetMessage</h4>
<pre>public&nbsp;byte[]&nbsp;debug2GetMessage(int&nbsp;idx)
                        throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                               <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                               <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads a debug message with given Index in raw format.
 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.
 Data format is:
 <table bgcolor="#404040" cellspacing=1 cellpadding=4>
   <tr>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Bytes</b></td>
     <td bgcolor="#d0d0d0" valign="bottom"><b>Description</b></td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">0</td>
     <td bgcolor="#ffffff" valign="top">Type</td>
   </tr>
   <tr>
     <td bgcolor="#ffffff" valign="top">1..length</td>
     <td bgcolor="#ffffff" valign="top">Message</td>
   </tr>
 </table></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>idx</code> - Index of message.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A buffer with the raw message. (Length of the message is result.length-1)</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="debug2LastIdx()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2LastIdx</h4>
<pre>public&nbsp;int&nbsp;debug2LastIdx()
                  throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns index of last message + 1</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>index of last message + 1</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="debug2EC()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2EC</h4>
<pre>public&nbsp;int&nbsp;debug2EC()
             throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                    <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                    <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns an error code if a fatal error occurred (0 if no error occurred)</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>error code.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="debug2Cnt()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2Cnt</h4>
<pre>public&nbsp;int&nbsp;debug2Cnt()
              throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                     <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                     <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns the number of messages in buffer.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Returns the number of buffered messages.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="debug2GetNextLogMessage()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2GetNextLogMessage</h4>
<pre>public&nbsp;java.lang.String&nbsp;debug2GetNextLogMessage()
                                         throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                                <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads the next log message in string format.
 The message index is <a href="../ztex/Ztex1v1.html#debug2LogIdx"><code>debug2LogIdx</code></a> which is incremented by this function.
 null is returned if no log message is available.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The log message.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="debug2PrintNextLogMessages(java.io.PrintStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>debug2PrintNextLogMessages</h4>
<pre>public&nbsp;void&nbsp;debug2PrintNextLogMessages(java.io.PrintStream&nbsp;out)
                                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                       <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></pre>
<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.
 Returns quietly if debug2 functionality is not supported.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - destination for printing the messages.</dd>
<dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd></dl>
</li>
</ul>
<a name="getUsb3Errors()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUsb3Errors</h4>
<pre>public&nbsp;void&nbsp;getUsb3Errors()
                   throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<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>
<dl><dt><span class="strong">Throws:</span></dt>
<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>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code> - if a communication error occurs.</dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code> - Debug2 feature is not supported by firmware.</dd></dl>
</li>
</ul>
<a name="defaultVersion()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultVersion</h4>
<pre>public&nbsp;int&nbsp;defaultVersion()
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
<div class="block">Returns version of the default interface or 0 if default interface is not present.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>version of the default interface</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultCheckVersion(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultCheckVersion</h4>
<pre>public&nbsp;void&nbsp;defaultCheckVersion(int&nbsp;version)
                         throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                                <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                                <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Checks version of the default interface. 
 If version number is less than required an exception it thrown. 
 If the firmware is not up-to-date a warning is issued.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>version</code> - The minimum required version. Minimum valid version is 1.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultOutEP()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultOutEP</h4>
<pre>public&nbsp;int&nbsp;defaultOutEP()
                 throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                        <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                        <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns output Endpoint of default interface 
 used for high speed communication. The direction is seen from the host.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>output Endpoint for high speed communication of the default interface</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultInEP()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultInEP</h4>
<pre>public&nbsp;int&nbsp;defaultInEP()
                throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                       <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                       <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns input Endpoint of default interface 
 used for high speed communication. The direction is seen from the host. The result is or'ed with 128.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>input Endpoint for high speed communication of the default interface</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultSubVersion()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultSubVersion</h4>
<pre>public&nbsp;int&nbsp;defaultSubVersion()
                      throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                             <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                             <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Returns sub-version of the default interface.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>sub-version of the default interface</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<dd><code>UsbExcption</code> - if an error occurred while attempting to read default interface information.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd>
<dd><code><a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></code></dd></dl>
</li>
</ul>
<a name="defaultReset(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultReset</h4>
<pre>public&nbsp;void&nbsp;defaultReset(boolean&nbsp;leave)
                  throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Assert the reset signal.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultReset()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultReset</h4>
<pre>public&nbsp;void&nbsp;defaultReset()
                  throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Assert the reset signal.
 Equvalent to defaultReset(false), see <a href="../ztex/Ztex1v1.html#defaultReset(boolean)"><code>defaultReset(boolean)</code></a></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultGpioCtl(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultGpioCtl</h4>
<pre>public&nbsp;int&nbsp;defaultGpioCtl(int&nbsp;mask,
                 int&nbsp;value)
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a></pre>
<div class="block">Reads and modifies the 4 GPIO pins.</div>
<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>
<dt><span class="strong">Returns:</span></dt><dd>current values of the GPIO's</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultLsiSet(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLsiSet</h4>
<pre>public&nbsp;void&nbsp;defaultLsiSet(int&nbsp;addr,
                 int&nbsp;val)
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                          java.lang.IndexOutOfBoundsException</pre>
<div class="block">Send data to the low speed interface of default firmwares.
 It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
 This function sets one register.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultLsiSet(int, int[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLsiSet</h4>
<pre>public&nbsp;void&nbsp;defaultLsiSet(int&nbsp;addr,
                 int[]&nbsp;val,
                 int&nbsp;length)
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                          java.lang.IndexOutOfBoundsException</pre>
<div class="block">Send data to the low speed interface of default firmwares.
 It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
 This function sets a sequential set of registers.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultLsiSet(int[], int[], int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLsiSet</h4>
<pre>public&nbsp;void&nbsp;defaultLsiSet(int[]&nbsp;addr,
                 int[]&nbsp;val,
                 int&nbsp;length)
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                          java.lang.IndexOutOfBoundsException</pre>
<div class="block">Send data to the low speed interface of default firmwares.
 It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
 This function sets a random set of registers.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultLsiGet(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultLsiGet</h4>
<pre>public&nbsp;int&nbsp;defaultLsiGet(int&nbsp;addr)
                  throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                         <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                         <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                         java.lang.IndexOutOfBoundsException</pre>
<div class="block">Read data from the low speed interface of default firmwares.
 It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
 This function reads one register.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>addr</code> - The address. Valid values are 0 to 255.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The register value with a width of 32 Bit.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range.</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
<a name="defaultLsiGet(int, int[], int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>defaultLsiGet</h4>
<pre>public&nbsp;void&nbsp;defaultLsiGet(int&nbsp;addr,
                 int[]&nbsp;val,
                 int&nbsp;length)
                   throws <a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a>,
                          <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a>,
                          <a href="../ztex/CapabilityException.html" title="class in ztex">CapabilityException</a>,
                          java.lang.IndexOutOfBoundsException</pre>
<div class="block">Read data from the low speed interface of default firmwares.
 It's implemented as a SRAM-like interface and is typically used used to read/write configuration data, debug information or other things.
 This function reads a sequencial set of registers.</div>
<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>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../ztex/InvalidFirmwareException.html" title="class in ztex">InvalidFirmwareException</a></code> - if interface 1 is not supported.</dd>
<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>
<dd><code>UsbExcption</code> - if a communication error occurred.</dd>
<dd><code>java.lang.IndexOutOfBoundsException</code> - If the address is out of range or length is > 256</dd>
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../ztex/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../index-all.html">Index</a></li>
<li><a href="../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../ztex/Ztex1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
<li><a href="../ztex/ZtexContext.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../index.html?ztex/Ztex1v1.html" target="_top">Frames</a></li>
<li><a href="Ztex1v1.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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