<!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>libnfc: pn53x_usb.h Source File</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.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libnfc <span id="projectnumber">1.4.2</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_fd1c9d0a8b12e3b9059fa72e8f6f49bb.html">libnfc</a> </li> <li class="navelem"><a class="el" href="dir_f6487a516c33f7a4d7b1775e3b9657a7.html">drivers</a> </li> </ul> </div> </div> <div class="header"> <div class="headertitle"> <h1>pn53x_usb.h</h1> </div> </div> <div class="contents"> <a href="pn53x__usb_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00024"></a>00024 <span class="preprocessor">#include <usb.h></span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00027"></a>00027 uint16_t idVendor; <a name="l00028"></a>00028 uint16_t idProduct; <a name="l00029"></a>00029 } usb_candidate_t; <a name="l00030"></a>00030 <a name="l00031"></a>00031 <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00032"></a>00032 usb_dev_handle *pudh; <a name="l00033"></a>00033 usb_candidate_t uc; <a name="l00034"></a>00034 uint32_t uiEndPointIn; <a name="l00035"></a>00035 uint32_t uiEndPointOut; <a name="l00036"></a>00036 uint32_t wMaxPacketSize; <a name="l00037"></a>00037 } usb_spec_t; <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keywordtype">void</span> get_end_points (<span class="keyword">struct</span> usb_device *dev, usb_spec_t * pus); <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keywordtype">bool</span> pn53x_usb_list_devices (<a class="code" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a> pnddDevices[], <span class="keywordtype">size_t</span> szDevices, <span class="keywordtype">size_t</span> * pszDeviceFound, <a name="l00042"></a>00042 usb_candidate_t candidates[], <span class="keywordtype">int</span> num_candidates, <span class="keywordtype">char</span> *target_name); <a name="l00043"></a>00043 <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> *pn53x_usb_connect (<span class="keyword">const</span> <a class="code" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a> * pndd, <span class="keyword">const</span> <span class="keywordtype">char</span> *target_name, <span class="keywordtype">int</span> target_chip); <a name="l00044"></a>00044 <span class="keywordtype">bool</span> pn53x_usb_transceive (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> byte_t * pbtTx, <span class="keyword">const</span> <span class="keywordtype">size_t</span> szTx, byte_t * pbtRx, <a name="l00045"></a>00045 <span class="keywordtype">size_t</span> * pszRx); <a name="l00046"></a>00046 <span class="keywordtype">void</span> pn53x_usb_disconnect (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd); </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Feb 23 2011 for libnfc by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>