T1_DATA
The T1_DATA structure is used by the smart card driver library for processing T1 I/O.
typedef struct _T1_DATA {
UCHAR InfSize;
ULONG BytesReceived;
ULONG BytesSent;
ULONG BytesToSend;
UCHAR LastError;
UCHAR NAD;
ULONG PrevState;
UCHAR Resend;
UCHAR Resynch;
UCHAR RSN;
UCHAR SSN;
ULONG State;
UCHAR Wtx;
PUCHAR ReplyData;
BOOLEAN WaitForReply;
} T1_DATA, *PT1_DATA;
Members
- InfSize
- Contains the current information field size that can be transmitted.
- BytesReceived
- Contains the number of bytes already received from the smart card.
- BytesSent
- Contains the number of bytes already sent to the card.
- BytesToSend
- Contains the total number of bytes still to send.
- LastError
- Contains the T1 error code of the last received block.
- NAD
- Contains the node address byte to be sent to the card.
- PrevState
- Contains the state before the 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 should time out if the block waiting time expires. Several smart card operations need longer time, so the smart card answers with a waiting time extension, and therefore the block waiting time must be multiplied with the Wtx value. If this value is nonzero, it only applies as a waiting extension.
- ReplyData
- Pointer to the buffer containing the result of the operation.
- WaitForReply
- Wait for the reply (execute the operation synchronously) if TRUE.
Headers
Declared in scmlib.h. Include scmlib.h.
Comments
This structure must not be directly modified by a reader driver.