AN1527 STMICROELECTRONICS [STMicroelectronics], AN1527 Datasheet - Page 13

no-image

AN1527

Manufacturer Part Number
AN1527
Description
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
– CommandSize is the size of the buffer in bytes.
– ProtocolType is 0 (for T=0) or 1 (for T=1). This variable is used to set a flag tested in the
This function will return one of the following error codes:
– Slot_No_Error
– SlotError_ICC_Mute (if transfer not completed)
This function will receive a packet of bytes from the ICC with its waiting time already pro-
grammed.
– pReceiveBuffer is the address of the buffer to fill with the received data.
– pAnswerSize is the address of the data containing:
– Input: the size of the ReceiveBuffer in bytes.
– Output: the length in bytes of the received data written in the ReceiveBuffer.
This function will return one of the following error codes:
– Slot_No_Error
– SlotError_XFR_Overrun
– SlotError_ICC_Mute
interrupt process at transmission and reception levels.
unsigned char ICC_ReceiveAnswerAsync(unsigned char * pReceiveBuffer, unsigned
int * pAnswerSize)
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
13/14

Related parts for AN1527