<!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-types.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_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-types.h</h1> </div> </div> <div class="contents"> <a href="nfc-types_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <a name="l00025"></a>00025 <span class="preprocessor">#ifndef __NFC_TYPES_H__</span> <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor"># define __NFC_TYPES_H__</span> <a name="l00027"></a>00027 <span class="preprocessor"></span> <a name="l00034"></a>00034 <span class="preprocessor"># include <stddef.h></span> <a name="l00035"></a>00035 <span class="preprocessor"># include <stdint.h></span> <a name="l00036"></a>00036 <span class="preprocessor"># include <stdbool.h></span> <a name="l00037"></a>00037 <span class="preprocessor"># include <stdio.h></span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">typedef</span> uint8_t byte_t; <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00042"></a>00042 NC_PN531 = 0x10, <a name="l00043"></a>00043 NC_PN532 = 0x20, <a name="l00044"></a>00044 NC_PN533 = 0x30, <a name="l00045"></a>00045 } nfc_chip_t; <a name="l00046"></a>00046 <a name="l00047"></a>00047 <span class="keyword">struct </span><a class="code" href="structdriver__callbacks.html" title="Generic structure to handle NFC device functions.">driver_callbacks</a>; <span class="comment">// Prototype the callback struct</span> <a name="l00048"></a>00048 <a name="l00049"></a>00049 <span class="keyword">typedef</span> <span class="keywordtype">void</span> *nfc_device_spec_t; <span class="comment">// Device connection specification</span> <a name="l00050"></a>00050 <a name="l00051"></a>00051 <span class="preprocessor"># define DEVICE_NAME_LENGTH 256</span> <a name="l00052"></a>00052 <span class="preprocessor"></span> <a name="l00056"></a><a class="code" href="structnfc__device__t.html">00056</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00058"></a><a class="code" href="structnfc__device__t.html#ad0a5bc20d415e037233d637817234a64">00058</a> <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structdriver__callbacks.html" title="Generic structure to handle NFC device functions.">driver_callbacks</a> *<a class="code" href="structnfc__device__t.html#ad0a5bc20d415e037233d637817234a64">pdc</a>; <a name="l00060"></a><a class="code" href="structnfc__device__t.html#a3933f0bea196fedca0345a7f940dc85b">00060</a> <span class="keywordtype">char</span> acName[DEVICE_NAME_LENGTH]; <a name="l00062"></a><a class="code" href="structnfc__device__t.html#ac38d710f875a0ffbee062569f513dfff">00062</a> nfc_chip_t <a class="code" href="structnfc__device__t.html#ac38d710f875a0ffbee062569f513dfff">nc</a>; <a name="l00064"></a><a class="code" href="structnfc__device__t.html#a2cef5cf7a0f7590c2398bac39bef7bee">00064</a> nfc_device_spec_t <a class="code" href="structnfc__device__t.html#a2cef5cf7a0f7590c2398bac39bef7bee">nds</a>; <a name="l00066"></a><a class="code" href="structnfc__device__t.html#ae89fdb258019e1c68073c31acc8a1367">00066</a> <span class="keywordtype">bool</span> <a class="code" href="structnfc__device__t.html#ae89fdb258019e1c68073c31acc8a1367">bActive</a>; <a name="l00068"></a><a class="code" href="structnfc__device__t.html#a7ce8e0b0e4be5f10074c9a552b5a945d">00068</a> <span class="keywordtype">bool</span> <a class="code" href="structnfc__device__t.html#a7ce8e0b0e4be5f10074c9a552b5a945d">bCrc</a>; <a name="l00070"></a><a class="code" href="structnfc__device__t.html#ab066d77b77d543818477b07787d0b0a5">00070</a> <span class="keywordtype">bool</span> <a class="code" href="structnfc__device__t.html#ab066d77b77d543818477b07787d0b0a5">bPar</a>; <a name="l00072"></a><a class="code" href="structnfc__device__t.html#a3abc6b0a43eff03de706bfbf26b83d66">00072</a> <span class="keywordtype">bool</span> <a class="code" href="structnfc__device__t.html#a3abc6b0a43eff03de706bfbf26b83d66">bEasyFraming</a>; <a name="l00074"></a><a class="code" href="structnfc__device__t.html#aa9961deed081691365bb58fd4ff1c1b2">00074</a> <span class="keywordtype">bool</span> <a class="code" href="structnfc__device__t.html#aa9961deed081691365bb58fd4ff1c1b2">bAutoIso14443_4</a>; <a name="l00076"></a><a class="code" href="structnfc__device__t.html#ad24b24c1dce4c9b331f5d165f33e5f3a">00076</a> uint8_t <a class="code" href="structnfc__device__t.html#ad24b24c1dce4c9b331f5d165f33e5f3a">ui8TxBits</a>; <a name="l00078"></a><a class="code" href="structnfc__device__t.html#a6c783f64079dcaaf77d80d526878456b">00078</a> uint8_t <a class="code" href="structnfc__device__t.html#a6c783f64079dcaaf77d80d526878456b">ui8Parameters</a>; <a name="l00080"></a><a class="code" href="structnfc__device__t.html#a956ae1ef5582f5a2827d196c864b309d">00080</a> byte_t <a class="code" href="structnfc__device__t.html#a956ae1ef5582f5a2827d196c864b309d">btSupportByte</a>; <a name="l00089"></a><a class="code" href="structnfc__device__t.html#a3cc2631649285ff97395e20d8abd1e6f">00089</a> <span class="keywordtype">int</span> <a class="code" href="structnfc__device__t.html#a3cc2631649285ff97395e20d8abd1e6f">iLastError</a>; <a name="l00090"></a>00090 } <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a>; <a name="l00091"></a>00091 <a name="l00092"></a>00092 <a name="l00099"></a><a class="code" href="structnfc__device__desc__t.html">00099</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00101"></a><a class="code" href="structnfc__device__desc__t.html#a4ef2a14ef0b858ee15f40feba9270df0">00101</a> <span class="keywordtype">char</span> acDevice[DEVICE_NAME_LENGTH]; <a name="l00103"></a><a class="code" href="structnfc__device__desc__t.html#abbe6b78fa97f57c5a240317a34a990bd">00103</a> <span class="keywordtype">char</span> *<a class="code" href="structnfc__device__desc__t.html#abbe6b78fa97f57c5a240317a34a990bd">pcDriver</a>; <a name="l00105"></a><a class="code" href="structnfc__device__desc__t.html#a9b3f82b85fd32737120b87c761f437cb">00105</a> <span class="keywordtype">char</span> *<a class="code" href="structnfc__device__desc__t.html#a9b3f82b85fd32737120b87c761f437cb">pcPort</a>; <a name="l00107"></a><a class="code" href="structnfc__device__desc__t.html#a85e23285e26810f0ca4b5a4713b890b5">00107</a> uint32_t <a class="code" href="structnfc__device__desc__t.html#a85e23285e26810f0ca4b5a4713b890b5">uiSpeed</a>; <a name="l00109"></a><a class="code" href="structnfc__device__desc__t.html#af2fe0f75c77c5e454486be619423c5d9">00109</a> uint32_t <a class="code" href="structnfc__device__desc__t.html#af2fe0f75c77c5e454486be619423c5d9">uiBusIndex</a>; <a name="l00110"></a>00110 } <a class="code" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a>; <a name="l00111"></a>00111 <a name="l00116"></a><a class="code" href="structchip__callbacks.html">00116</a> <span class="keyword">struct </span><a class="code" href="structchip__callbacks.html" title="Functions for chip specific functions.">chip_callbacks</a> { <a name="l00118"></a><a class="code" href="structchip__callbacks.html#a87adfb2142a70939cf9fe8616f357ca0">00118</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *(*strerror) (<span class="keyword">const</span> <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd); <a name="l00119"></a>00119 }; <a name="l00120"></a>00120 <a name="l00125"></a><a class="code" href="structdriver__callbacks.html">00125</a> <span class="keyword">struct </span><a class="code" href="structdriver__callbacks.html" title="Generic structure to handle NFC device functions.">driver_callbacks</a> { <a name="l00127"></a><a class="code" href="structdriver__callbacks.html#a51624fa74450ab5c2c27b7b3d7f13b67">00127</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structdriver__callbacks.html#a51624fa74450ab5c2c27b7b3d7f13b67">acDriver</a>; <a name="l00129"></a><a class="code" href="structdriver__callbacks.html#a33bf8d75793c1f315a05b45caa4fbc69">00129</a> <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structchip__callbacks.html" title="Functions for chip specific functions.">chip_callbacks</a> *<a class="code" href="structdriver__callbacks.html#a33bf8d75793c1f315a05b45caa4fbc69">pcc</a>; <a name="l00131"></a><a class="code" href="structdriver__callbacks.html#a265137cf76142dc1df8d6613ec47be68">00131</a> <a class="code" href="structnfc__device__desc__t.html" title="NFC device description.">nfc_device_desc_t</a> *(*pick_device) (void); <a name="l00133"></a><a class="code" href="structdriver__callbacks.html#af1fb1c2fef5324435a73256ceeb1e27d">00133</a> bool (*<a class="code" href="structdriver__callbacks.html#af1fb1c2fef5324435a73256ceeb1e27d">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="l00135"></a><a class="code" href="structdriver__callbacks.html#a1611dc63173ea828c6f5b81ef0d254da">00135</a> <a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> *(*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); <a name="l00137"></a><a class="code" href="structdriver__callbacks.html#adc93f0e4f5f4894573a0217cf8131773">00137</a> void (*<a class="code" href="structdriver__callbacks.html#adc93f0e4f5f4894573a0217cf8131773">init</a>) (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd); <a name="l00139"></a><a class="code" href="structdriver__callbacks.html#a530f85a0449f79e7b3e47c6a60873d53">00139</a> bool (*<a class="code" href="structdriver__callbacks.html#a530f85a0449f79e7b3e47c6a60873d53">transceive</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, byte_t * pbtRx, <span class="keywordtype">size_t</span> * pszRx); <a name="l00141"></a><a class="code" href="structdriver__callbacks.html#a1ba3c0c1ccf8312a3cd88afec89b00b9">00141</a> void (*<a class="code" href="structdriver__callbacks.html#a1ba3c0c1ccf8312a3cd88afec89b00b9">disconnect</a>) (<a class="code" href="structnfc__device__t.html" title="NFC device information.">nfc_device_t</a> * pnd); <a name="l00142"></a>00142 }; <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="comment">// Compiler directive, set struct alignment to 1 byte_t for compatibility</span> <a name="l00145"></a>00145 <span class="preprocessor"># pragma pack(1)</span> <a name="l00146"></a>00146 <span class="preprocessor"></span> <a name="l00151"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311e">00151</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00159"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea34588e4870fcc10476151e27e8e97a74">00159</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea34588e4870fcc10476151e27e8e97a74">NDO_HANDLE_CRC</a> = 0x00, <a name="l00167"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea7c1f6097b2d2a1670f580de332c41596">00167</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea7c1f6097b2d2a1670f580de332c41596">NDO_HANDLE_PARITY</a> = 0x01, <a name="l00170"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea932832c243c9448924de6e21aa622d07">00170</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea932832c243c9448924de6e21aa622d07">NDO_ACTIVATE_FIELD</a> = 0x10, <a name="l00174"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea7727d8aca77883ad234319a75994c8f5">00174</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea7727d8aca77883ad234319a75994c8f5">NDO_ACTIVATE_CRYPTO1</a> = 0x11, <a name="l00180"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ead179fd877ff1ba540f0425fa3547825d">00180</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ead179fd877ff1ba540f0425fa3547825d">NDO_INFINITE_SELECT</a> = 0x20, <a name="l00184"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eaf11f5510dd7430ca8a1b7fe58c67273b">00184</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eaf11f5510dd7430ca8a1b7fe58c67273b">NDO_ACCEPT_INVALID_FRAMES</a> = 0x30, <a name="l00191"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea56833a5b8feb00e4d17a33c399fa7de6">00191</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea56833a5b8feb00e4d17a33c399fa7de6">NDO_ACCEPT_MULTIPLE_FRAMES</a> = 0x31, <a name="l00199"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eae40c8c9da1c2e8d123948e03374a1c0c">00199</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eae40c8c9da1c2e8d123948e03374a1c0c">NDO_AUTO_ISO14443_4</a> = 0x40, <a name="l00201"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eabb3413ff22c634f90298444e0fffed5f">00201</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311eabb3413ff22c634f90298444e0fffed5f">NDO_EASY_FRAMING</a> = 0x41, <a name="l00203"></a><a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea6dafbd16a163d494637d9d640cf3d8f1">00203</a> <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311ea6dafbd16a163d494637d9d640cf3d8f1">NDO_FORCE_ISO14443_A</a> = 0x42, <a name="l00204"></a>00204 } <a class="code" href="nfc-types_8h.html#ab2cdef5e5ac453e9c60c9fe449cb311e" title="NFC device option.">nfc_device_option_t</a>; <a name="l00205"></a>00205 <a name="l00210"></a><a class="code" href="nfc-types_8h.html#a0403437f90b1c17f0177fc26c1f4e0fc">00210</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00211"></a>00211 NDM_UNDEFINED = 0, <a name="l00212"></a>00212 NDM_PASSIVE, <a name="l00213"></a>00213 NDM_ACTIVE, <a name="l00214"></a>00214 } <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>; <a name="l00215"></a>00215 <a name="l00220"></a><a class="code" href="structnfc__dep__info__t.html">00220</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00222"></a><a class="code" href="structnfc__dep__info__t.html#a0d97aacdd8b0c055219141f3d8ab30d8">00222</a> byte_t abtNFCID3[10]; <a name="l00224"></a><a class="code" href="structnfc__dep__info__t.html#a235abe51b19ed89820dfeb34e5114813">00224</a> byte_t <a class="code" href="structnfc__dep__info__t.html#a235abe51b19ed89820dfeb34e5114813">btDID</a>; <a name="l00226"></a><a class="code" href="structnfc__dep__info__t.html#a20f1717fe3fa072e7c509e64ec656bf3">00226</a> byte_t <a class="code" href="structnfc__dep__info__t.html#a20f1717fe3fa072e7c509e64ec656bf3">btBS</a>; <a name="l00228"></a><a class="code" href="structnfc__dep__info__t.html#afeff11cc453ea729f6402ff183eeec04">00228</a> byte_t <a class="code" href="structnfc__dep__info__t.html#afeff11cc453ea729f6402ff183eeec04">btBR</a>; <a name="l00230"></a><a class="code" href="structnfc__dep__info__t.html#ae359367269d9dabf511a17b219d52997">00230</a> byte_t <a class="code" href="structnfc__dep__info__t.html#ae359367269d9dabf511a17b219d52997">btTO</a>; <a name="l00232"></a><a class="code" href="structnfc__dep__info__t.html#ab2af941b1ee9d6d485eddec62b5d4102">00232</a> byte_t <a class="code" href="structnfc__dep__info__t.html#ab2af941b1ee9d6d485eddec62b5d4102">btPP</a>; <a name="l00234"></a><a class="code" href="structnfc__dep__info__t.html#a1c00fd0176fe4085547df29d8185ad0a">00234</a> byte_t abtGB[48]; <a name="l00235"></a>00235 <span class="keywordtype">size_t</span> szGB; <a name="l00237"></a><a class="code" href="structnfc__dep__info__t.html#a4885250d30c9e2f1149cbc4fec7ba507">00237</a> <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> <a class="code" href="structnfc__dep__info__t.html#a4885250d30c9e2f1149cbc4fec7ba507">ndm</a>; <a name="l00238"></a>00238 } <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>; <a name="l00239"></a>00239 <a name="l00244"></a><a class="code" href="structnfc__iso14443a__info__t.html">00244</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00245"></a>00245 byte_t abtAtqa[2]; <a name="l00246"></a>00246 byte_t btSak; <a name="l00247"></a>00247 <span class="keywordtype">size_t</span> szUidLen; <a name="l00248"></a>00248 byte_t abtUid[10]; <a name="l00249"></a>00249 <span class="keywordtype">size_t</span> szAtsLen; <a name="l00250"></a>00250 byte_t abtAts[254]; <span class="comment">// Maximal theoretical ATS is FSD-2, FSD=256 for FSDI=8 in RATS</span> <a name="l00251"></a>00251 } <a class="code" href="structnfc__iso14443a__info__t.html" title="NFC ISO14443A tag (MIFARE) information.">nfc_iso14443a_info_t</a>; <a name="l00252"></a>00252 <a name="l00257"></a><a class="code" href="structnfc__felica__info__t.html">00257</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00258"></a>00258 <span class="keywordtype">size_t</span> szLen; <a name="l00259"></a>00259 byte_t btResCode; <a name="l00260"></a>00260 byte_t abtId[8]; <a name="l00261"></a>00261 byte_t abtPad[8]; <a name="l00262"></a>00262 byte_t abtSysCode[2]; <a name="l00263"></a>00263 } <a class="code" href="structnfc__felica__info__t.html" title="NFC FeLiCa tag information.">nfc_felica_info_t</a>; <a name="l00264"></a>00264 <a name="l00269"></a><a class="code" href="structnfc__iso14443b__info__t.html">00269</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00271"></a><a class="code" href="structnfc__iso14443b__info__t.html#a67e4c0fedc9b14335472c9fb66595f8b">00271</a> byte_t abtPupi[4]; <a name="l00273"></a><a class="code" href="structnfc__iso14443b__info__t.html#af4530a49afeef78db37e54ce7c6ac818">00273</a> byte_t abtApplicationData[4]; <a name="l00275"></a><a class="code" href="structnfc__iso14443b__info__t.html#a8a939b66c21750b7f3b26e5011191dce">00275</a> byte_t abtProtocolInfo[3]; <a name="l00277"></a><a class="code" href="structnfc__iso14443b__info__t.html#a4606f16adad87073d8800259136ad33f">00277</a> uint8_t <a class="code" href="structnfc__iso14443b__info__t.html#a4606f16adad87073d8800259136ad33f">ui8CardIdentifier</a>; <a name="l00278"></a>00278 } <a class="code" href="structnfc__iso14443b__info__t.html" title="NFC ISO14443B tag information.">nfc_iso14443b_info_t</a>; <a name="l00279"></a>00279 <a name="l00284"></a><a class="code" href="structnfc__jewel__info__t.html">00284</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00285"></a>00285 byte_t btSensRes[2]; <a name="l00286"></a>00286 byte_t btId[4]; <a name="l00287"></a>00287 } <a class="code" href="structnfc__jewel__info__t.html" title="NFC Jewel tag information.">nfc_jewel_info_t</a>; <a name="l00288"></a>00288 <a name="l00293"></a><a class="code" href="unionnfc__target__info__t.html">00293</a> <span class="keyword">typedef</span> <span class="keyword">union </span>{ <a name="l00294"></a>00294 <a class="code" href="structnfc__iso14443a__info__t.html" title="NFC ISO14443A tag (MIFARE) information.">nfc_iso14443a_info_t</a> nai; <a name="l00295"></a>00295 <a class="code" href="structnfc__felica__info__t.html" title="NFC FeLiCa tag information.">nfc_felica_info_t</a> nfi; <a name="l00296"></a>00296 <a class="code" href="structnfc__iso14443b__info__t.html" title="NFC ISO14443B tag information.">nfc_iso14443b_info_t</a> nbi; <a name="l00297"></a>00297 <a class="code" href="structnfc__jewel__info__t.html" title="NFC Jewel tag information.">nfc_jewel_info_t</a> nji; <a name="l00298"></a>00298 <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> ndi; <a name="l00299"></a>00299 } <a class="code" href="unionnfc__target__info__t.html" title="Union between all kind of tags information structures.">nfc_target_info_t</a>; <a name="l00300"></a>00300 <a name="l00305"></a><a class="code" href="nfc-types_8h.html#ae9d7b01916fb677e7c0ad1de171b1fdd">00305</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00306"></a>00306 NBR_UNDEFINED = 0, <a name="l00307"></a>00307 NBR_106, <a name="l00308"></a>00308 NBR_212, <a name="l00309"></a>00309 NBR_424, <a name="l00310"></a>00310 NBR_847, <a name="l00311"></a>00311 } <a class="code" href="nfc-types_8h.html#ae9d7b01916fb677e7c0ad1de171b1fdd" title="NFC baud rate enumeration.">nfc_baud_rate_t</a>; <a name="l00312"></a>00312 <a name="l00317"></a><a class="code" href="nfc-types_8h.html#a0ba2d4ab603fd8f3f0745cd1f44e9893">00317</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { <a name="l00318"></a>00318 NMT_ISO14443A, <a name="l00319"></a>00319 NMT_ISO14443B, <a name="l00320"></a>00320 NMT_FELICA, <a name="l00321"></a>00321 NMT_JEWEL, <a name="l00322"></a>00322 NMT_DEP, <a name="l00323"></a>00323 } <a class="code" href="nfc-types_8h.html#a0ba2d4ab603fd8f3f0745cd1f44e9893" title="NFC modulation type enumeration.">nfc_modulation_type_t</a>; <a name="l00324"></a>00324 <a name="l00329"></a><a class="code" href="structnfc__modulation__t.html">00329</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00330"></a>00330 <a class="code" href="nfc-types_8h.html#a0ba2d4ab603fd8f3f0745cd1f44e9893" title="NFC modulation type enumeration.">nfc_modulation_type_t</a> nmt; <a name="l00331"></a>00331 <a class="code" href="nfc-types_8h.html#ae9d7b01916fb677e7c0ad1de171b1fdd" title="NFC baud rate enumeration.">nfc_baud_rate_t</a> nbr; <a name="l00332"></a>00332 } <a class="code" href="structnfc__modulation__t.html" title="NFC modulation structure.">nfc_modulation_t</a>; <a name="l00333"></a>00333 <a name="l00338"></a><a class="code" href="structnfc__target__t.html">00338</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{ <a name="l00339"></a>00339 <a class="code" href="unionnfc__target__info__t.html" title="Union between all kind of tags information structures.">nfc_target_info_t</a> nti; <a name="l00340"></a>00340 <a class="code" href="structnfc__modulation__t.html" title="NFC modulation structure.">nfc_modulation_t</a> nm; <a name="l00341"></a>00341 } <a class="code" href="structnfc__target__t.html" title="NFC target structure.">nfc_target_t</a>; <a name="l00342"></a>00342 <a name="l00343"></a>00343 <span class="comment">// Reset struct alignment to default</span> <a name="l00344"></a>00344 <span class="preprocessor"># pragma pack()</span> <a name="l00345"></a>00345 <span class="preprocessor"></span> <a name="l00346"></a>00346 <span class="preprocessor">#endif // _LIBNFC_TYPES_H_</span> </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>