pcsc-lite
1.8.8
|
#include <pcsclite.h>
Go to the source code of this file.
Data Structures | |
struct | _DEVICE_CAPABILITIES |
struct | _ICC_STATE |
struct | _PROTOCOL_OPTIONS |
struct | _SCARD_IO_HEADER |
Use by SCardTransmit() More... | |
Macros | |
#define | TAG_IFD_ATR 0x0303 |
ATR. | |
#define | TAG_IFD_SLOTNUM 0x0180 |
select a slot | |
#define | TAG_IFD_SLOT_THREAD_SAFE 0x0FAC |
support access to different slots of the reader | |
#define | TAG_IFD_THREAD_SAFE 0x0FAD |
driver is thread safe | |
#define | TAG_IFD_SLOTS_NUMBER 0x0FAE |
number of slots of the reader | |
#define | TAG_IFD_SIMULTANEOUS_ACCESS 0x0FAF |
number of reader the driver can manage | |
#define | TAG_IFD_POLLING_THREAD 0x0FB0 |
not used. More... | |
#define | TAG_IFD_POLLING_THREAD_KILLABLE 0x0FB1 |
the polling thread can be killed | |
#define | TAG_IFD_STOP_POLLING_THREAD 0x0FB2 |
method used to stop the polling thread (instead of just pthread_kill()) | |
#define | TAG_IFD_POLLING_THREAD_WITH_TIMEOUT 0x0FB3 |
driver uses a polling thread with a timeout parameter | |
#define | IFD_HVERSION_1_0 0x00010000 |
#define | IFD_HVERSION_2_0 0x00020000 |
#define | IFD_HVERSION_3_0 0x00030000 |
#define | IFD_POWER_UP 500 |
power up the card | |
#define | IFD_POWER_DOWN 501 |
power down the card | |
#define | IFD_RESET 502 |
warm reset | |
#define | IFD_NEGOTIATE_PTS1 1 |
negotiate PTS1 | |
#define | IFD_NEGOTIATE_PTS2 2 |
negotiate PTS2 | |
#define | IFD_NEGOTIATE_PTS3 4 |
negotiate PTS3 | |
#define | IFD_SUCCESS 0 |
no error | |
#define | IFD_ERROR_TAG 600 |
tag unknown | |
#define | IFD_ERROR_SET_FAILURE 601 |
set failed | |
#define | IFD_ERROR_VALUE_READ_ONLY 602 |
value is read only | |
#define | IFD_ERROR_PTS_FAILURE 605 |
failed to negotiate PTS | |
#define | IFD_ERROR_NOT_SUPPORTED 606 |
#define | IFD_PROTOCOL_NOT_SUPPORTED 607 |
requested protocol not supported | |
#define | IFD_ERROR_POWER_ACTION 608 |
power up failed | |
#define | IFD_ERROR_SWALLOW 609 |
#define | IFD_ERROR_EJECT 610 |
#define | IFD_ERROR_CONFISCATE 611 |
#define | IFD_COMMUNICATION_ERROR 612 |
generic error | |
#define | IFD_RESPONSE_TIMEOUT 613 |
timeout | |
#define | IFD_NOT_SUPPORTED 614 |
request is not supported | |
#define | IFD_ICC_PRESENT 615 |
card is present | |
#define | IFD_ICC_NOT_PRESENT 616 |
card is absent | |
#define | IFD_NO_SUCH_DEVICE 617 |
The IFD_NO_SUCH_DEVICE error must be returned by the driver when it detects the reader is no more present. More... | |
#define | IFD_ERROR_INSUFFICIENT_BUFFER 618 |
buffer is too small | |
Typedefs | |
typedef struct _DEVICE_CAPABILITIES | DEVICE_CAPABILITIES |
typedef struct _DEVICE_CAPABILITIES * | PDEVICE_CAPABILITIES |
typedef struct _ICC_STATE | ICC_STATE |
typedef struct _ICC_STATE * | PICC_STATE |
typedef struct _PROTOCOL_OPTIONS | PROTOCOL_OPTIONS |
typedef struct _PROTOCOL_OPTIONS * | PPROTOCOL_OPTIONS |
typedef struct _SCARD_IO_HEADER | SCARD_IO_HEADER |
Use by SCardTransmit() | |
typedef struct _SCARD_IO_HEADER * | PSCARD_IO_HEADER |
typedef long | RESPONSECODE |
Functions | |
RESPONSECODE | IFDHCreateChannelByName (DWORD Lun, LPSTR DeviceName) |
This function is required to open a communications channel to the port listed by DeviceName . More... | |
RESPONSECODE | IFDHControl (DWORD Lun, DWORD dwControlCode, PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, DWORD RxLength, LPDWORD pdwBytesReturned) |
This function performs a data exchange with the reader (not the card) specified by Lun. More... | |
RESPONSECODE | IFDHCreateChannel (DWORD Lun, DWORD Channel) |
This function is required to open a communications channel to the port listed by Channel. More... | |
RESPONSECODE | IFDHCloseChannel (DWORD Lun) |
This function should close the reader communication channel for the particular reader. More... | |
RESPONSECODE | IFDHGetCapabilities (DWORD Lun, DWORD Tag, PDWORD Length, PUCHAR Value) |
This function should get the slot/card capabilities for a particular slot/card specified by Lun. More... | |
RESPONSECODE | IFDHSetCapabilities (DWORD Lun, DWORD Tag, DWORD Length, PUCHAR Value) |
This function should set the slot/card capabilities for a particular slot/card specified by Lun . More... | |
RESPONSECODE | IFDHSetProtocolParameters (DWORD Lun, DWORD Protocol, UCHAR Flags, UCHAR PTS1, UCHAR PTS2, UCHAR PTS3) |
This function should set the Protocol Type Selection (PTS) of a particular card/slot using the three PTS parameters sent. More... | |
RESPONSECODE | IFDHPowerICC (DWORD Lun, DWORD Action, PUCHAR Atr, PDWORD AtrLength) |
This function controls the power and reset signals of the smart card reader at the particular reader/slot specified by Lun . More... | |
RESPONSECODE | IFDHTransmitToICC (DWORD Lun, SCARD_IO_HEADER SendPci, PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, PDWORD RxLength, PSCARD_IO_HEADER RecvPci) |
This function performs an APDU exchange with the card/slot specified by Lun. More... | |
RESPONSECODE | IFDHICCPresence (DWORD Lun) |
This function returns the status of the card inserted in the reader/slot specified by Lun . More... | |
#define IFD_NO_SUCH_DEVICE 617 |
The IFD_NO_SUCH_DEVICE error must be returned by the driver when it detects the reader is no more present.
This will tell pcscd to remove the reader from the list of available readers.
Definition at line 349 of file ifdhandler.h.
Referenced by IFDControl(), IFDPowerICC(), IFDStatusICC(), and IFDTransmit().
#define TAG_IFD_POLLING_THREAD 0x0FB0 |