pcsc-lite  1.8.20
Functions
atrhandler.h File Reference

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

Go to the source code of this file.

Functions

short ATRDecodeAtr (int *availableProtocols, int *currentProtocol, PUCHAR pucAtr, DWORD dwLength)
 parse an ATR More...
 

Detailed Description

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

Definition in file atrhandler.h.

Function Documentation

◆ ATRDecodeAtr()

short ATRDecodeAtr ( int *  availableProtocols,
int *  currentProtocol,
PUCHAR  pucAtr,
DWORD  dwLength 
)

parse an ATR

Parameters
[out]availableProtocolsavailable protocols
[out]currentProtocolcurrent protocol
[in]pucAtrATR
[in]dwLengthATR length
Returns
Return values
0Atr must have TS and T0
0Unable to decode TS byte
0Unable to decode LNS
0Unable do decode T protocol
0Maximum attribute size
1Success

Definition at line 66 of file atrhandler.c.