Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 3e322ac044c863e7478650cc0b9d2bb0 > files > 7

pcsc-lite-doc-1.8.8-2.mga4.noarch.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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>pcsc-lite: atrhandler.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">pcsc-lite
   &#160;<span id="projectnumber">1.8.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</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>
    </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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">atrhandler.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This keeps track of smart card protocols, timing issues and Answer to Reset ATR handling.  
<a href="#details">More...</a></p>

<p><a href="atrhandler_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae10786ab8a92123fcb2a60caa50980f8"><td class="memItemLeft" align="right" valign="top">short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="atrhandler_8h.html#ae10786ab8a92123fcb2a60caa50980f8">ATRDecodeAtr</a> (int *availableProtocols, int *currentProtocol, PUCHAR pucAtr, DWORD dwLength)</td></tr>
<tr class="memdesc:ae10786ab8a92123fcb2a60caa50980f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">parse an ATR  <a href="#ae10786ab8a92123fcb2a60caa50980f8">More...</a><br/></td></tr>
<tr class="separator:ae10786ab8a92123fcb2a60caa50980f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This keeps track of smart card protocols, timing issues and Answer to Reset ATR handling. </p>

<p>Definition in file <a class="el" href="atrhandler_8h_source.html">atrhandler.h</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ae10786ab8a92123fcb2a60caa50980f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">short ATRDecodeAtr </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>availableProtocols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>currentProtocol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUCHAR&#160;</td>
          <td class="paramname"><em>pucAtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DWORD&#160;</td>
          <td class="paramname"><em>dwLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>parse an ATR </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">availableProtocols</td><td>available protocols </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">currentProtocol</td><td>current protocol </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pucAtr</td><td>ATR </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dwLength</td><td>ATR length </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>Atr must have TS and T0</td></tr>
    <tr><td class="paramname">0</td><td>Unable to decode TS byte</td></tr>
    <tr><td class="paramname">0</td><td>Unable to decode LNS</td></tr>
    <tr><td class="paramname">0</td><td>Unable do decode T protocol</td></tr>
    <tr><td class="paramname">0</td><td>Maximum attribute size</td></tr>
    <tr><td class="paramname">1</td><td>Success </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="atrhandler_8c_source.html#l00045">45</a> of file <a class="el" href="atrhandler_8c_source.html">atrhandler.c</a>.</p>

<p>References <a class="el" href="pcsclite_8h_source.html#l00038">MAX_ATR_SIZE</a>, <a class="el" href="pcsclite_8h_source.html#l00152">SCARD_PROTOCOL_T0</a>, <a class="el" href="pcsclite_8h_source.html#l00153">SCARD_PROTOCOL_T1</a>, <a class="el" href="pcsclite_8h_source.html#l00155">SCARD_PROTOCOL_T15</a>, and <a class="el" href="pcsclite_8h_source.html#l00150">SCARD_PROTOCOL_UNDEFINED</a>.</p>

<p>Referenced by <a class="el" href="winscard_8c_source.html#l00209">SCardConnect()</a>, and <a class="el" href="winscard_8c_source.html#l00497">SCardReconnect()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Oct 19 2013 02:34:31 for pcsc-lite by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>