1 |
2 |
ZTEX |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2 |
|
|
<!--NewPage-->
|
3 |
|
|
<HTML>
|
4 |
|
|
<HEAD>
|
5 |
6 |
ZTEX |
<!-- Generated by javadoc (build 1.6.0_18) on Thu Apr 12 22:51:27 CEST 2012 -->
|
6 |
2 |
ZTEX |
<TITLE>
|
7 |
|
|
Usb_Interface_Descriptor
|
8 |
|
|
</TITLE>
|
9 |
|
|
|
10 |
6 |
ZTEX |
<META NAME="date" CONTENT="2012-04-12">
|
11 |
2 |
ZTEX |
|
12 |
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
13 |
|
|
|
14 |
|
|
<SCRIPT type="text/javascript">
|
15 |
|
|
function windowTitle()
|
16 |
|
|
{
|
17 |
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
18 |
|
|
parent.document.title="Usb_Interface_Descriptor";
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
</SCRIPT>
|
22 |
|
|
<NOSCRIPT>
|
23 |
|
|
</NOSCRIPT>
|
24 |
|
|
|
25 |
|
|
</HEAD>
|
26 |
|
|
|
27 |
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
28 |
|
|
<HR>
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
32 |
|
|
<A NAME="navbar_top"><!-- --></A>
|
33 |
|
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
34 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
35 |
|
|
<TR>
|
36 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
37 |
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
38 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
39 |
|
|
<TR ALIGN="center" VALIGN="top">
|
40 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
41 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
42 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
43 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
44 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
45 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
46 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
47 |
|
|
</TR>
|
48 |
|
|
</TABLE>
|
49 |
|
|
</TD>
|
50 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
51 |
|
|
</EM>
|
52 |
|
|
</TD>
|
53 |
|
|
</TR>
|
54 |
|
|
|
55 |
|
|
<TR>
|
56 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
57 |
|
|
<A HREF="../../../ch/ntb/usb/Usb_Interface.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>
|
58 |
|
|
<A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
|
59 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
60 |
|
|
<A HREF="../../../index.html?ch/ntb/usb/Usb_Interface_Descriptor.html" target="_top"><B>FRAMES</B></A>
|
61 |
|
|
<A HREF="Usb_Interface_Descriptor.html" target="_top"><B>NO FRAMES</B></A>
|
62 |
|
|
<SCRIPT type="text/javascript">
|
63 |
|
|
<!--
|
64 |
|
|
if(window==top) {
|
65 |
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
66 |
|
|
}
|
67 |
|
|
//-->
|
68 |
|
|
</SCRIPT>
|
69 |
|
|
<NOSCRIPT>
|
70 |
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
71 |
|
|
</NOSCRIPT>
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
</FONT></TD>
|
75 |
|
|
</TR>
|
76 |
|
|
<TR>
|
77 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
78 |
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
79 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
80 |
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
81 |
|
|
</TR>
|
82 |
|
|
</TABLE>
|
83 |
|
|
<A NAME="skip-navbar_top"></A>
|
84 |
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
85 |
|
|
|
86 |
|
|
<HR>
|
87 |
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
88 |
|
|
<H2>
|
89 |
|
|
<FONT SIZE="-1">
|
90 |
|
|
ch.ntb.usb</FONT>
|
91 |
|
|
<BR>
|
92 |
|
|
Class Usb_Interface_Descriptor</H2>
|
93 |
|
|
<PRE>
|
94 |
|
|
java.lang.Object
|
95 |
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">ch.ntb.usb.Usb_Descriptor</A>
|
96 |
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>ch.ntb.usb.Usb_Interface_Descriptor</B>
|
97 |
|
|
</PRE>
|
98 |
|
|
<HR>
|
99 |
|
|
<DL>
|
100 |
|
|
<DT><PRE>public class <B>Usb_Interface_Descriptor</B><DT>extends <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></DL>
|
101 |
|
|
</PRE>
|
102 |
|
|
|
103 |
|
|
<P>
|
104 |
|
|
Represents the descriptor of a USB interface.<br>
|
105 |
|
|
The interface descriptor could be seen as a header or grouping of the
|
106 |
|
|
endpoints into a functional group performing a single feature of the device.<br>
|
107 |
|
|
<br>
|
108 |
|
|
The length of the interface descriptor is
|
109 |
|
|
<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE_SIZE"><CODE>Usb_Descriptor.USB_DT_INTERFACE_SIZE</CODE></A> and the type is
|
110 |
|
|
<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE"><CODE>Usb_Descriptor.USB_DT_INTERFACE</CODE></A>.
|
111 |
|
|
<P>
|
112 |
|
|
|
113 |
|
|
<P>
|
114 |
|
|
<HR>
|
115 |
|
|
|
116 |
|
|
<P>
|
117 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
118 |
|
|
|
119 |
|
|
<A NAME="field_summary"><!-- --></A>
|
120 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
121 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
122 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
123 |
|
|
<B>Field Summary</B></FONT></TH>
|
124 |
|
|
</TR>
|
125 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
126 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
127 |
|
|
<CODE>static int</CODE></FONT></TD>
|
128 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#USB_MAXINTERFACES">USB_MAXINTERFACES</A></B></CODE>
|
129 |
|
|
|
130 |
|
|
<BR>
|
131 |
|
|
Maximum number of interfaces</TD>
|
132 |
|
|
</TR>
|
133 |
|
|
</TABLE>
|
134 |
|
|
<A NAME="fields_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
|
135 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
136 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
137 |
|
|
<TH ALIGN="left"><B>Fields inherited from class ch.ntb.usb.<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></B></TH>
|
138 |
|
|
</TR>
|
139 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
140 |
|
|
<TD><CODE><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG">USB_DT_CONFIG</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_CONFIG_SIZE">USB_DT_CONFIG_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE">USB_DT_DEVICE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_DEVICE_SIZE">USB_DT_DEVICE_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT">USB_DT_ENDPOINT</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT_AUDIO_SIZE">USB_DT_ENDPOINT_AUDIO_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_ENDPOINT_SIZE">USB_DT_ENDPOINT_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HID">USB_DT_HID</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HUB">USB_DT_HUB</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_HUB_NONVAR_SIZE">USB_DT_HUB_NONVAR_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE">USB_DT_INTERFACE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_INTERFACE_SIZE">USB_DT_INTERFACE_SIZE</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_PHYSICAL">USB_DT_PHYSICAL</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_REPORT">USB_DT_REPORT</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#USB_DT_STRING">USB_DT_STRING</A></CODE></TD>
|
141 |
|
|
</TR>
|
142 |
|
|
</TABLE>
|
143 |
|
|
|
144 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
145 |
|
|
|
146 |
|
|
<A NAME="constructor_summary"><!-- --></A>
|
147 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
148 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
149 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
150 |
|
|
<B>Constructor Summary</B></FONT></TH>
|
151 |
|
|
</TR>
|
152 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
153 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#Usb_Interface_Descriptor()">Usb_Interface_Descriptor</A></B>()</CODE>
|
154 |
|
|
|
155 |
|
|
<BR>
|
156 |
|
|
</TD>
|
157 |
|
|
</TR>
|
158 |
|
|
</TABLE>
|
159 |
|
|
|
160 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
161 |
|
|
|
162 |
|
|
<A NAME="method_summary"><!-- --></A>
|
163 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
164 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
165 |
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
166 |
|
|
<B>Method Summary</B></FONT></TH>
|
167 |
|
|
</TR>
|
168 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
169 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
170 |
|
|
<CODE> byte</CODE></FONT></TD>
|
171 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBAlternateSetting()">getBAlternateSetting</A></B>()</CODE>
|
172 |
|
|
|
173 |
|
|
<BR>
|
174 |
5 |
ZTEX |
Returns the value used to select the alternate setting (<A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_altinterface(long, int)"><CODE>LibusbJava.usb_set_altinterface(long, int)</CODE></A>).</TD>
|
175 |
2 |
ZTEX |
</TR>
|
176 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
177 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
178 |
|
|
<CODE> byte</CODE></FONT></TD>
|
179 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceClass()">getBInterfaceClass</A></B>()</CODE>
|
180 |
|
|
|
181 |
|
|
<BR>
|
182 |
|
|
Returns the class code (Assigned by <a
|
183 |
|
|
href="http://www.usb.org">www.usb.org</a>).</TD>
|
184 |
|
|
</TR>
|
185 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
186 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
187 |
|
|
<CODE> byte</CODE></FONT></TD>
|
188 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceNumber()">getBInterfaceNumber</A></B>()</CODE>
|
189 |
|
|
|
190 |
|
|
<BR>
|
191 |
|
|
Returns the number (identifier) of this interface.</TD>
|
192 |
|
|
</TR>
|
193 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
194 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
195 |
|
|
<CODE> byte</CODE></FONT></TD>
|
196 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceProtocol()">getBInterfaceProtocol</A></B>()</CODE>
|
197 |
|
|
|
198 |
|
|
<BR>
|
199 |
|
|
Returns the protocol code (Assigned by <a
|
200 |
|
|
href="http://www.usb.org">www.usb.org</a>).</TD>
|
201 |
|
|
</TR>
|
202 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
203 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
204 |
|
|
<CODE> byte</CODE></FONT></TD>
|
205 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBInterfaceSubClass()">getBInterfaceSubClass</A></B>()</CODE>
|
206 |
|
|
|
207 |
|
|
<BR>
|
208 |
|
|
Returns the subclass code (Assigned by <a
|
209 |
|
|
href="http://www.usb.org">www.usb.org</a>).</TD>
|
210 |
|
|
</TR>
|
211 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
212 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
213 |
|
|
<CODE> byte</CODE></FONT></TD>
|
214 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getBNumEndpoints()">getBNumEndpoints</A></B>()</CODE>
|
215 |
|
|
|
216 |
|
|
<BR>
|
217 |
|
|
Returns the number of endpoints used for this interface.</TD>
|
218 |
|
|
</TR>
|
219 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
220 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
221 |
|
|
<CODE> <A HREF="../../../ch/ntb/usb/Usb_Endpoint_Descriptor.html" title="class in ch.ntb.usb">Usb_Endpoint_Descriptor</A>[]</CODE></FONT></TD>
|
222 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getEndpoint()">getEndpoint</A></B>()</CODE>
|
223 |
|
|
|
224 |
|
|
<BR>
|
225 |
|
|
Returns an array of endpoint descriptors.</TD>
|
226 |
|
|
</TR>
|
227 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
228 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
229 |
|
|
<CODE> byte[]</CODE></FONT></TD>
|
230 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getExtra()">getExtra</A></B>()</CODE>
|
231 |
|
|
|
232 |
|
|
<BR>
|
233 |
|
|
Returns the data of extra descriptor(s) if available.</TD>
|
234 |
|
|
</TR>
|
235 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
236 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
237 |
|
|
<CODE> int</CODE></FONT></TD>
|
238 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getExtralen()">getExtralen</A></B>()</CODE>
|
239 |
|
|
|
240 |
|
|
<BR>
|
241 |
|
|
Returns the number of bytes of the extra descriptor.</TD>
|
242 |
|
|
</TR>
|
243 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
244 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
245 |
|
|
<CODE> byte</CODE></FONT></TD>
|
246 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#getIInterface()">getIInterface</A></B>()</CODE>
|
247 |
|
|
|
248 |
|
|
<BR>
|
249 |
|
|
Returns the index of the String descriptor describing this interface.</TD>
|
250 |
|
|
</TR>
|
251 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
252 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
253 |
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
254 |
|
|
<TD><CODE><B><A HREF="../../../ch/ntb/usb/Usb_Interface_Descriptor.html#toString()">toString</A></B>()</CODE>
|
255 |
|
|
|
256 |
|
|
<BR>
|
257 |
|
|
</TD>
|
258 |
|
|
</TR>
|
259 |
|
|
</TABLE>
|
260 |
|
|
<A NAME="methods_inherited_from_class_ch.ntb.usb.Usb_Descriptor"><!-- --></A>
|
261 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
262 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
263 |
|
|
<TH ALIGN="left"><B>Methods inherited from class ch.ntb.usb.<A HREF="../../../ch/ntb/usb/Usb_Descriptor.html" title="class in ch.ntb.usb">Usb_Descriptor</A></B></TH>
|
264 |
|
|
</TR>
|
265 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
266 |
|
|
<TD><CODE><A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#getBDescriptorType()">getBDescriptorType</A>, <A HREF="../../../ch/ntb/usb/Usb_Descriptor.html#getBLength()">getBLength</A></CODE></TD>
|
267 |
|
|
</TR>
|
268 |
|
|
</TABLE>
|
269 |
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
270 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
271 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
272 |
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
273 |
|
|
</TR>
|
274 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
275 |
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
|
276 |
|
|
</TR>
|
277 |
|
|
</TABLE>
|
278 |
|
|
|
279 |
|
|
<P>
|
280 |
|
|
|
281 |
|
|
<!-- ============ FIELD DETAIL =========== -->
|
282 |
|
|
|
283 |
|
|
<A NAME="field_detail"><!-- --></A>
|
284 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
285 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
286 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
287 |
|
|
<B>Field Detail</B></FONT></TH>
|
288 |
|
|
</TR>
|
289 |
|
|
</TABLE>
|
290 |
|
|
|
291 |
|
|
<A NAME="USB_MAXINTERFACES"><!-- --></A><H3>
|
292 |
|
|
USB_MAXINTERFACES</H3>
|
293 |
|
|
<PRE>
|
294 |
|
|
public static final int <B>USB_MAXINTERFACES</B></PRE>
|
295 |
|
|
<DL>
|
296 |
|
|
<DD>Maximum number of interfaces
|
297 |
|
|
<P>
|
298 |
|
|
<DL>
|
299 |
|
|
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#ch.ntb.usb.Usb_Interface_Descriptor.USB_MAXINTERFACES">Constant Field Values</A></DL>
|
300 |
|
|
</DL>
|
301 |
|
|
|
302 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
303 |
|
|
|
304 |
|
|
<A NAME="constructor_detail"><!-- --></A>
|
305 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
306 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
307 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
308 |
|
|
<B>Constructor Detail</B></FONT></TH>
|
309 |
|
|
</TR>
|
310 |
|
|
</TABLE>
|
311 |
|
|
|
312 |
|
|
<A NAME="Usb_Interface_Descriptor()"><!-- --></A><H3>
|
313 |
|
|
Usb_Interface_Descriptor</H3>
|
314 |
|
|
<PRE>
|
315 |
|
|
public <B>Usb_Interface_Descriptor</B>()</PRE>
|
316 |
|
|
<DL>
|
317 |
|
|
</DL>
|
318 |
|
|
|
319 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
320 |
|
|
|
321 |
|
|
<A NAME="method_detail"><!-- --></A>
|
322 |
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
323 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
324 |
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
325 |
|
|
<B>Method Detail</B></FONT></TH>
|
326 |
|
|
</TR>
|
327 |
|
|
</TABLE>
|
328 |
|
|
|
329 |
|
|
<A NAME="toString()"><!-- --></A><H3>
|
330 |
|
|
toString</H3>
|
331 |
|
|
<PRE>
|
332 |
|
|
public java.lang.String <B>toString</B>()</PRE>
|
333 |
|
|
<DL>
|
334 |
|
|
<DD><DL>
|
335 |
|
|
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
|
336 |
|
|
</DD>
|
337 |
|
|
<DD><DL>
|
338 |
|
|
</DL>
|
339 |
|
|
</DD>
|
340 |
|
|
</DL>
|
341 |
|
|
<HR>
|
342 |
|
|
|
343 |
|
|
<A NAME="getBAlternateSetting()"><!-- --></A><H3>
|
344 |
|
|
getBAlternateSetting</H3>
|
345 |
|
|
<PRE>
|
346 |
|
|
public byte <B>getBAlternateSetting</B>()</PRE>
|
347 |
|
|
<DL>
|
348 |
5 |
ZTEX |
<DD>Returns the value used to select the alternate setting (<A HREF="../../../ch/ntb/usb/LibusbJava.html#usb_set_altinterface(long, int)"><CODE>LibusbJava.usb_set_altinterface(long, int)</CODE></A>).<br>
|
349 |
2 |
ZTEX |
<P>
|
350 |
|
|
<DD><DL>
|
351 |
|
|
|
352 |
|
|
<DT><B>Returns:</B><DD>the alternate setting</DL>
|
353 |
|
|
</DD>
|
354 |
|
|
</DL>
|
355 |
|
|
<HR>
|
356 |
|
|
|
357 |
|
|
<A NAME="getBInterfaceClass()"><!-- --></A><H3>
|
358 |
|
|
getBInterfaceClass</H3>
|
359 |
|
|
<PRE>
|
360 |
|
|
public byte <B>getBInterfaceClass</B>()</PRE>
|
361 |
|
|
<DL>
|
362 |
|
|
<DD>Returns the class code (Assigned by <a
|
363 |
|
|
href="http://www.usb.org">www.usb.org</a>).<br>
|
364 |
|
|
<P>
|
365 |
|
|
<DD><DL>
|
366 |
|
|
|
367 |
|
|
<DT><B>Returns:</B><DD>the class code</DL>
|
368 |
|
|
</DD>
|
369 |
|
|
</DL>
|
370 |
|
|
<HR>
|
371 |
|
|
|
372 |
|
|
<A NAME="getBInterfaceNumber()"><!-- --></A><H3>
|
373 |
|
|
getBInterfaceNumber</H3>
|
374 |
|
|
<PRE>
|
375 |
|
|
public byte <B>getBInterfaceNumber</B>()</PRE>
|
376 |
|
|
<DL>
|
377 |
|
|
<DD>Returns the number (identifier) of this interface.<br>
|
378 |
|
|
<P>
|
379 |
|
|
<DD><DL>
|
380 |
|
|
|
381 |
|
|
<DT><B>Returns:</B><DD>the number (identifier) of this interface</DL>
|
382 |
|
|
</DD>
|
383 |
|
|
</DL>
|
384 |
|
|
<HR>
|
385 |
|
|
|
386 |
|
|
<A NAME="getBInterfaceProtocol()"><!-- --></A><H3>
|
387 |
|
|
getBInterfaceProtocol</H3>
|
388 |
|
|
<PRE>
|
389 |
|
|
public byte <B>getBInterfaceProtocol</B>()</PRE>
|
390 |
|
|
<DL>
|
391 |
|
|
<DD>Returns the protocol code (Assigned by <a
|
392 |
|
|
href="http://www.usb.org">www.usb.org</a>).<br>
|
393 |
|
|
<P>
|
394 |
|
|
<DD><DL>
|
395 |
|
|
|
396 |
|
|
<DT><B>Returns:</B><DD>the protocol code</DL>
|
397 |
|
|
</DD>
|
398 |
|
|
</DL>
|
399 |
|
|
<HR>
|
400 |
|
|
|
401 |
|
|
<A NAME="getBInterfaceSubClass()"><!-- --></A><H3>
|
402 |
|
|
getBInterfaceSubClass</H3>
|
403 |
|
|
<PRE>
|
404 |
|
|
public byte <B>getBInterfaceSubClass</B>()</PRE>
|
405 |
|
|
<DL>
|
406 |
|
|
<DD>Returns the subclass code (Assigned by <a
|
407 |
|
|
href="http://www.usb.org">www.usb.org</a>).<br>
|
408 |
|
|
<P>
|
409 |
|
|
<DD><DL>
|
410 |
|
|
|
411 |
|
|
<DT><B>Returns:</B><DD>the subclass code</DL>
|
412 |
|
|
</DD>
|
413 |
|
|
</DL>
|
414 |
|
|
<HR>
|
415 |
|
|
|
416 |
|
|
<A NAME="getBNumEndpoints()"><!-- --></A><H3>
|
417 |
|
|
getBNumEndpoints</H3>
|
418 |
|
|
<PRE>
|
419 |
|
|
public byte <B>getBNumEndpoints</B>()</PRE>
|
420 |
|
|
<DL>
|
421 |
|
|
<DD>Returns the number of endpoints used for this interface.<br>
|
422 |
|
|
<P>
|
423 |
|
|
<DD><DL>
|
424 |
|
|
|
425 |
|
|
<DT><B>Returns:</B><DD>the number of endpoints used for this interface</DL>
|
426 |
|
|
</DD>
|
427 |
|
|
</DL>
|
428 |
|
|
<HR>
|
429 |
|
|
|
430 |
|
|
<A NAME="getEndpoint()"><!-- --></A><H3>
|
431 |
|
|
getEndpoint</H3>
|
432 |
|
|
<PRE>
|
433 |
|
|
public <A HREF="../../../ch/ntb/usb/Usb_Endpoint_Descriptor.html" title="class in ch.ntb.usb">Usb_Endpoint_Descriptor</A>[] <B>getEndpoint</B>()</PRE>
|
434 |
|
|
<DL>
|
435 |
|
|
<DD>Returns an array of endpoint descriptors.<br>
|
436 |
|
|
<P>
|
437 |
|
|
<DD><DL>
|
438 |
|
|
|
439 |
|
|
<DT><B>Returns:</B><DD>an array of endpoint descriptors</DL>
|
440 |
|
|
</DD>
|
441 |
|
|
</DL>
|
442 |
|
|
<HR>
|
443 |
|
|
|
444 |
|
|
<A NAME="getExtra()"><!-- --></A><H3>
|
445 |
|
|
getExtra</H3>
|
446 |
|
|
<PRE>
|
447 |
|
|
public byte[] <B>getExtra</B>()</PRE>
|
448 |
|
|
<DL>
|
449 |
|
|
<DD>Returns the data of extra descriptor(s) if available.<br>
|
450 |
|
|
<P>
|
451 |
|
|
<DD><DL>
|
452 |
|
|
|
453 |
|
|
<DT><B>Returns:</B><DD>null or a byte array with the extra descriptor data</DL>
|
454 |
|
|
</DD>
|
455 |
|
|
</DL>
|
456 |
|
|
<HR>
|
457 |
|
|
|
458 |
|
|
<A NAME="getExtralen()"><!-- --></A><H3>
|
459 |
|
|
getExtralen</H3>
|
460 |
|
|
<PRE>
|
461 |
|
|
public int <B>getExtralen</B>()</PRE>
|
462 |
|
|
<DL>
|
463 |
|
|
<DD>Returns the number of bytes of the extra descriptor.<br>
|
464 |
|
|
<P>
|
465 |
|
|
<DD><DL>
|
466 |
|
|
|
467 |
|
|
<DT><B>Returns:</B><DD>the number of bytes of the extra descriptor</DL>
|
468 |
|
|
</DD>
|
469 |
|
|
</DL>
|
470 |
|
|
<HR>
|
471 |
|
|
|
472 |
|
|
<A NAME="getIInterface()"><!-- --></A><H3>
|
473 |
|
|
getIInterface</H3>
|
474 |
|
|
<PRE>
|
475 |
|
|
public byte <B>getIInterface</B>()</PRE>
|
476 |
|
|
<DL>
|
477 |
|
|
<DD>Returns the index of the String descriptor describing this interface.<br>
|
478 |
|
|
<P>
|
479 |
|
|
<DD><DL>
|
480 |
|
|
|
481 |
|
|
<DT><B>Returns:</B><DD>the index of the String descriptor</DL>
|
482 |
|
|
</DD>
|
483 |
|
|
</DL>
|
484 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
485 |
|
|
<HR>
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
489 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
490 |
|
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
491 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
492 |
|
|
<TR>
|
493 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
494 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
495 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
496 |
|
|
<TR ALIGN="center" VALIGN="top">
|
497 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
498 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
499 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
500 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
501 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
502 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
503 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
504 |
|
|
</TR>
|
505 |
|
|
</TABLE>
|
506 |
|
|
</TD>
|
507 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
508 |
|
|
</EM>
|
509 |
|
|
</TD>
|
510 |
|
|
</TR>
|
511 |
|
|
|
512 |
|
|
<TR>
|
513 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
514 |
|
|
<A HREF="../../../ch/ntb/usb/Usb_Interface.html" title="class in ch.ntb.usb"><B>PREV CLASS</B></A>
|
515 |
|
|
<A HREF="../../../ch/ntb/usb/USBException.html" title="class in ch.ntb.usb"><B>NEXT CLASS</B></A></FONT></TD>
|
516 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
517 |
|
|
<A HREF="../../../index.html?ch/ntb/usb/Usb_Interface_Descriptor.html" target="_top"><B>FRAMES</B></A>
|
518 |
|
|
<A HREF="Usb_Interface_Descriptor.html" target="_top"><B>NO FRAMES</B></A>
|
519 |
|
|
<SCRIPT type="text/javascript">
|
520 |
|
|
<!--
|
521 |
|
|
if(window==top) {
|
522 |
|
|
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
523 |
|
|
}
|
524 |
|
|
//-->
|
525 |
|
|
</SCRIPT>
|
526 |
|
|
<NOSCRIPT>
|
527 |
|
|
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
528 |
|
|
</NOSCRIPT>
|
529 |
|
|
|
530 |
|
|
|
531 |
|
|
</FONT></TD>
|
532 |
|
|
</TR>
|
533 |
|
|
<TR>
|
534 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
535 |
|
|
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
536 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
537 |
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
538 |
|
|
</TR>
|
539 |
|
|
</TABLE>
|
540 |
|
|
<A NAME="skip-navbar_bottom"></A>
|
541 |
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
542 |
|
|
|
543 |
|
|
<HR>
|
544 |
|
|
|
545 |
|
|
</BODY>
|
546 |
|
|
</HTML>
|