T1_DATA structure (smclib.h)
The T1_DATA structure is used by the smart card driver library to process T1 I/O.
Syntax
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;
Members
IFSC
Contains the field size that can be transmitted.
IFSD
Contains the field size that can be received.
BytesReceived
Contains the number of bytes already received from the smart card.
BytesSent
Contains the number of bytes already sent to the smart card.
BytesToSend
Contains the total number of remaining bytes to send.
LastError
Contains the T1 error code of the last received block.
MoreData
NAD
Contains the node address byte to send to the smart card.
OriginalState
Contains teh state before an error occurred.
Resend
Contains the resend counter.
Resynch
Contains the resynch counter.
RSN
Contains the number of sent I-Blocks, as defined in the ISO 7816-3 Specification.
SSN
Contains the send sequence number (SSN). This member has a value of 0 or 1 as defined in the ISO 7816-3 Specification.
State
Contains the current state of the protocol.
Wtx
Contains 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.
ReplyData
A pointer to the buffer that contains the result of the operation.
WaitForReply
If TRUE, execute the operation synchronously.
InfBytesSent
Reserved[10 - sizeof(PUCHAR)- sizeof(BOOLEAN)- sizeof(UCHAR)]
Reserved, do not use.
Remarks
This structure must not be directly modified by a reader driver.
Requirements
Requirement | Value |
---|---|
Header | smclib.h (include Smclib.h) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for