Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > f831237475ece7d1519c6812064707d4 > files > 88

libnfc-devel-1.4.2-1.fc14.i686.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>libnfc: nfc.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&#160;<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&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;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_41028febda0963323f7e6054c1e7205d.html">include</a>      </li>
      <li class="navelem"><a class="el" href="dir_70f07fa48bb0d24326c844d55c4ad9eb.html">nfc</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1>nfc.h</h1>  </div>
</div>
<div class="contents">
<a href="nfc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*-</span>
<a name="l00002"></a>00002 <span class="comment"> * Public platform independent Near Field Communication (NFC) library</span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2009, Roel Verdult</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2010, Romuald Conty</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * This program is free software: you can redistribute it and/or modify it</span>
<a name="l00008"></a>00008 <span class="comment"> * under the terms of the GNU Lesser General Public License as published by the</span>
<a name="l00009"></a>00009 <span class="comment"> * Free Software Foundation, either version 3 of the License, or (at your</span>
<a name="l00010"></a>00010 <span class="comment"> * option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * This program is distributed in the hope that it will be useful, but WITHOUT</span>
<a name="l00013"></a>00013 <span class="comment"> * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or</span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for</span>
<a name="l00015"></a>00015 <span class="comment"> * more details.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> * You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00018"></a>00018 <span class="comment"> * along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef _LIBNFC_H_</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#  define _LIBNFC_H_</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#  include &lt;stdint.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#  include &lt;stdbool.h&gt;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#  ifdef _WIN32</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>  <span class="comment">/* Windows platform */</span>
<a name="l00036"></a>00036 <span class="preprocessor">#    ifndef _WINDLL</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>    <span class="comment">/* CMake compilation */</span>
<a name="l00038"></a>00038 <span class="preprocessor">#      ifdef nfc_EXPORTS</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#        define  NFC_EXPORT __declspec(dllexport)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#      else</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>      <span class="comment">/* nfc_EXPORTS */</span>
<a name="l00042"></a>00042 <span class="preprocessor">#        define  NFC_EXPORT __declspec(dllimport)</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#      endif</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>       <span class="comment">/* nfc_EXPORTS */</span>
<a name="l00045"></a>00045 <span class="preprocessor">#    else</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>      <span class="comment">/* _WINDLL */</span>
<a name="l00047"></a>00047     <span class="comment">/* Manual makefile */</span>
<a name="l00048"></a>00048 <span class="preprocessor">#      define NFC_EXPORT</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#    endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>       <span class="comment">/* _WINDLL */</span>
<a name="l00051"></a>00051 <span class="preprocessor">#  else</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>      <span class="comment">/* _WIN32 */</span>
<a name="l00053"></a>00053 <span class="preprocessor">#    define NFC_EXPORT</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>       <span class="comment">/* _WIN32 */</span>
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 <span class="preprocessor">#  include &lt;nfc/nfc-types.h&gt;</span>
<a name="l00058"></a>00058 
<a name="l00059"></a>00059 <span class="preprocessor">#  ifdef __cplusplus</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="keyword">extern</span>  <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00061"></a>00061 <span class="preprocessor">#  endif                        // __cplusplus</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 <span class="comment">/* NFC Device/Hardware manipulation */</span>
<a name="l00064"></a>00064   NFC_EXPORT <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> *<a class="code" href="nfc_8c.html#aff0c2c92d2fc81e5dc93150fc72a7de6" title="Connect to a NFC device.">nfc_connect</a> (<a class="code" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a> * pndd);
<a name="l00065"></a>00065   NFC_EXPORT <span class="keywordtype">void</span> <a class="code" href="nfc_8c.html#a442dc68878c3a0bb7e3293c8fd96afb0" title="Disconnect from a NFC device.">nfc_disconnect</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd);
<a name="l00066"></a>00066   NFC_EXPORT <span class="keywordtype">void</span> <a class="code" href="nfc_8c.html#a9073e8bf5089392979b187758f2cd7f9" title="Probe for discoverable supported devices (ie. only available for some drivers)">nfc_list_devices</a> (<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="l00067"></a>00067   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a6cd940508b34b99c6c94173f8300d069" title="Configure advanced NFC device settings.">nfc_configure</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311e" title="NFC device option.">nfc_device_option_t</a> ndo, <span class="keyword">const</span> <span class="keywordtype">bool</span> bEnable);
<a name="l00068"></a>00068 
<a name="l00069"></a>00069 <span class="comment">/* NFC initiator: act as &quot;reader&quot; */</span>
<a name="l00070"></a>00070   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a1c05aadcf1b30e8d69969dfd74a793f2" title="Initialize NFC device as initiator (reader)">nfc_initiator_init</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd);
<a name="l00071"></a>00071   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#acff0e43e51d7a2c8d750d09fa5265e16" title="Select a passive or emulated tag.">nfc_initiator_select_passive_target</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> <a class="code" href="structnfc__modulation__t.html" title="NFC modulation structure.">nfc_modulation_t</a> nm,
<a name="l00072"></a>00072                                                        <span class="keyword">const</span> byte_t * pbtInitData, <span class="keyword">const</span> <span class="keywordtype">size_t</span> szInitData,
<a name="l00073"></a>00073                                                        <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a> * pnt);
<a name="l00074"></a>00074   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#ab025cffb3ee8e67beea7accea97ede16" title="List passive or emulated tags.">nfc_initiator_list_passive_targets</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> <a class="code" href="structnfc__modulation__t.html" title="NFC modulation structure.">nfc_modulation_t</a> nm,
<a name="l00075"></a>00075                                                       <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a> ant[], <span class="keyword">const</span> <span class="keywordtype">size_t</span> szTargets,
<a name="l00076"></a>00076                                                       <span class="keywordtype">size_t</span> * pszTargetFound);
<a name="l00077"></a>00077   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a2a5d72c36fbb65e208d7a38a0a7080d1" title="Polling for NFC targets.">nfc_initiator_poll_targets</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> <a class="code" href="structnfc__modulation__t.html" title="NFC modulation structure.">nfc_modulation_t</a> * pnmTargetTypes,
<a name="l00078"></a>00078                                               <span class="keyword">const</span> <span class="keywordtype">size_t</span> szTargetTypes, <span class="keyword">const</span> byte_t btPollNr, <span class="keyword">const</span> byte_t btPeriod,
<a name="l00079"></a>00079                                               <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a> * pntTargets, <span class="keywordtype">size_t</span> * pszTargetFound);
<a name="l00080"></a>00080   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#ae96adb1fa222b989f7118e373a0d01c9" title="Select a target and request active or passive mode for D.E.P. (Data Exchange Protocol)">nfc_initiator_select_dep_target</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd,
<a name="l00081"></a>00081                                                    <span class="keyword">const</span> <a class="code" href="nfc-types_8h.html#a0403437f90b1c17f0177fc26c1f4e0fc" title="NFC D.E.P. (Data Exchange Protocol) active/passive mode.">nfc_dep_mode_t</a> ndm, <span class="keyword">const</span> <a class="code" href="nfc-types_8h.html#ae9d7b01916fb677e7c0ad1de171b1fdd" title="NFC baud rate enumeration.">nfc_baud_rate_t</a> nbr,
<a name="l00082"></a>00082                                                    <span class="keyword">const</span> <a class="code" href="structnfc__dep__info__t.html" title="NFC target information in D.E.P. (Data Exchange Protocol) see ISO/IEC 18092 (NFCIP-1)">nfc_dep_info_t</a> * pndiInitiator,
<a name="l00083"></a>00083                                                    <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a> * pnt);
<a name="l00084"></a>00084   NFC_EXPORT <span class="keywordtype">bool</span> nfc_initiator_deselect_target (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd);
<a name="l00085"></a>00085   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a9e32d7ad73ef60bb198a8f0d36da0890" title="Send data to target then retrieve data from target.">nfc_initiator_transceive_bytes</a> (<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,
<a name="l00086"></a>00086                                                   byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRx);
<a name="l00087"></a>00087   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#aa20007e4440af8d489dc6745f0219d4c" title="Transceive raw bit-frames to a target.">nfc_initiator_transceive_bits</a> (<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> szTxBits,
<a name="l00088"></a>00088                                                  <span class="keyword">const</span> byte_t * pbtTxPar, byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRxBits,
<a name="l00089"></a>00089                                                  byte_t * pbtRxPar);
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="comment">/* NFC target: act as tag (i.e. MIFARE Classic) or NFC target device. */</span>
<a name="l00092"></a>00092   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a2e021479b99fbd60cf5f037b2daa3007" title="Initialize NFC device as an emulated tag.">nfc_target_init</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a> * pnt, byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRx);
<a name="l00093"></a>00093   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#af75f631996a44331f8b2e6ea9e56585d" title="Send bytes and APDU frames.">nfc_target_send_bytes</a> (<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);
<a name="l00094"></a>00094   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#aa2f4fac4826ea6a6e428af5e7b68fe4a" title="Receive bytes and APDU frames.">nfc_target_receive_bytes</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRx);
<a name="l00095"></a>00095   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a13e7015472f2385e1f3a46ddfe95f980" title="Send raw bit-frames.">nfc_target_send_bits</a> (<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> szTxBits,
<a name="l00096"></a>00096                                         <span class="keyword">const</span> byte_t * pbtTxPar);
<a name="l00097"></a>00097   NFC_EXPORT <span class="keywordtype">bool</span> <a class="code" href="nfc_8c.html#a655c79686ca6d03e788cd81eed3c69f1" title="Receive bit-frames.">nfc_target_receive_bits</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRxBits, byte_t * pbtRxPar);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">/* Error reporting */</span>
<a name="l00100"></a>00100   NFC_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="nfc_8c.html#ab3184acf7359428eae219ffe852934ae" title="Return the PCD error string.">nfc_strerror</a> (<span class="keyword">const</span> <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd);
<a name="l00101"></a>00101   NFC_EXPORT <span class="keywordtype">int</span> <a class="code" href="nfc_8c.html#a00302e5d8c4cc2b238cc3bd5d518a316" title="Renders the PCD error in pcStrErrBuf for a maximum size of szBufLen chars.">nfc_strerror_r</a> (<span class="keyword">const</span> <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keywordtype">char</span> *pcStrErrBuf, <span class="keywordtype">size_t</span> szBufLen);
<a name="l00102"></a>00102   NFC_EXPORT <span class="keywordtype">void</span> <a class="code" href="nfc_8c.html#a111b9182fc80b309b56009e9c6be7454" title="Display the PCD error a-la perror.">nfc_perror</a> (<span class="keyword">const</span> <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd, <span class="keyword">const</span> <span class="keywordtype">char</span> *pcString);
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 <span class="comment">/* Special data accessors */</span>
<a name="l00105"></a>00105   NFC_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="nfc_8c.html#a77294d0598dcdfbea7dd9efd3b939969" title="Returns the device name.">nfc_device_name</a> (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="comment">/* Misc. functions */</span>
<a name="l00108"></a>00108   NFC_EXPORT <span class="keywordtype">void</span> iso14443a_crc (byte_t * pbtData, <span class="keywordtype">size_t</span> szLen, byte_t * pbtCrc);
<a name="l00109"></a>00109   NFC_EXPORT <span class="keywordtype">void</span> iso14443a_crc_append (byte_t * pbtData, <span class="keywordtype">size_t</span> szLen);
<a name="l00110"></a>00110   NFC_EXPORT byte_t * iso14443a_locate_historical_bytes (byte_t * pbtAts, <span class="keywordtype">size_t</span> szAts, <span class="keywordtype">size_t</span> * pszTk);
<a name="l00111"></a>00111   NFC_EXPORT <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="nfc_8c.html#aa48f27c0f93d6508ad9a5ae01ab054d4" title="Returns the library version.">nfc_version</a> (<span class="keywordtype">void</span>);
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="comment">/* PN53x specific errors */</span>
<a name="l00114"></a>00114 <span class="comment">// TODO: Be not PN53x-specific here</span>
<a name="l00115"></a>00115 <span class="preprocessor">#define ETIMEOUT  0x01</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor">#define ECRC    0x02</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#define EPARITY   0x03</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#define EBITCOUNT 0x04</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#define EFRAMING  0x05</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#define EBITCOLL  0x06</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor">#define ESMALLBUF 0x07</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#define EBUFOVF   0x09</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#define ERFTIMEOUT  0x0a</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#define ERFPROTO  0x0b</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor">#define EOVHEAT   0x0d</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#define EINBUFOVF 0x0e</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#define EINVPARAM 0x10</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#define EDEPUNKCMD  0x12</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#define EINVRXFRAM  0x13</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#define EMFAUTH   0x14</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#define ENSECNOTSUPP  0x18  // PN533 only</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#define EBCC    0x23</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#define EDEPINVSTATE  0x25</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#define EOPNOTALL 0x26</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#define ECMD    0x27</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define ETGREL    0x29</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#define ECID    0x2a</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span><span class="preprocessor">#define ECDISCARDED 0x2b</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#define ENFCID3   0x2c</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="preprocessor">#define EOVCURRENT  0x2d</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#define ENAD    0x2e</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span>
<a name="l00143"></a>00143 <span class="comment">/* Software level errors */</span>
<a name="l00144"></a>00144 <span class="preprocessor">#define ETGUIDNOTSUP    0x0100  </span><span class="comment">/* Target UID not supported */</span>
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="comment">/* Common device-level errors */</span>
<a name="l00147"></a>00147 <span class="preprocessor">#define DEIO            0x1000  </span><span class="comment">/* Input/output error */</span>
<a name="l00148"></a>00148 <span class="preprocessor">#define DEINVAL         0x2000  </span><span class="comment">/* Invalid argument */</span>
<a name="l00149"></a>00149 <span class="preprocessor">#define DETIMEOUT       0x3000  </span><span class="comment">/* Operation timeout */</span>
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="preprocessor">#  ifdef __cplusplus</span>
<a name="l00152"></a>00152 <span class="preprocessor"></span>}
<a name="l00153"></a>00153 <span class="preprocessor">#  endif                        // __cplusplus</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span><span class="preprocessor">#endif                          // _LIBNFC_H_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Feb 23 2011 for libnfc by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>