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/] [LibusbJava.html] - Diff between revs 5 and 8

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 5 Rev 8
Line 1... Line 1...
<!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 Wed Sep 29 21:04:05 CEST 2010 -->
<!-- Generated by javadoc (build 1.6.0_02) on Mon Jul 18 15:52:41 CEST 2011 -->
<TITLE>
<TITLE>
LibusbJava
LibusbJava
</TITLE>
</TITLE>
 
 
<META NAME="date" CONTENT="2010-09-29">
<META NAME="date" CONTENT="2011-07-18">
 
 
<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()
Line 223... Line 223...
<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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_bulk_read(int, int, byte[], int, int)">usb_bulk_read</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_bulk_read(long, int, byte[], int, int)">usb_bulk_read</A></B>(long&nbsp;dev_handle,
              int&nbsp;ep,
              int&nbsp;ep,
              byte[]&nbsp;bytes,
              byte[]&nbsp;bytes,
              int&nbsp;size,
              int&nbsp;size,
              int&nbsp;timeout)</CODE>
              int&nbsp;timeout)</CODE>
 
 
Line 235... Line 235...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a bulk read request to the endpoint specified by ep.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a bulk read request to the endpoint specified by ep.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_bulk_write(int, int, byte[], int, int)">usb_bulk_write</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_bulk_write(long, int, byte[], int, int)">usb_bulk_write</A></B>(long&nbsp;dev_handle,
               int&nbsp;ep,
               int&nbsp;ep,
               byte[]&nbsp;bytes,
               byte[]&nbsp;bytes,
               int&nbsp;size,
               int&nbsp;size,
               int&nbsp;timeout)</CODE>
               int&nbsp;timeout)</CODE>
 
 
Line 247... Line 247...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a bulk write request to the endpoint specified by ep.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a bulk write request to the endpoint specified by ep.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_claim_interface(int, int)">usb_claim_interface</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_claim_interface(long, int)">usb_claim_interface</A></B>(long&nbsp;dev_handle,
                    int&nbsp;interface_)</CODE>
                    int&nbsp;interface_)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Claim an interface of a device.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Claim an interface of 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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_clear_halt(int, int)">usb_clear_halt</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_clear_halt(long, int)">usb_clear_halt</A></B>(long&nbsp;dev_handle,
               int&nbsp;ep)</CODE>
               int&nbsp;ep)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears any halt status on an endpoint.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears any halt status on an endpoint.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_close(int)">usb_close</A></B>(int&nbsp;dev_handle)</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_close(long)">usb_close</A></B>(long&nbsp;dev_handle)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_close</code> closes a device opened with
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_close</code> closes a device opened with
 <code>usb_open</code>.</TD>
 <code>usb_open</code>.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_control_msg(int, int, int, int, int, byte[], int, int)">usb_control_msg</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_control_msg(long, int, int, int, int, byte[], int, int)">usb_control_msg</A></B>(long&nbsp;dev_handle,
                int&nbsp;requesttype,
                int&nbsp;requesttype,
                int&nbsp;request,
                int&nbsp;request,
                int&nbsp;value,
                int&nbsp;value,
                int&nbsp;index,
                int&nbsp;index,
                byte[]&nbsp;bytes,
                byte[]&nbsp;bytes,
Line 313... Line 313...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_get_busses</code> returns a tree of descriptor objects.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_get_busses</code> returns a tree of descriptor objects.</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>static&nbsp;java.lang.String</CODE></FONT></TD>
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor_by_endpoint(int, int, byte, byte, int)">usb_get_descriptor_by_endpoint</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor_by_endpoint(long, int, byte, byte, int)">usb_get_descriptor_by_endpoint</A></B>(long&nbsp;dev_handle,
                               int&nbsp;ep,
                               int&nbsp;ep,
                               byte&nbsp;type,
                               byte&nbsp;type,
                               byte&nbsp;index,
                               byte&nbsp;index,
                               int&nbsp;size)</CODE>
                               int&nbsp;size)</CODE>
 
 
Line 326... Line 326...
 of the descriptor from the control pipe identified by ep.</TD>
 of the descriptor from the control pipe identified by ep.</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>static&nbsp;java.lang.String</CODE></FONT></TD>
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor(int, byte, byte, int)">usb_get_descriptor</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor(long, byte, byte, int)">usb_get_descriptor</A></B>(long&nbsp;dev_handle,
                   byte&nbsp;type,
                   byte&nbsp;type,
                   byte&nbsp;index,
                   byte&nbsp;index,
                   int&nbsp;size)</CODE>
                   int&nbsp;size)</CODE>
 
 
<BR>
<BR>
Line 338... Line 338...
 of the descriptor from the default control pipe.</TD>
 of the descriptor from the default control pipe.</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>static&nbsp;java.lang.String</CODE></FONT></TD>
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_string_simple(int, int)">usb_get_string_simple</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_string_simple(long, int)">usb_get_string_simple</A></B>(long&nbsp;dev_handle,
                      int&nbsp;index)</CODE>
                      int&nbsp;index)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_get_string_simple</code> is a wrapper around
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_get_string_simple</code> is a wrapper around
 <code>usb_get_string</code> that retrieves the string description
 <code>usb_get_string</code> that retrieves the string description
 specified by index in the first language for the descriptor.</TD>
 specified by index in the first language for the descriptor.</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>static&nbsp;java.lang.String</CODE></FONT></TD>
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_string(int, int, int)">usb_get_string</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_string(long, int, int)">usb_get_string</A></B>(long&nbsp;dev_handle,
               int&nbsp;index,
               int&nbsp;index,
               int&nbsp;langid)</CODE>
               int&nbsp;langid)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the string descriptor specified by index and langid from a
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the string descriptor specified by index and langid from a
Line 369... Line 369...
 structures.</TD>
 structures.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_interrupt_read(int, int, byte[], int, int)">usb_interrupt_read</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_interrupt_read(long, int, byte[], int, int)">usb_interrupt_read</A></B>(long&nbsp;dev_handle,
                   int&nbsp;ep,
                   int&nbsp;ep,
                   byte[]&nbsp;bytes,
                   byte[]&nbsp;bytes,
                   int&nbsp;size,
                   int&nbsp;size,
                   int&nbsp;timeout)</CODE>
                   int&nbsp;timeout)</CODE>
 
 
Line 381... Line 381...
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a interrupt read request to the endpoint specified by ep.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a interrupt read request to the endpoint specified by ep.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_interrupt_write(int, int, byte[], int, int)">usb_interrupt_write</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_interrupt_write(long, int, byte[], int, int)">usb_interrupt_write</A></B>(long&nbsp;dev_handle,
                    int&nbsp;ep,
                    int&nbsp;ep,
                    byte[]&nbsp;bytes,
                    byte[]&nbsp;bytes,
                    int&nbsp;size,
                    int&nbsp;size,
                    int&nbsp;timeout)</CODE>
                    int&nbsp;timeout)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs an interrupt write request to the endpoint specified by ep.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs an interrupt write request to the endpoint specified by ep.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_open(ch.ntb.usb.Usb_Device)">usb_open</A></B>(<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A>&nbsp;dev)</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_open(ch.ntb.usb.Usb_Device)">usb_open</A></B>(<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A>&nbsp;dev)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_open</code> is to be used to open up a device for use.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>usb_open</code> is to be used to open up a device for use.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_release_interface(int, int)">usb_release_interface</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_release_interface(long, int)">usb_release_interface</A></B>(long&nbsp;dev_handle,
                      int&nbsp;interface_)</CODE>
                      int&nbsp;interface_)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases a previously claimed interface</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Releases a previously claimed 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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_reset(int)">usb_reset</A></B>(int&nbsp;dev_handle)</CODE>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_reset(long)">usb_reset</A></B>(long&nbsp;dev_handle)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets a device by sending a RESET down the port it is connected to.</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets a device by sending a RESET down the port it is connected to.</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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_altinterface(int, int)">usb_set_altinterface</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_altinterface(long, int)">usb_set_altinterface</A></B>(long&nbsp;dev_handle,
                     int&nbsp;alternate)</CODE>
                     int&nbsp;alternate)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active alternate setting of the current interface</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active alternate setting of 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>static&nbsp;int</CODE></FONT></TD>
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_configuration(int, int)">usb_set_configuration</A></B>(int&nbsp;dev_handle,
<TD><CODE><B><A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_configuration(long, int)">usb_set_configuration</A></B>(long&nbsp;dev_handle,
                      int&nbsp;configuration)</CODE>
                      int&nbsp;configuration)</CODE>
 
 
<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active configuration of a device</TD>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active configuration of a device</TD>
</TR>
</TR>
Line 695... Line 695...
<HR>
<HR>
 
 
<A NAME="usb_open(ch.ntb.usb.Usb_Device)"><!-- --></A><H3>
<A NAME="usb_open(ch.ntb.usb.Usb_Device)"><!-- --></A><H3>
usb_open</H3>
usb_open</H3>
<PRE>
<PRE>
public static int <B>usb_open</B>(<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A>&nbsp;dev)</PRE>
public static long <B>usb_open</B>(<A HREF="../../../ch/ntb/usb/Usb_Device.html" title="class in ch.ntb.usb">Usb_Device</A>&nbsp;dev)</PRE>
<DL>
<DL>
<DD><code>usb_open</code> is to be used to open up a device for use.
<DD><code>usb_open</code> is to be used to open up a device for use.
 <code>usb_open</code> must be called before attempting to perform any
 <code>usb_open</code> must be called before attempting to perform any
 operations to the device.
 operations to the device.
<P>
<P>
Line 709... Line 709...
         error has occurred.</DL>
         error has occurred.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_close(int)"><!-- --></A><H3>
<A NAME="usb_close(long)"><!-- --></A><H3>
usb_close</H3>
usb_close</H3>
<PRE>
<PRE>
public static int <B>usb_close</B>(int&nbsp;dev_handle)</PRE>
public static int <B>usb_close</B>(long&nbsp;dev_handle)</PRE>
<DL>
<DL>
<DD><code>usb_close</code> closes a device opened with
<DD><code>usb_close</code> closes a device opened with
 <code>usb_open</code>.
 <code>usb_open</code>.
<P>
<P>
<DD><DL>
<DD><DL>
Line 724... Line 724...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_set_configuration(int, int)"><!-- --></A><H3>
<A NAME="usb_set_configuration(long, int)"><!-- --></A><H3>
usb_set_configuration</H3>
usb_set_configuration</H3>
<PRE>
<PRE>
public static int <B>usb_set_configuration</B>(int&nbsp;dev_handle,
public static int <B>usb_set_configuration</B>(long&nbsp;dev_handle,
                                        int&nbsp;configuration)</PRE>
                                        int&nbsp;configuration)</PRE>
<DL>
<DL>
<DD>Sets the active configuration of a device
<DD>Sets the active configuration of a device
<P>
<P>
<DD><DL>
<DD><DL>
Line 740... Line 740...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_set_altinterface(int, int)"><!-- --></A><H3>
<A NAME="usb_set_altinterface(long, int)"><!-- --></A><H3>
usb_set_altinterface</H3>
usb_set_altinterface</H3>
<PRE>
<PRE>
public static int <B>usb_set_altinterface</B>(int&nbsp;dev_handle,
public static int <B>usb_set_altinterface</B>(long&nbsp;dev_handle,
                                       int&nbsp;alternate)</PRE>
                                       int&nbsp;alternate)</PRE>
<DL>
<DL>
<DD>Sets the active alternate setting of the current interface
<DD>Sets the active alternate setting of the current interface
<P>
<P>
<DD><DL>
<DD><DL>
Line 756... Line 756...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_clear_halt(int, int)"><!-- --></A><H3>
<A NAME="usb_clear_halt(long, int)"><!-- --></A><H3>
usb_clear_halt</H3>
usb_clear_halt</H3>
<PRE>
<PRE>
public static int <B>usb_clear_halt</B>(int&nbsp;dev_handle,
public static int <B>usb_clear_halt</B>(long&nbsp;dev_handle,
                                 int&nbsp;ep)</PRE>
                                 int&nbsp;ep)</PRE>
<DL>
<DL>
<DD>Clears any halt status on an endpoint.
<DD>Clears any halt status on an endpoint.
<P>
<P>
<DD><DL>
<DD><DL>
Line 771... Line 771...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_reset(int)"><!-- --></A><H3>
<A NAME="usb_reset(long)"><!-- --></A><H3>
usb_reset</H3>
usb_reset</H3>
<PRE>
<PRE>
public static int <B>usb_reset</B>(int&nbsp;dev_handle)</PRE>
public static int <B>usb_reset</B>(long&nbsp;dev_handle)</PRE>
<DL>
<DL>
<DD>Resets a device by sending a RESET down the port it is connected to.<br>
<DD>Resets a device by sending a RESET down the port it is connected to.<br>
 <br>
 <br>
 <b>Causes re-enumeration:</b> After calling <code>usb_reset</code>,
 <b>Causes re-enumeration:</b> After calling <code>usb_reset</code>,
 the device will need to re-enumerate and thusly, requires you to find the
 the device will need to re-enumerate and thusly, requires you to find the
Line 790... Line 790...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_claim_interface(int, int)"><!-- --></A><H3>
<A NAME="usb_claim_interface(long, int)"><!-- --></A><H3>
usb_claim_interface</H3>
usb_claim_interface</H3>
<PRE>
<PRE>
public static int <B>usb_claim_interface</B>(int&nbsp;dev_handle,
public static int <B>usb_claim_interface</B>(long&nbsp;dev_handle,
                                      int&nbsp;interface_)</PRE>
                                      int&nbsp;interface_)</PRE>
<DL>
<DL>
<DD>Claim an interface of a device.<br>
<DD>Claim an interface of a device.<br>
 <br>
 <br>
 <b>Must be called!:</b> <code>usb_claim_interface</code> must be
 <b>Must be called!:</b> <code>usb_claim_interface</code> must be
Line 810... Line 810...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_release_interface(int, int)"><!-- --></A><H3>
<A NAME="usb_release_interface(long, int)"><!-- --></A><H3>
usb_release_interface</H3>
usb_release_interface</H3>
<PRE>
<PRE>
public static int <B>usb_release_interface</B>(int&nbsp;dev_handle,
public static int <B>usb_release_interface</B>(long&nbsp;dev_handle,
                                        int&nbsp;interface_)</PRE>
                                        int&nbsp;interface_)</PRE>
<DL>
<DL>
<DD>Releases a previously claimed interface
<DD>Releases a previously claimed interface
<P>
<P>
<DD><DL>
<DD><DL>
Line 826... Line 826...
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>0 on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_control_msg(int, int, int, int, int, byte[], int, int)"><!-- --></A><H3>
<A NAME="usb_control_msg(long, int, int, int, int, byte[], int, int)"><!-- --></A><H3>
usb_control_msg</H3>
usb_control_msg</H3>
<PRE>
<PRE>
public static int <B>usb_control_msg</B>(int&nbsp;dev_handle,
public static int <B>usb_control_msg</B>(long&nbsp;dev_handle,
                                  int&nbsp;requesttype,
                                  int&nbsp;requesttype,
                                  int&nbsp;request,
                                  int&nbsp;request,
                                  int&nbsp;value,
                                  int&nbsp;value,
                                  int&nbsp;index,
                                  int&nbsp;index,
                                  byte[]&nbsp;bytes,
                                  byte[]&nbsp;bytes,
Line 848... Line 848...
<DT><B>Returns:</B><DD>the number of bytes written/read or < 0 on error.</DL>
<DT><B>Returns:</B><DD>the number of bytes written/read or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_get_string(int, int, int)"><!-- --></A><H3>
<A NAME="usb_get_string(long, int, int)"><!-- --></A><H3>
usb_get_string</H3>
usb_get_string</H3>
<PRE>
<PRE>
public static java.lang.String <B>usb_get_string</B>(int&nbsp;dev_handle,
public static java.lang.String <B>usb_get_string</B>(long&nbsp;dev_handle,
                                              int&nbsp;index,
                                              int&nbsp;index,
                                              int&nbsp;langid)</PRE>
                                              int&nbsp;langid)</PRE>
<DL>
<DL>
<DD>Retrieves the string descriptor specified by index and langid from a
<DD>Retrieves the string descriptor specified by index and langid from a
 device.
 device.
Line 865... Line 865...
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_get_string_simple(int, int)"><!-- --></A><H3>
<A NAME="usb_get_string_simple(long, int)"><!-- --></A><H3>
usb_get_string_simple</H3>
usb_get_string_simple</H3>
<PRE>
<PRE>
public static java.lang.String <B>usb_get_string_simple</B>(int&nbsp;dev_handle,
public static java.lang.String <B>usb_get_string_simple</B>(long&nbsp;dev_handle,
                                                     int&nbsp;index)</PRE>
                                                     int&nbsp;index)</PRE>
<DL>
<DL>
<DD><code>usb_get_string_simple</code> is a wrapper around
<DD><code>usb_get_string_simple</code> is a wrapper around
 <code>usb_get_string</code> that retrieves the string description
 <code>usb_get_string</code> that retrieves the string description
 specified by index in the first language for the descriptor.
 specified by index in the first language for the descriptor.
Line 882... Line 882...
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_get_descriptor(int, byte, byte, int)"><!-- --></A><H3>
<A NAME="usb_get_descriptor(long, byte, byte, int)"><!-- --></A><H3>
usb_get_descriptor</H3>
usb_get_descriptor</H3>
<PRE>
<PRE>
public static java.lang.String <B>usb_get_descriptor</B>(int&nbsp;dev_handle,
public static java.lang.String <B>usb_get_descriptor</B>(long&nbsp;dev_handle,
                                                  byte&nbsp;type,
                                                  byte&nbsp;type,
                                                  byte&nbsp;index,
                                                  byte&nbsp;index,
                                                  int&nbsp;size)</PRE>
                                                  int&nbsp;size)</PRE>
<DL>
<DL>
<DD>Retrieves a descriptor from the device identified by the type and index
<DD>Retrieves a descriptor from the device identified by the type and index
 of the descriptor from the default control pipe.<br>
 of the descriptor from the default control pipe.<br>
 <br>
 <br>
 See <A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor_by_endpoint(int, int, byte, byte, int)"><CODE>usb_get_descriptor_by_endpoint(int, int, byte, byte, int)</CODE></A>
 See <A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_get_descriptor_by_endpoint(long, int, byte, byte, int)"><CODE>usb_get_descriptor_by_endpoint(long, int, byte, byte, int)</CODE></A>
 for a function that allows the control endpoint to be specified.
 for a function that allows the control endpoint to be specified.
<P>
<P>
<DD><DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>dev_handle</CODE> - The handle to the device.<DD><CODE>type</CODE> - <DD><CODE>index</CODE> - <DD><CODE>size</CODE> - number of charactes which will be retrieved (the length of the
<DT><B>Parameters:</B><DD><CODE>dev_handle</CODE> - The handle to the device.<DD><CODE>type</CODE> - <DD><CODE>index</CODE> - <DD><CODE>size</CODE> - number of charactes which will be retrieved (the length of the
            resulting String)
            resulting String)
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_get_descriptor_by_endpoint(int, int, byte, byte, int)"><!-- --></A><H3>
<A NAME="usb_get_descriptor_by_endpoint(long, int, byte, byte, int)"><!-- --></A><H3>
usb_get_descriptor_by_endpoint</H3>
usb_get_descriptor_by_endpoint</H3>
<PRE>
<PRE>
public static java.lang.String <B>usb_get_descriptor_by_endpoint</B>(int&nbsp;dev_handle,
public static java.lang.String <B>usb_get_descriptor_by_endpoint</B>(long&nbsp;dev_handle,
                                                              int&nbsp;ep,
                                                              int&nbsp;ep,
                                                              byte&nbsp;type,
                                                              byte&nbsp;type,
                                                              byte&nbsp;index,
                                                              byte&nbsp;index,
                                                              int&nbsp;size)</PRE>
                                                              int&nbsp;size)</PRE>
<DL>
<DL>
Line 924... Line 924...
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
<DT><B>Returns:</B><DD>the descriptor String or null</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_bulk_write(int, int, byte[], int, int)"><!-- --></A><H3>
<A NAME="usb_bulk_write(long, int, byte[], int, int)"><!-- --></A><H3>
usb_bulk_write</H3>
usb_bulk_write</H3>
<PRE>
<PRE>
public static int <B>usb_bulk_write</B>(int&nbsp;dev_handle,
public static int <B>usb_bulk_write</B>(long&nbsp;dev_handle,
                                 int&nbsp;ep,
                                 int&nbsp;ep,
                                 byte[]&nbsp;bytes,
                                 byte[]&nbsp;bytes,
                                 int&nbsp;size,
                                 int&nbsp;size,
                                 int&nbsp;timeout)</PRE>
                                 int&nbsp;timeout)</PRE>
<DL>
<DL>
Line 942... Line 942...
<DT><B>Returns:</B><DD>the number of bytes written on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>the number of bytes written on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_bulk_read(int, int, byte[], int, int)"><!-- --></A><H3>
<A NAME="usb_bulk_read(long, int, byte[], int, int)"><!-- --></A><H3>
usb_bulk_read</H3>
usb_bulk_read</H3>
<PRE>
<PRE>
public static int <B>usb_bulk_read</B>(int&nbsp;dev_handle,
public static int <B>usb_bulk_read</B>(long&nbsp;dev_handle,
                                int&nbsp;ep,
                                int&nbsp;ep,
                                byte[]&nbsp;bytes,
                                byte[]&nbsp;bytes,
                                int&nbsp;size,
                                int&nbsp;size,
                                int&nbsp;timeout)</PRE>
                                int&nbsp;timeout)</PRE>
<DL>
<DL>
Line 960... Line 960...
<DT><B>Returns:</B><DD>the number of bytes read on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>the number of bytes read on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_interrupt_write(int, int, byte[], int, int)"><!-- --></A><H3>
<A NAME="usb_interrupt_write(long, int, byte[], int, int)"><!-- --></A><H3>
usb_interrupt_write</H3>
usb_interrupt_write</H3>
<PRE>
<PRE>
public static int <B>usb_interrupt_write</B>(int&nbsp;dev_handle,
public static int <B>usb_interrupt_write</B>(long&nbsp;dev_handle,
                                      int&nbsp;ep,
                                      int&nbsp;ep,
                                      byte[]&nbsp;bytes,
                                      byte[]&nbsp;bytes,
                                      int&nbsp;size,
                                      int&nbsp;size,
                                      int&nbsp;timeout)</PRE>
                                      int&nbsp;timeout)</PRE>
<DL>
<DL>
Line 978... Line 978...
<DT><B>Returns:</B><DD>the number of bytes written on success or < 0 on error.</DL>
<DT><B>Returns:</B><DD>the number of bytes written on success or < 0 on error.</DL>
</DD>
</DD>
</DL>
</DL>
<HR>
<HR>
 
 
<A NAME="usb_interrupt_read(int, int, byte[], int, int)"><!-- --></A><H3>
<A NAME="usb_interrupt_read(long, int, byte[], int, int)"><!-- --></A><H3>
usb_interrupt_read</H3>
usb_interrupt_read</H3>
<PRE>
<PRE>
public static int <B>usb_interrupt_read</B>(int&nbsp;dev_handle,
public static int <B>usb_interrupt_read</B>(long&nbsp;dev_handle,
                                     int&nbsp;ep,
                                     int&nbsp;ep,
                                     byte[]&nbsp;bytes,
                                     byte[]&nbsp;bytes,
                                     int&nbsp;size,
                                     int&nbsp;size,
                                     int&nbsp;timeout)</PRE>
                                     int&nbsp;timeout)</PRE>
<DL>
<DL>

powered by: WebSVN 2.1.0

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