atrhandler.h File Reference

This keeps track of smartcard protocols, timing issues and Answer to Reset ATR handling. More...

Go to the source code of this file.

Data Structures

struct  _SMARTCARD_EXTENSION
struct  _SMARTCARD_EXTENSION::_ATR
struct  _SMARTCARD_EXTENSION::_CardCapabilities
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_PtsData
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_T1
struct  _SMARTCARD_EXTENSION::_CardCapabilities::_T0

Defines

#define SCARD_CONVENTION_DIRECT   0x0001
#define SCARD_CONVENTION_INVERSE   0x0002

Typedefs

typedef _SMARTCARD_EXTENSION SMARTCARD_EXTENSION
typedef _SMARTCARD_EXTENSIONPSMARTCARD_EXTENSION

Functions

short ATRDecodeAtr (PSMARTCARD_EXTENSION psExtension, PUCHAR pucAtr, DWORD dwLength)
 parse an ATR


Detailed Description

This keeps track of smartcard protocols, timing issues and Answer to Reset ATR handling.

Definition in file atrhandler.h.


Function Documentation

short ATRDecodeAtr ( PSMARTCARD_EXTENSION  psExtension,
PUCHAR  pucAtr,
DWORD  dwLength 
)

parse an ATR

Parameters:
[out] psExtension 
[in] pucAtr ATR
[in] dwLength ATR length
Returns:

Return values:
0 Atr must have TS and T0
0 Unable to decode TS byte
0 Unable to decode LNS
0 Unable do decode T protocol
0 Maximum attribute size
1 Success

Definition at line 44 of file atrhandler.c.

References _SMARTCARD_EXTENSION::ATR, _SMARTCARD_EXTENSION::_CardCapabilities::AvailableProtocols, _SMARTCARD_EXTENSION::_CardCapabilities::_T1::BGT, _SMARTCARD_EXTENSION::_CardCapabilities::_T0::BGT, _SMARTCARD_EXTENSION::_CardCapabilities::_T1::BWT, _SMARTCARD_EXTENSION::_CardCapabilities::_T0::BWT, _SMARTCARD_EXTENSION::CardCapabilities, _SMARTCARD_EXTENSION::_CardCapabilities::_T1::CGT, _SMARTCARD_EXTENSION::_CardCapabilities::_T0::CGT, _SMARTCARD_EXTENSION::_CardCapabilities::Convention, _SMARTCARD_EXTENSION::_CardCapabilities::CurrentProtocol, _SMARTCARD_EXTENSION::_CardCapabilities::_T1::CWT, _SMARTCARD_EXTENSION::_CardCapabilities::_T0::CWT, _SMARTCARD_EXTENSION::_ATR::HistoryLength, _SMARTCARD_EXTENSION::_ATR::HistoryValue, _SMARTCARD_EXTENSION::_ATR::Length, Log2, Log3, Log4, Log9, LogXxd, MAX_ATR_SIZE, SCARD_CONVENTION_DIRECT, SCARD_CONVENTION_INVERSE, SCARD_PROTOCOL_T0, SCARD_PROTOCOL_T1, SCARD_PROTOCOL_T15, SCARD_PROTOCOL_UNSET, _SMARTCARD_EXTENSION::_CardCapabilities::T0, _SMARTCARD_EXTENSION::_CardCapabilities::T1, _SMARTCARD_EXTENSION::_ATR::Value, _SMARTCARD_EXTENSION::_CardCapabilities::_T1::WT, and _SMARTCARD_EXTENSION::_CardCapabilities::_T0::WT.

Referenced by IFDPowerICC(), IFDStatusICC(), PHGetAvailableProtocols(), and PHGetDefaultProtocol().


Generated on Tue Feb 6 21:24:44 2007 for pcsc-lite by  doxygen 1.5.1