Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > f48b0484566fe5f15f1edab7e7e31247 > files > 39

lib64usb1.0-devel-1.0.7-3mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libusb: libusb_interface_descriptor Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>libusb_interface_descriptor Struct Reference<br/>
<small>
[<a class="el" href="group__desc.html">USB descriptors</a>]</small>
</h1><!-- doxytag: class="libusb_interface_descriptor" -->
<p>A structure representing the standard USB interface descriptor.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="libusb_8h_source.html">libusb.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a646b7bf875e5b927796d47e57c9182b8"></a><!-- doxytag: member="libusb_interface_descriptor::bLength" ref="a646b7bf875e5b927796d47e57c9182b8" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a646b7bf875e5b927796d47e57c9182b8">bLength</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Size of this descriptor (in bytes). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#affe977ae83d3bbf07513d87ebfb6ed0e">bDescriptorType</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Descriptor type.  <a href="#affe977ae83d3bbf07513d87ebfb6ed0e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75046f443d3330f590f3d3fb1f9df863"></a><!-- doxytag: member="libusb_interface_descriptor::bInterfaceNumber" ref="a75046f443d3330f590f3d3fb1f9df863" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a75046f443d3330f590f3d3fb1f9df863">bInterfaceNumber</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of this interface. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c94bce217e8ecd5fd23728510e9c838"></a><!-- doxytag: member="libusb_interface_descriptor::bAlternateSetting" ref="a2c94bce217e8ecd5fd23728510e9c838" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a2c94bce217e8ecd5fd23728510e9c838">bAlternateSetting</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Value used to select this alternate setting for this interface. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a487bd2058bfbe749d370c6e7d3add20e">bNumEndpoints</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of endpoints used by this interface (excluding the control endpoint).  <a href="#a487bd2058bfbe749d370c6e7d3add20e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a19dcf80e6a5fedf3d3673630897ad649">bInterfaceClass</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">USB-IF class code for this interface.  <a href="#a19dcf80e6a5fedf3d3673630897ad649"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0b9b890f84694a4e6a0103944e1247f4"></a><!-- doxytag: member="libusb_interface_descriptor::bInterfaceSubClass" ref="a0b9b890f84694a4e6a0103944e1247f4" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a0b9b890f84694a4e6a0103944e1247f4">bInterfaceSubClass</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">USB-IF subclass code for this interface, qualified by the bInterfaceClass value. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5062bbb17fc76e6c3624ea7ca68d554c"></a><!-- doxytag: member="libusb_interface_descriptor::bInterfaceProtocol" ref="a5062bbb17fc76e6c3624ea7ca68d554c" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a5062bbb17fc76e6c3624ea7ca68d554c">bInterfaceProtocol</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">USB-IF protocol code for this interface, qualified by the bInterfaceClass and bInterfaceSubClass values. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19227cc111c27e27c2c07430777e1ab8"></a><!-- doxytag: member="libusb_interface_descriptor::iInterface" ref="a19227cc111c27e27c2c07430777e1ab8" args="" -->
uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a19227cc111c27e27c2c07430777e1ab8">iInterface</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Index of string descriptor describing this interface. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlibusb__endpoint__descriptor.html">libusb_endpoint_descriptor</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#a44eb8efab382a6a793bb994c6f15fcb9">endpoint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of endpoint descriptors.  <a href="#a44eb8efab382a6a793bb994c6f15fcb9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const unsigned char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#aa1169e8c0b22a9928bbd51169609f31d">extra</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Extra descriptors.  <a href="#aa1169e8c0b22a9928bbd51169609f31d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlibusb__interface__descriptor.html#ad77fa0b951a83d0c7eac28920367f200">extra_length</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Length of the extra descriptors, in bytes.  <a href="#ad77fa0b951a83d0c7eac28920367f200"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A structure representing the standard USB interface descriptor. </p>
<p>This descriptor is documented in section 9.6.5 of the USB 2.0 specification. All multiple-byte fields are represented in host-endian format. </p>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="affe977ae83d3bbf07513d87ebfb6ed0e"></a><!-- doxytag: member="libusb_interface_descriptor::bDescriptorType" ref="affe977ae83d3bbf07513d87ebfb6ed0e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="structlibusb__interface__descriptor.html#affe977ae83d3bbf07513d87ebfb6ed0e">libusb_interface_descriptor::bDescriptorType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Descriptor type. </p>
<p>Will have value <a class="el" href="group__desc.html#gga0a2e8a25dfdebf29fdd4764dcdbc1a9ca797f18e35ee27434562aed0c20c46b78">libusb_descriptor_type::LIBUSB_DT_INTERFACE</a> LIBUSB_DT_INTERFACE in this context. </p>

</div>
</div>
<a class="anchor" id="a487bd2058bfbe749d370c6e7d3add20e"></a><!-- doxytag: member="libusb_interface_descriptor::bNumEndpoints" ref="a487bd2058bfbe749d370c6e7d3add20e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="structlibusb__interface__descriptor.html#a487bd2058bfbe749d370c6e7d3add20e">libusb_interface_descriptor::bNumEndpoints</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Number of endpoints used by this interface (excluding the control endpoint). </p>

</div>
</div>
<a class="anchor" id="a19dcf80e6a5fedf3d3673630897ad649"></a><!-- doxytag: member="libusb_interface_descriptor::bInterfaceClass" ref="a19dcf80e6a5fedf3d3673630897ad649" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="structlibusb__interface__descriptor.html#a19dcf80e6a5fedf3d3673630897ad649">libusb_interface_descriptor::bInterfaceClass</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>USB-IF class code for this interface. </p>
<p>See <a class="el" href="group__desc.html#gac529888effbefef8af4f9d17ebc903a1">libusb_class_code</a>. </p>

</div>
</div>
<a class="anchor" id="a44eb8efab382a6a793bb994c6f15fcb9"></a><!-- doxytag: member="libusb_interface_descriptor::endpoint" ref="a44eb8efab382a6a793bb994c6f15fcb9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlibusb__endpoint__descriptor.html">libusb_endpoint_descriptor</a>* <a class="el" href="structlibusb__interface__descriptor.html#a44eb8efab382a6a793bb994c6f15fcb9">libusb_interface_descriptor::endpoint</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Array of endpoint descriptors. </p>
<p>This length of this array is determined by the bNumEndpoints field. </p>

</div>
</div>
<a class="anchor" id="aa1169e8c0b22a9928bbd51169609f31d"></a><!-- doxytag: member="libusb_interface_descriptor::extra" ref="aa1169e8c0b22a9928bbd51169609f31d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const unsigned char* <a class="el" href="structlibusb__interface__descriptor.html#aa1169e8c0b22a9928bbd51169609f31d">libusb_interface_descriptor::extra</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Extra descriptors. </p>
<p>If libusb encounters unknown interface descriptors, it will store them here, should you wish to parse them. </p>

</div>
</div>
<a class="anchor" id="ad77fa0b951a83d0c7eac28920367f200"></a><!-- doxytag: member="libusb_interface_descriptor::extra_length" ref="ad77fa0b951a83d0c7eac28920367f200" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="structlibusb__interface__descriptor.html#ad77fa0b951a83d0c7eac28920367f200">libusb_interface_descriptor::extra_length</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Length of the extra descriptors, in bytes. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="libusb_8h_source.html">libusb.h</a></li>
</ul>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Wed Apr 28 09:03:59 2010 for libusb by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>