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

Subversion Repositories usb_fpga_1_2

[/] [usb_fpga_1_2/] [trunk/] [docs/] [java/] [ch/] [ntb/] [usb/] [Device.html] - Diff between revs 8 and 9

Only display areas with differences | Details | Blame | View Log

Rev 8 Rev 9
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<!--NewPage-->
<HTML>
<HTML>
<HEAD>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_02) on Mon Jul 18 15:52:41 CEST 2011 -->
<!-- Generated by javadoc (build 1.6.0_18) on Thu Apr 12 22:51:27 CEST 2012 -->
<TITLE>
<TITLE>
Device
Device
</TITLE>
</TITLE>
 
 
<META NAME="date" CONTENT="2011-07-18">
<META NAME="date" CONTENT="2012-04-12">
 
 
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
 
 
<SCRIPT type="text/javascript">
<SCRIPT type="text/javascript">
function windowTitle()
function windowTitle()
{
{
    if (location.href.indexOf('is-external=true') == -1) {
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="Device";
        parent.document.title="Device";
    }
    }
}
}
</SCRIPT>
</SCRIPT>
<NOSCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</NOSCRIPT>
 
 
</HEAD>
</HEAD>
 
 
<BODY BGCOLOR="white" onload="windowTitle();">
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<HR>
 
 
 
 
<!-- ========= START OF TOP NAVBAR ======= -->
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
  </TR>
</TABLE>
</TABLE>
</TD>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</EM>
</TD>
</TD>
</TR>
</TR>
 
 
<TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../ch/ntb/usb/LibLoader.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
&nbsp;<A HREF="../../../ch/ntb/usb/LibLoader.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?ch/ntb/usb/Device.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  <A HREF="../../../index.html?ch/ntb/usb/Device.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Device.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Device.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
&nbsp;<SCRIPT type="text/javascript">
  <!--
  <!--
  if(window==top) {
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  }
  //-->
  //-->
</SCRIPT>
</SCRIPT>
<NOSCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</NOSCRIPT>
 
 
 
 
</FONT></TD>
</FONT></TD>
</TR>
</TR>
<TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TR>
</TABLE>
</TABLE>
<A NAME="skip-navbar_top"></A>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ========= END OF TOP NAVBAR ========= -->
 
 
<HR>
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<H2>
<FONT SIZE="-1">
<FONT SIZE="-1">
ch.ntb.usb</FONT>
ch.ntb.usb</FONT>
<BR>
<BR>
Class Device</H2>
Class Device</H2>
<PRE>
<PRE>
java.lang.Object
java.lang.Object
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>ch.ntb.usb.Device</B>
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>ch.ntb.usb.Device</B>
</PRE>
</PRE>
<HR>
<HR>
<DL>
<DL>
<DT><PRE>public class <B>Device</B><DT>extends java.lang.Object</DL>
<DT><PRE>public class <B>Device</B><DT>extends java.lang.Object</DL>
</PRE>
</PRE>
 
 
<P>
<P>
This class represents an USB device.<br>
This class represents an USB device.<br>
 To get an instance of an USB device use <code>USB.getDevice(...)</code>.
 To get an instance of an USB device use <code>USB.getDevice(...)</code>.
<P>
<P>
 
 
<P>
<P>
<HR>
<HR>
 
 
<P>
<P>
 
 
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
 
 
<A NAME="constructor_summary"><!-- --></A>
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
<B>Constructor Summary</B></FONT></TH>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#Device(short, short)">Device</A></B>(short&nbsp;idVendor,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#Device(short, short)">Device</A></B>(short&nbsp;idVendor,
       short&nbsp;idProduct)</CODE>
       short&nbsp;idProduct)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected </CODE></FONT></TD>
<CODE>protected </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#Device(short, short, java.lang.String)">Device</A></B>(short&nbsp;idVendor,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#Device(short, short, java.lang.String)">Device</A></B>(short&nbsp;idVendor,
       short&nbsp;idProduct,
       short&nbsp;idProduct,
       java.lang.String&nbsp;filename)</CODE>
       java.lang.String&nbsp;filename)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TR>
</TABLE>
</TABLE>
&nbsp;
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<!-- ========== METHOD SUMMARY =========== -->
 
 
<A NAME="method_summary"><!-- --></A>
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
<B>Method Summary</B></FONT></TH>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#close()">close</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#close()">close</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Release the claimed interface and close the opened device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Release the claimed interface and close the opened device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)">controlMsg</A></B>(int&nbsp;requestType,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#controlMsg(int, int, int, int, byte[], int, int, boolean)">controlMsg</A></B>(int&nbsp;requestType,
           int&nbsp;request,
           int&nbsp;request,
           int&nbsp;value,
           int&nbsp;value,
           int&nbsp;index,
           int&nbsp;index,
           byte[]&nbsp;data,
           byte[]&nbsp;data,
           int&nbsp;size,
           int&nbsp;size,
           int&nbsp;timeout,
           int&nbsp;timeout,
           boolean&nbsp;reopenOnTimeout)</CODE>
           boolean&nbsp;reopenOnTimeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a control request to the default control pipe on a device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a control request to the default control pipe on a device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getAltinterface()">getAltinterface</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getAltinterface()">getAltinterface</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alternative interface.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the alternative interface.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html" title="class in ch.ntb.usb">Usb_Config_Descriptor</A>[]</CODE></FONT></TD>
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html" title="class in ch.ntb.usb">Usb_Config_Descriptor</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getConfigDescriptors()">getConfigDescriptors</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getConfigDescriptors()">getConfigDescriptors</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the configuration descriptors associated with this device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the configuration descriptors associated with this device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getConfiguration()">getConfiguration</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getConfiguration()">getConfiguration</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current configuration used.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current configuration used.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A></CODE></FONT></TD>
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getDevice()">getDevice</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getDevice()">getDevice</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Usb_Device instance associated with this device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the Usb_Device instance associated with this device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html" title="class in ch.ntb.usb">Usb_Device_Descriptor</A></CODE></FONT></TD>
<CODE>&nbsp;<A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html" title="class in ch.ntb.usb">Usb_Device_Descriptor</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getDeviceDescriptor()">getDeviceDescriptor</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getDeviceDescriptor()">getDeviceDescriptor</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the device descriptor associated with this device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the device descriptor associated with this device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getFilename()">getFilename</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getFilename()">getFilename</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the optional filename which is set when there are multiple
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the optional filename which is set when there are multiple
 devices with the same vendor and product id.</TD>
 devices with the same vendor and product id.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getIdProduct()">getIdProduct</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getIdProduct()">getIdProduct</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the product ID of the device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the product ID of the device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getIdVendor()">getIdVendor</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getIdVendor()">getIdVendor</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the vendor ID of the device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the vendor ID of the device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getInterface()">getInterface</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getInterface()">getInterface</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current interface.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current interface.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getMaxPacketSize()">getMaxPacketSize</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#getMaxPacketSize()">getMaxPacketSize</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum packet size in bytes which is allowed to be
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum packet size in bytes which is allowed to be
 transmitted at once.</TD>
 transmitted at once.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#isOpen()">isOpen</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#isOpen()">isOpen</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the device is open.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check if the device is open.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)">open</A></B>(int&nbsp;configuration,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)">open</A></B>(int&nbsp;configuration,
     int&nbsp;interface_,
     int&nbsp;interface_,
     int&nbsp;altinterface)</CODE>
     int&nbsp;altinterface)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the device and claims the specified configuration, interface and
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Opens the device and claims the specified configuration, interface and
 altinterface.</TD>
 altinterface.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#readBulk(int, byte[], int, int, boolean)">readBulk</A></B>(int&nbsp;in_ep_address,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#readBulk(int, byte[], int, int, boolean)">readBulk</A></B>(int&nbsp;in_ep_address,
         byte[]&nbsp;data,
         byte[]&nbsp;data,
         int&nbsp;size,
         int&nbsp;size,
         int&nbsp;timeout,
         int&nbsp;timeout,
         boolean&nbsp;reopenOnTimeout)</CODE>
         boolean&nbsp;reopenOnTimeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from the device using a bulk transfer.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from the device using a bulk transfer.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#readInterrupt(int, byte[], int, int, boolean)">readInterrupt</A></B>(int&nbsp;in_ep_address,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#readInterrupt(int, byte[], int, int, boolean)">readInterrupt</A></B>(int&nbsp;in_ep_address,
              byte[]&nbsp;data,
              byte[]&nbsp;data,
              int&nbsp;size,
              int&nbsp;size,
              int&nbsp;timeout,
              int&nbsp;timeout,
              boolean&nbsp;reopenOnTimeout)</CODE>
              boolean&nbsp;reopenOnTimeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from the device using a interrupt transfer.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read data from the device using a interrupt transfer.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#reset()">reset</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#reset()">reset</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends an USB reset to the device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends an USB reset to the device.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#setResetOnFirstOpen(boolean, int)">setResetOnFirstOpen</A></B>(boolean&nbsp;enable,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#setResetOnFirstOpen(boolean, int)">setResetOnFirstOpen</A></B>(boolean&nbsp;enable,
                    int&nbsp;timeout)</CODE>
                    int&nbsp;timeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If enabled, the device is reset when first opened.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If enabled, the device is reset when first opened.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()">updateDescriptors</A></B>()</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()">updateDescriptors</A></B>()</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the device and descriptor information from the bus.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the device and descriptor information from the bus.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#writeBulk(int, byte[], int, int, boolean)">writeBulk</A></B>(int&nbsp;out_ep_address,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#writeBulk(int, byte[], int, int, boolean)">writeBulk</A></B>(int&nbsp;out_ep_address,
          byte[]&nbsp;data,
          byte[]&nbsp;data,
          int&nbsp;size,
          int&nbsp;size,
          int&nbsp;timeout,
          int&nbsp;timeout,
          boolean&nbsp;reopenOnTimeout)</CODE>
          boolean&nbsp;reopenOnTimeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write data to the device using a bulk transfer.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write data to the device using a bulk transfer.</TD>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#writeInterrupt(int, byte[], int, int, boolean)">writeInterrupt</A></B>(int&nbsp;out_ep_address,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Device.html#writeInterrupt(int, byte[], int, int, boolean)">writeInterrupt</A></B>(int&nbsp;out_ep_address,
               byte[]&nbsp;data,
               byte[]&nbsp;data,
               int&nbsp;size,
               int&nbsp;size,
               int&nbsp;timeout,
               int&nbsp;timeout,
               boolean&nbsp;reopenOnTimeout)</CODE>
               boolean&nbsp;reopenOnTimeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write data to the device using a interrupt transfer.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write data to the device using a interrupt transfer.</TD>
</TR>
</TR>
</TABLE>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TR>
</TABLE>
</TABLE>
&nbsp;
&nbsp;
<P>
<P>
 
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
 
 
<A NAME="constructor_detail"><!-- --></A>
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
<B>Constructor Detail</B></FONT></TH>
</TR>
</TR>
</TABLE>
</TABLE>
 
 
<A NAME="Device(short, short)"><!-- --></A><H3>
<A NAME="Device(short, short)"><!-- --></A><H3>
Device</H3>
Device</H3>
<PRE>
<PRE>
protected <B>Device</B>(short&nbsp;idVendor,
protected <B>Device</B>(short&nbsp;idVendor,
                 short&nbsp;idProduct)</PRE>
                 short&nbsp;idProduct)</PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="Device(short, short, java.lang.String)"><!-- --></A><H3>
<A NAME="Device(short, short, java.lang.String)"><!-- --></A><H3>
Device</H3>
Device</H3>
<PRE>
<PRE>
protected <B>Device</B>(short&nbsp;idVendor,
protected <B>Device</B>(short&nbsp;idVendor,
                 short&nbsp;idProduct,
                 short&nbsp;idProduct,
                 java.lang.String&nbsp;filename)</PRE>
                 java.lang.String&nbsp;filename)</PRE>
<DL>
<DL>
</DL>
</DL>
 
 
<!-- ============ METHOD DETAIL ========== -->
<!-- ============ METHOD DETAIL ========== -->
 
 
<A NAME="method_detail"><!-- --></A>
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
<B>Method Detail</B></FONT></TH>
</TR>
</TR>
</TABLE>
</TABLE>
 
 
<A NAME="updateDescriptors()"><!-- --></A><H3>
<A NAME="updateDescriptors()"><!-- --></A><H3>
updateDescriptors</H3>
updateDescriptors</H3>
<PRE>
<PRE>
public void <B>updateDescriptors</B>()
public void <B>updateDescriptors</B>()
                       throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
                       throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Updates the device and descriptor information from the bus.<br>
<DD>Updates the device and descriptor information from the bus.<br>
 The descriptors can be read with <A HREF="../../../ch/ntb/usb/Device.html#getDeviceDescriptor()"><CODE>getDeviceDescriptor()</CODE></A> and
 The descriptors can be read with <A HREF="../../../ch/ntb/usb/Device.html#getDeviceDescriptor()"><CODE>getDeviceDescriptor()</CODE></A> and
 <A HREF="../../../ch/ntb/usb/Device.html#getConfigDescriptors()"><CODE>getConfigDescriptors()</CODE></A>.
 <A HREF="../../../ch/ntb/usb/Device.html#getConfigDescriptors()"><CODE>getConfigDescriptors()</CODE></A>.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getDeviceDescriptor()"><!-- --></A><H3>
<A NAME="getDeviceDescriptor()"><!-- --></A><H3>
getDeviceDescriptor</H3>
getDeviceDescriptor</H3>
<PRE>
<PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html" title="class in ch.ntb.usb">Usb_Device_Descriptor</A> <B>getDeviceDescriptor</B>()</PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Device_Descriptor.html" title="class in ch.ntb.usb">Usb_Device_Descriptor</A> <B>getDeviceDescriptor</B>()</PRE>
<DL>
<DL>
<DD>Returns the device descriptor associated with this device.<br>
<DD>Returns the device descriptor associated with this device.<br>
 The descriptor is updated by calling <A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()"><CODE>updateDescriptors()</CODE></A> or
 The descriptor is updated by calling <A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()"><CODE>updateDescriptors()</CODE></A> or
 <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A>.
 <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A>.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the device descriptor associated with this device or
<DT><B>Returns:</B><DD>the device descriptor associated with this device or
         <code>null</code></DL>
         <code>null</code></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getConfigDescriptors()"><!-- --></A><H3>
<A NAME="getConfigDescriptors()"><!-- --></A><H3>
getConfigDescriptors</H3>
getConfigDescriptors</H3>
<PRE>
<PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html" title="class in ch.ntb.usb">Usb_Config_Descriptor</A>[] <B>getConfigDescriptors</B>()</PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html" title="class in ch.ntb.usb">Usb_Config_Descriptor</A>[] <B>getConfigDescriptors</B>()</PRE>
<DL>
<DL>
<DD>Returns the configuration descriptors associated with this device.<br>
<DD>Returns the configuration descriptors associated with this device.<br>
 The descriptors are updated by calling <A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()"><CODE>updateDescriptors()</CODE></A> or
 The descriptors are updated by calling <A HREF="../../../ch/ntb/usb/Device.html#updateDescriptors()"><CODE>updateDescriptors()</CODE></A> or
 <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A>.
 <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A>.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the configuration descriptors associated with this device or
<DT><B>Returns:</B><DD>the configuration descriptors associated with this device or
         <code>null</code></DL>
         <code>null</code></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="open(int, int, int)"><!-- --></A><H3>
<A NAME="open(int, int, int)"><!-- --></A><H3>
open</H3>
open</H3>
<PRE>
<PRE>
public void <B>open</B>(int&nbsp;configuration,
public void <B>open</B>(int&nbsp;configuration,
                 int&nbsp;interface_,
                 int&nbsp;interface_,
                 int&nbsp;altinterface)
                 int&nbsp;altinterface)
          throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
          throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Opens the device and claims the specified configuration, interface and
<DD>Opens the device and claims the specified configuration, interface and
 altinterface.<br>
 altinterface.<br>
 First the bus is enumerated. If the device is found its descriptors are
 First the bus is enumerated. If the device is found its descriptors are
 read and the <code>maxPacketSize</code> value is updated. If no
 read and the <code>maxPacketSize</code> value is updated. If no
 endpoints are found in the descriptors an exception is thrown.
 endpoints are found in the descriptors an exception is thrown.
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>configuration</CODE> - the configuration, see
<DT><B>Parameters:</B><DD><CODE>configuration</CODE> - the configuration, see
            <A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getBConfigurationValue()"><CODE>Usb_Config_Descriptor.getBConfigurationValue()</CODE></A><DD><CODE>interface_</CODE> - the interface, see
            <A HREF="../../../ch/ntb/usb/Usb_Config_Descriptor.html#getBConfigurationValue()"><CODE>Usb_Config_Descriptor.getBConfigurationValue()</CODE></A><DD><CODE>interface_</CODE> - the interface, see
            <A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceNumber()"><CODE>Usb_Interface_Descriptor.getBInterfaceNumber()</CODE></A><DD><CODE>altinterface</CODE> - the alternate interface, see
            <A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceNumber()"><CODE>Usb_Interface_Descriptor.getBInterfaceNumber()</CODE></A><DD><CODE>altinterface</CODE> - the alternate interface, see
            <A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBAlternateSetting()"><CODE>Usb_Interface_Descriptor.getBAlternateSetting()</CODE></A>. If
            <A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBAlternateSetting()"><CODE>Usb_Interface_Descriptor.getBAlternateSetting()</CODE></A>. If
            no alternate interface must be set <i>-1</i> can be used.
            no alternate interface must be set <i>-1</i> can be used.
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="close()"><!-- --></A><H3>
<A NAME="close()"><!-- --></A><H3>
close</H3>
close</H3>
<PRE>
<PRE>
public void <B>close</B>()
public void <B>close</B>()
           throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
           throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Release the claimed interface and close the opened device.<br>
<DD>Release the claimed interface and close the opened device.<br>
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="reset()"><!-- --></A><H3>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
reset</H3>
<PRE>
<PRE>
public void <B>reset</B>()
public void <B>reset</B>()
           throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
           throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Sends an USB reset to the device. The device handle will no longer be
<DD>Sends an USB reset to the device. The device handle will no longer be
 valid. To use the device again, <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A> must be
 valid. To use the device again, <A HREF="../../../ch/ntb/usb/Device.html#open(int, int, int)"><CODE>open(int, int, int)</CODE></A> must be
 called.
 called.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="writeBulk(int, byte[], int, int, boolean)"><!-- --></A><H3>
<A NAME="writeBulk(int, byte[], int, int, boolean)"><!-- --></A><H3>
writeBulk</H3>
writeBulk</H3>
<PRE>
<PRE>
public int <B>writeBulk</B>(int&nbsp;out_ep_address,
public int <B>writeBulk</B>(int&nbsp;out_ep_address,
                     byte[]&nbsp;data,
                     byte[]&nbsp;data,
                     int&nbsp;size,
                     int&nbsp;size,
                     int&nbsp;timeout,
                     int&nbsp;timeout,
                     boolean&nbsp;reopenOnTimeout)
                     boolean&nbsp;reopenOnTimeout)
              throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
              throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Write data to the device using a bulk transfer.<br>
<DD>Write data to the device using a bulk transfer.<br>
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>out_ep_address</CODE> - endpoint address to write to<DD><CODE>data</CODE> - data to write to this endpoint<DD><CODE>size</CODE> - size of the data<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send the data
<DT><B>Parameters:</B><DD><CODE>out_ep_address</CODE> - endpoint address to write to<DD><CODE>data</CODE> - data to write to this endpoint<DD><CODE>size</CODE> - size of the data<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send the data
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            send the data again before a timeout exception is thrown
            send the data again before a timeout exception is thrown
<DT><B>Returns:</B><DD>the actual number of bytes written
<DT><B>Returns:</B><DD>the actual number of bytes written
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="readBulk(int, byte[], int, int, boolean)"><!-- --></A><H3>
<A NAME="readBulk(int, byte[], int, int, boolean)"><!-- --></A><H3>
readBulk</H3>
readBulk</H3>
<PRE>
<PRE>
public int <B>readBulk</B>(int&nbsp;in_ep_address,
public int <B>readBulk</B>(int&nbsp;in_ep_address,
                    byte[]&nbsp;data,
                    byte[]&nbsp;data,
                    int&nbsp;size,
                    int&nbsp;size,
                    int&nbsp;timeout,
                    int&nbsp;timeout,
                    boolean&nbsp;reopenOnTimeout)
                    boolean&nbsp;reopenOnTimeout)
             throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
             throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Read data from the device using a bulk transfer.<br>
<DD>Read data from the device using a bulk transfer.<br>
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in_ep_address</CODE> - endpoint address to read from<DD><CODE>data</CODE> - data buffer for the data to be read<DD><CODE>size</CODE> - the maximum requested data size<DD><CODE>timeout</CODE> - amount of time in ms the device will try to receive data until
<DT><B>Parameters:</B><DD><CODE>in_ep_address</CODE> - endpoint address to read from<DD><CODE>data</CODE> - data buffer for the data to be read<DD><CODE>size</CODE> - the maximum requested data size<DD><CODE>timeout</CODE> - amount of time in ms the device will try to receive data until
            a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            receive the data again before a timeout exception is thrown
            receive the data again before a timeout exception is thrown
<DT><B>Returns:</B><DD>the actual number of bytes read
<DT><B>Returns:</B><DD>the actual number of bytes read
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="writeInterrupt(int, byte[], int, int, boolean)"><!-- --></A><H3>
<A NAME="writeInterrupt(int, byte[], int, int, boolean)"><!-- --></A><H3>
writeInterrupt</H3>
writeInterrupt</H3>
<PRE>
<PRE>
public int <B>writeInterrupt</B>(int&nbsp;out_ep_address,
public int <B>writeInterrupt</B>(int&nbsp;out_ep_address,
                          byte[]&nbsp;data,
                          byte[]&nbsp;data,
                          int&nbsp;size,
                          int&nbsp;size,
                          int&nbsp;timeout,
                          int&nbsp;timeout,
                          boolean&nbsp;reopenOnTimeout)
                          boolean&nbsp;reopenOnTimeout)
                   throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
                   throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Write data to the device using a interrupt transfer.<br>
<DD>Write data to the device using a interrupt transfer.<br>
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>out_ep_address</CODE> - endpoint address to write to<DD><CODE>data</CODE> - data to write to this endpoint<DD><CODE>size</CODE> - size of the data<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send the data
<DT><B>Parameters:</B><DD><CODE>out_ep_address</CODE> - endpoint address to write to<DD><CODE>data</CODE> - data to write to this endpoint<DD><CODE>size</CODE> - size of the data<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send the data
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            send the data again before a timeout exception is thrown
            send the data again before a timeout exception is thrown
<DT><B>Returns:</B><DD>the actual number of bytes written
<DT><B>Returns:</B><DD>the actual number of bytes written
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="readInterrupt(int, byte[], int, int, boolean)"><!-- --></A><H3>
<A NAME="readInterrupt(int, byte[], int, int, boolean)"><!-- --></A><H3>
readInterrupt</H3>
readInterrupt</H3>
<PRE>
<PRE>
public int <B>readInterrupt</B>(int&nbsp;in_ep_address,
public int <B>readInterrupt</B>(int&nbsp;in_ep_address,
                         byte[]&nbsp;data,
                         byte[]&nbsp;data,
                         int&nbsp;size,
                         int&nbsp;size,
                         int&nbsp;timeout,
                         int&nbsp;timeout,
                         boolean&nbsp;reopenOnTimeout)
                         boolean&nbsp;reopenOnTimeout)
                  throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
                  throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Read data from the device using a interrupt transfer.<br>
<DD>Read data from the device using a interrupt transfer.<br>
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>in_ep_address</CODE> - endpoint address to read from<DD><CODE>data</CODE> - data buffer for the data to be read<DD><CODE>size</CODE> - the maximum requested data size<DD><CODE>timeout</CODE> - amount of time in ms the device will try to receive data until
<DT><B>Parameters:</B><DD><CODE>in_ep_address</CODE> - endpoint address to read from<DD><CODE>data</CODE> - data buffer for the data to be read<DD><CODE>size</CODE> - the maximum requested data size<DD><CODE>timeout</CODE> - amount of time in ms the device will try to receive data until
            a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            receive the data again before a timeout exception is thrown
            receive the data again before a timeout exception is thrown
<DT><B>Returns:</B><DD>the actual number of bytes read
<DT><B>Returns:</B><DD>the actual number of bytes read
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="controlMsg(int, int, int, int, byte[], int, int, boolean)"><!-- --></A><H3>
<A NAME="controlMsg(int, int, int, int, byte[], int, int, boolean)"><!-- --></A><H3>
controlMsg</H3>
controlMsg</H3>
<PRE>
<PRE>
public int <B>controlMsg</B>(int&nbsp;requestType,
public int <B>controlMsg</B>(int&nbsp;requestType,
                      int&nbsp;request,
                      int&nbsp;request,
                      int&nbsp;value,
                      int&nbsp;value,
                      int&nbsp;index,
                      int&nbsp;index,
                      byte[]&nbsp;data,
                      byte[]&nbsp;data,
                      int&nbsp;size,
                      int&nbsp;size,
                      int&nbsp;timeout,
                      int&nbsp;timeout,
                      boolean&nbsp;reopenOnTimeout)
                      boolean&nbsp;reopenOnTimeout)
               throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
               throws <A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></PRE>
<DL>
<DL>
<DD>Performs a control request to the default control pipe on a device.<br>
<DD>Performs a control request to the default control pipe on a device.<br>
 The parameters mirror the types of the same name in the USB
 The parameters mirror the types of the same name in the USB
 specification.
 specification.
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>requestType</CODE> - USB device request type (USB specification 9.3,
<DT><B>Parameters:</B><DD><CODE>requestType</CODE> - USB device request type (USB specification 9.3,
            bmRequestType). Use constants from <A HREF="../../../ch/ntb/usb/USB.html" title="class in ch.ntb.usb"><CODE>USB</CODE></A>
            bmRequestType). Use constants from <A HREF="../../../ch/ntb/usb/USB.html" title="class in ch.ntb.usb"><CODE>USB</CODE></A>
            (REQ_TYPE_xxx).<DD><CODE>request</CODE> - specific request (USB specification 9.4, bRequest). Use
            (REQ_TYPE_xxx).<DD><CODE>request</CODE> - specific request (USB specification 9.4, bRequest). Use
            constants from <A HREF="../../../ch/ntb/usb/USB.html" title="class in ch.ntb.usb"><CODE>USB</CODE></A> (REQ_xxx).<DD><CODE>value</CODE> - field that varies according to request (USB specification 9.4,
            constants from <A HREF="../../../ch/ntb/usb/USB.html" title="class in ch.ntb.usb"><CODE>USB</CODE></A> (REQ_xxx).<DD><CODE>value</CODE> - field that varies according to request (USB specification 9.4,
            wValue)<DD><CODE>index</CODE> - field that varies according to request (USB specification 9.4,
            wValue)<DD><CODE>index</CODE> - field that varies according to request (USB specification 9.4,
            wIndex)<DD><CODE>data</CODE> - the send/receive buffer<DD><CODE>size</CODE> - the buffer size. 0 is a valid value, but there must still be a
            wIndex)<DD><CODE>data</CODE> - the send/receive buffer<DD><CODE>size</CODE> - the buffer size. 0 is a valid value, but there must still be a
            dummy data buffer provided.<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send/receive data
            dummy data buffer provided.<DD><CODE>timeout</CODE> - amount of time in ms the device will try to send/receive data
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            until a timeout exception is thrown<DD><CODE>reopenOnTimeout</CODE> - if set to true, the device will try to open the connection and
            send/receive the data again before a timeout exception is
            send/receive the data again before a timeout exception is
            thrown
            thrown
<DT><B>Returns:</B><DD>the number of bytes written/read
<DT><B>Returns:</B><DD>the number of bytes written/read
<DT><B>Throws:</B>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
<DD><CODE><A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb">USBException</A></CODE></DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getIdProduct()"><!-- --></A><H3>
<A NAME="getIdProduct()"><!-- --></A><H3>
getIdProduct</H3>
getIdProduct</H3>
<PRE>
<PRE>
public int <B>getIdProduct</B>()</PRE>
public int <B>getIdProduct</B>()</PRE>
<DL>
<DL>
<DD>Returns the product ID of the device.<br>
<DD>Returns the product ID of the device.<br>
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the product ID of the device.</DL>
<DT><B>Returns:</B><DD>the product ID of the device.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getIdVendor()"><!-- --></A><H3>
<A NAME="getIdVendor()"><!-- --></A><H3>
getIdVendor</H3>
getIdVendor</H3>
<PRE>
<PRE>
public int <B>getIdVendor</B>()</PRE>
public int <B>getIdVendor</B>()</PRE>
<DL>
<DL>
<DD>Returns the vendor ID of the device.<br>
<DD>Returns the vendor ID of the device.<br>
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the vendor ID of the device.</DL>
<DT><B>Returns:</B><DD>the vendor ID of the device.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getAltinterface()"><!-- --></A><H3>
<A NAME="getAltinterface()"><!-- --></A><H3>
getAltinterface</H3>
getAltinterface</H3>
<PRE>
<PRE>
public int <B>getAltinterface</B>()</PRE>
public int <B>getAltinterface</B>()</PRE>
<DL>
<DL>
<DD>Returns the alternative interface.<br>
<DD>Returns the alternative interface.<br>
 This value is only valid after opening the device.
 This value is only valid after opening the device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the alternative interface. This value is only valid after opening
<DT><B>Returns:</B><DD>the alternative interface. This value is only valid after opening
         the device.</DL>
         the device.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getConfiguration()"><!-- --></A><H3>
<A NAME="getConfiguration()"><!-- --></A><H3>
getConfiguration</H3>
getConfiguration</H3>
<PRE>
<PRE>
public int <B>getConfiguration</B>()</PRE>
public int <B>getConfiguration</B>()</PRE>
<DL>
<DL>
<DD>Returns the current configuration used.<br>
<DD>Returns the current configuration used.<br>
 This value is only valid after opening the device.
 This value is only valid after opening the device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the current configuration used. This value is only valid after
<DT><B>Returns:</B><DD>the current configuration used. This value is only valid after
         opening the device.</DL>
         opening the device.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getInterface()"><!-- --></A><H3>
<A NAME="getInterface()"><!-- --></A><H3>
getInterface</H3>
getInterface</H3>
<PRE>
<PRE>
public int <B>getInterface</B>()</PRE>
public int <B>getInterface</B>()</PRE>
<DL>
<DL>
<DD>Returns the current interface.<br>
<DD>Returns the current interface.<br>
 This value is only valid after opening the device.
 This value is only valid after opening the device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the current interface. This value is only valid after opening the
<DT><B>Returns:</B><DD>the current interface. This value is only valid after opening the
         device.</DL>
         device.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getMaxPacketSize()"><!-- --></A><H3>
<A NAME="getMaxPacketSize()"><!-- --></A><H3>
getMaxPacketSize</H3>
getMaxPacketSize</H3>
<PRE>
<PRE>
public int <B>getMaxPacketSize</B>()</PRE>
public int <B>getMaxPacketSize</B>()</PRE>
<DL>
<DL>
<DD>Returns the maximum packet size in bytes which is allowed to be
<DD>Returns the maximum packet size in bytes which is allowed to be
 transmitted at once.<br>
 transmitted at once.<br>
 The value is determined by reading the endpoint descriptor(s) when
 The value is determined by reading the endpoint descriptor(s) when
 opening the device. It is invalid before the device is opened! Note that
 opening the device. It is invalid before the device is opened! Note that
 if some endpoints use different packet sizes the maximum packet size is
 if some endpoints use different packet sizes the maximum packet size is
 return. This value may be used to determine if a device is opened in
 return. This value may be used to determine if a device is opened in
 fullspeed or highspeed mode.
 fullspeed or highspeed mode.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the maximum packet size</DL>
<DT><B>Returns:</B><DD>the maximum packet size</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="isOpen()"><!-- --></A><H3>
<A NAME="isOpen()"><!-- --></A><H3>
isOpen</H3>
isOpen</H3>
<PRE>
<PRE>
public boolean <B>isOpen</B>()</PRE>
public boolean <B>isOpen</B>()</PRE>
<DL>
<DL>
<DD>Check if the device is open.<br>
<DD>Check if the device is open.<br>
 This checks only for a valid device handle. It doesn't check if the
 This checks only for a valid device handle. It doesn't check if the
 device is still attached or working.
 device is still attached or working.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>true if the device is open</DL>
<DT><B>Returns:</B><DD>true if the device is open</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="setResetOnFirstOpen(boolean, int)"><!-- --></A><H3>
<A NAME="setResetOnFirstOpen(boolean, int)"><!-- --></A><H3>
setResetOnFirstOpen</H3>
setResetOnFirstOpen</H3>
<PRE>
<PRE>
public void <B>setResetOnFirstOpen</B>(boolean&nbsp;enable,
public void <B>setResetOnFirstOpen</B>(boolean&nbsp;enable,
                                int&nbsp;timeout)</PRE>
                                int&nbsp;timeout)</PRE>
<DL>
<DL>
<DD>If enabled, the device is reset when first opened. <br>
<DD>If enabled, the device is reset when first opened. <br>
 This will only happen once. When the application is started, the device
 This will only happen once. When the application is started, the device
 state is unknown. If the device is not reset, read or write may result in
 state is unknown. If the device is not reset, read or write may result in
 a <A HREF="../../../ch/ntb/usb/USBTimeoutException.html" title="class in ch.ntb.usb"><CODE>USBTimeoutException</CODE></A>.<br>
 a <A HREF="../../../ch/ntb/usb/USBTimeoutException.html" title="class in ch.ntb.usb"><CODE>USBTimeoutException</CODE></A>.<br>
 <br>
 <br>
 This feature is disabled by default.
 This feature is disabled by default.
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true if the device should be reset when first opened<DD><CODE>timeout</CODE> - the timeout between the reset and the reopening</DL>
<DT><B>Parameters:</B><DD><CODE>enable</CODE> - true if the device should be reset when first opened<DD><CODE>timeout</CODE> - the timeout between the reset and the reopening</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getFilename()"><!-- --></A><H3>
<A NAME="getFilename()"><!-- --></A><H3>
getFilename</H3>
getFilename</H3>
<PRE>
<PRE>
protected java.lang.String <B>getFilename</B>()</PRE>
protected java.lang.String <B>getFilename</B>()</PRE>
<DL>
<DL>
<DD>Returns the optional filename which is set when there are multiple
<DD>Returns the optional filename which is set when there are multiple
 devices with the same vendor and product id. See
 devices with the same vendor and product id. See
 <A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)"><CODE>USB.getDevice(short, short, String)</CODE></A>. Use
 <A HREF="../../../ch/ntb/usb/USB.html#getDevice(short, short, java.lang.String)"><CODE>USB.getDevice(short, short, String)</CODE></A>. Use
 <A HREF="../../../ch/ntb/usb/Usb_Device.html#getFilename()"><CODE>Usb_Device.getFilename()</CODE></A> to read the filename of a device.
 <A HREF="../../../ch/ntb/usb/Usb_Device.html#getFilename()"><CODE>Usb_Device.getFilename()</CODE></A> to read the filename of a device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the filename if set or null</DL>
<DT><B>Returns:</B><DD>the filename if set or null</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="getDevice()"><!-- --></A><H3>
<A NAME="getDevice()"><!-- --></A><H3>
getDevice</H3>
getDevice</H3>
<PRE>
<PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> <B>getDevice</B>()</PRE>
public <A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A> <B>getDevice</B>()</PRE>
<DL>
<DL>
<DD>Returns the Usb_Device instance associated with this device. This value
<DD>Returns the Usb_Device instance associated with this device. This value
 is only valid after opening the device.
 is only valid after opening the device.
<P>
<P>
<DD><DL>
<DD><DL>
 
 
<DT><B>Returns:</B><DD>the Usb_Device instance associated with this device.</DL>
<DT><B>Returns:</B><DD>the Usb_Device instance associated with this device.</DL>
</DD>
</DD>
</DL>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<HR>
 
 
 
 
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
  </TR>
</TABLE>
</TABLE>
</TD>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</EM>
</TD>
</TD>
</TR>
</TR>
 
 
<TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../ch/ntb/usb/LibLoader.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
&nbsp;<A HREF="../../../ch/ntb/usb/LibLoader.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?ch/ntb/usb/Device.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  <A HREF="../../../index.html?ch/ntb/usb/Device.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Device.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="Device.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
&nbsp;<SCRIPT type="text/javascript">
  <!--
  <!--
  if(window==top) {
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  }
  //-->
  //-->
</SCRIPT>
</SCRIPT>
<NOSCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</NOSCRIPT>
 
 
 
 
</FONT></TD>
</FONT></TD>
</TR>
</TR>
<TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TR>
</TABLE>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
 
<HR>
<HR>
 
 
</BODY>
</BODY>
</HTML>
</HTML>
 
 

powered by: WebSVN 2.1.0

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