<!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: acr122.c File 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.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="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <h1>acr122.c File Reference</h1> </div> </div> <div class="contents"> <p>Driver for ACR122 devices (e.g. Tikitag, Touchatag, ACS ACR122) <a href="#_details">More...</a></p> <div class="textblock"><code>#include <stdio.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <stddef.h></code><br/> <code>#include <string.h></code><br/> <code>#include "<a class="el" href="acr122_8h_source.html">acr122.h</a>"</code><br/> <code>#include "<a class="el" href="drivers_8h_source.html">../drivers.h</a>"</code><br/> <code>#include <winscard.h></code><br/> <code>#include <nfc/nfc.h></code><br/> <code>#include <nfc/nfc-messages.h></code><br/> </div> <p><a href="acr122_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="acr122_8c.html#adc85ab1dd678e181048fa7292d880251">acr122_list_devices</a> (<a class="el" href="structnfc__device__desc__t.html">nfc_device_desc_t</a> pnddDevices[], size_t szDevices, size_t *pszDeviceFound)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">List connected devices. <a href="#adc85ab1dd678e181048fa7292d880251"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Driver for ACR122 devices (e.g. Tikitag, Touchatag, ACS ACR122) </p> <p>Definition in file <a class="el" href="acr122_8c_source.html">acr122.c</a>.</p> </div><hr/><h2>Function Documentation</h2> <a class="anchor" id="adc85ab1dd678e181048fa7292d880251"></a><!-- doxytag: member="acr122.c::acr122_list_devices" ref="adc85ab1dd678e181048fa7292d880251" args="(nfc_device_desc_t pnddDevices[], size_t szDevices, size_t *pszDeviceFound)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool acr122_list_devices </td> <td>(</td> <td class="paramtype"><a class="el" href="structnfc__device__desc__t.html">nfc_device_desc_t</a> </td> <td class="paramname"><em>pnddDevices</em>[], </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"><em>szDevices</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t * </td> <td class="paramname"><em>pszDeviceFound</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>List connected devices. </p> <p>Probe PCSC to find NFC capable hardware.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pnddDevices</td><td>Array of <a class="el" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a> previously allocated by the caller. </td></tr> <tr><td class="paramname">szDevices</td><td>size of the pnddDevices array. </td></tr> <tr><td class="paramname">pszDeviceFound</td><td>number of devices found. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>true if succeeded, false otherwise. </dd></dl> <p>Definition at line <a class="el" href="acr122_8c_source.html#l00147">147</a> of file <a class="el" href="acr122_8c_source.html">acr122.c</a>.</p> </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>