// smclib.h
typedef struct _T1_DATA {
UCHAR IFSC;
UCHAR IFSD;
ULONG BytesReceived;
ULONG BytesSent;
ULONG BytesToSend;
UCHAR LastError;
BOOLEAN MoreData;
UCHAR NAD;
ULONG OriginalState;
UCHAR Resend;
UCHAR Resynch;
UCHAR RSN;
UCHAR SSN;
ULONG State;
UCHAR Wtx;
PUCHAR ReplyData;
BOOLEAN WaitForReply;
UCHAR InfBytesSent;
UCHAR Reserved[10 - sizeof(PUCHAR)- sizeof(BOOLEAN)- sizeof(UCHAR)];
} T1_DATA, *PT1_DATA;
View the official Windows Driver Kit DDI referenceNo description available.
The T1_DATA structure is used by the smart card driver library to process T1 I/O.
IFSCContains the field size that can be transmitted.
IFSDContains the field size that can be received.
BytesReceivedContains the number of bytes already received from the smart card.
BytesSentContains the number of bytes already sent to the smart card.
BytesToSendContains the total number of remaining bytes to send.
LastErrorContains the T1 error code of the last received block.
MoreDataNADContains the node address byte to send to the smart card.
OriginalStateContains the state before an error occurred.
ResendContains the resend counter.
ResynchContains the resynch counter.
RSNContains the number of sent I-Blocks, as defined in the ISO 7816-3 Specification.
SSNContains the send sequence number (SSN). This member has a value of 0 or 1 as defined in the ISO 7816-3 Specification.
StateContains the current state of the protocol.
WtxContains the waiting time extension for a T=1 transmission. If nonzero, this is a multiplier for the block waiting time. Usually, the driver will time out if the block waiting time expires. Several smart card operations require more time. The smart card answers with a waiting time extension. Therefore, the block waiting time must be multiplied with the Wtx value. If this value is nonzero, it applies as a waiting extension.
ReplyDataA pointer to the buffer that contains the result of the operation.
WaitForReplyIf TRUE, execute the operation synchronously.
InfBytesSentReservedReserved, do not use.
This structure must not be directly modified by a reader driver.