pcsc-lite 2.3.0
|
This keeps track of smart card protocols, timing issues and ATR (Answer-to-Reset) handling. More...
#include "config.h"
#include <string.h>
#include "misc.h"
#include "pcsclite.h"
#include "debuglog.h"
#include "atrhandler.h"
Go to the source code of this file.
Functions | |
short | ATRDecodeAtr (int *availableProtocols, int *currentProtocol, PUCHAR pucAtr, DWORD dwLength) |
parse an ATR | |
This keeps track of smart card protocols, timing issues and ATR (Answer-to-Reset) handling.
Definition in file atrhandler.c.
short ATRDecodeAtr | ( | int * | availableProtocols, |
int * | currentProtocol, | ||
PUCHAR | pucAtr, | ||
DWORD | dwLength ) |
parse an ATR
[out] | availableProtocols | available protocols |
[out] | currentProtocol | current protocol |
[in] | pucAtr | ATR |
[in] | dwLength | ATR length |
-1 | Atr must have TS and T0 |
-2 | Unable to decode TS byte |
-3 | Unable to decode LNS |
-4 | Unable do decode T protocol |
-5 | Maximum attribute size |
0 | Success |
Definition at line 66 of file atrhandler.c.