#include <errno.h>
#include "config.h"
#include "misc.h"
#include "pcscd.h"
#include "ifdhandler.h"
#include "debuglog.h"
#include "readerfactory.h"
#include "ifdwrapper.h"
#include "atrhandler.h"
#include "dyn_generic.h"
#include "sys_generic.h"
#include "utils.h"
Include dependency graph for ifdwrapper.c:
Go to the source code of this file.
Functions | |
LONG | IFDSetPTS (PREADER_CONTEXT rContext, DWORD dwProtocol, UCHAR ucFlags, UCHAR ucPTS1, UCHAR ucPTS2, UCHAR ucPTS3) |
Set the protocol type selection (PTS). | |
LONG | IFDOpenIFD (PREADER_CONTEXT rContext) |
Open a communication channel to the IFD. | |
LONG | IFDCloseIFD (PREADER_CONTEXT rContext) |
Close a communication channel to the IFD. | |
LONG | IFDSetCapabilities (PREADER_CONTEXT rContext, DWORD dwTag, DWORD dwLength, PUCHAR pucValue) |
Set capabilities in the reader. | |
LONG | IFDGetCapabilities (PREADER_CONTEXT rContext, DWORD dwTag, PDWORD pdwLength, PUCHAR pucValue) |
Get's capabilities in the reader. | |
LONG | IFDPowerICC (PREADER_CONTEXT rContext, DWORD dwAction, PUCHAR pucAtr, PDWORD pdwAtrLen) |
Power up/down or reset's an ICC located in the IFD. | |
LONG | IFDStatusICC (PREADER_CONTEXT rContext, PDWORD pdwStatus, PUCHAR pucAtr, PDWORD pdwAtrLen) |
Provide statistical information about the IFD and ICC including insertions, atr, powering status/etc. | |
LONG | IFDControl_v2 (PREADER_CONTEXT rContext, PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, PDWORD RxLength) |
LONG | IFDControl (PREADER_CONTEXT rContext, DWORD ControlCode, LPCVOID TxBuffer, DWORD TxLength, LPVOID RxBuffer, DWORD RxLength, LPDWORD BytesReturned) |
Provide a means for toggling a specific action on the reader such as swallow, eject, biometric. | |
LONG | IFDTransmit (PREADER_CONTEXT rContext, SCARD_IO_HEADER pioTxPci, PUCHAR pucTxBuffer, DWORD dwTxLength, PUCHAR pucRxBuffer, PDWORD pdwRxLength, PSCARD_IO_HEADER pioRxPci) |
Transmit an APDU to the ICC. |
Definition in file ifdwrapper.c.
LONG IFDGetCapabilities | ( | PREADER_CONTEXT | rContext, | |
DWORD | dwTag, | |||
PDWORD | pdwLength, | |||
PUCHAR | pucValue | |||
) |
Get's capabilities in the reader.
Other functions int this file will call the driver directly to not cause a deadlock.
Definition at line 275 of file ifdwrapper.c.
References ReaderContext::dwSlot, ReaderContext::dwVersion, IFD_HVERSION_1_0, IFD_SUCCESS, ReaderContext::mMutex, ReaderContext::psFunctions, ReaderContext::psFunctions_v1, ReaderContext::psFunctions_v2, FctMap_V1::pvfGetCapabilities, FctMap_V2::pvfGetCapabilities, SYS_MutexLock(), and SYS_MutexUnLock().
Referenced by EHDestroyEventHandler(), RFAddReader(), RFSetReaderName(), and SCardGetAttrib().
Here is the call graph for this function:
LONG IFDSetPTS | ( | PREADER_CONTEXT | rContext, | |
DWORD | dwProtocol, | |||
UCHAR | ucFlags, | |||
UCHAR | ucPTS1, | |||
UCHAR | ucPTS2, | |||
UCHAR | ucPTS3 | |||
) |
Set the protocol type selection (PTS).
This function sets the appropriate protocol to be used on the card.
Definition at line 36 of file ifdwrapper.c.
References ReaderContext::dwSlot, ReaderContext::dwVersion, IFD_HVERSION_1_0, IFD_SUCCESS, IFDSetCapabilities(), ReaderContext::psFunctions, ReaderContext::psFunctions_v1, ReaderContext::psFunctions_v2, FctMap_V1::pvfSetProtocolParameters, FctMap_V2::pvfSetProtocolParameters, SCARD_E_UNSUPPORTED_FEATURE, and TAG_IFD_SLOTNUM.
Referenced by PHSetProtocol().
Here is the call graph for this function: