AN1527 STMICROELECTRONICS [STMicroelectronics], AN1527 Datasheet - Page 4

no-image

AN1527

Manufacturer Part Number
AN1527
Description
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
This function is called from the USER_USB_Setup() function to process an Abort request.
This function verifies the PC_TO_RDR_ICCPOWERON command format and calls the
IFD_IccPowerOn() function (from Interface Device level). If IFD_IccPowerOn() returns no
error, the message header is filled with the ATR length. This PC_to_RDR function returns an
error code.
This function verifies the PC_TO_RDR_ICCPOWEROFF command format, switches off the
smartcard power supply and returns the NOERROR code.
This function verifies the PC_TO_RDR_GETSLOTSTATUS command format, verifies the slot
hardware state and returns the corresponding error code.
This function verifies the PC_TO_RDR_XFRBLOCK command format, checks the slot status
and returns an error if needed. If there is no error, it calls the IFD_XfrBlock() function (from the
Interface Device level). The message buffer contains the data to be transferred and is updated
by this IFD function. This PC_to_RDR function returns an error code.
This function verifies the PC_TO_RDR_GETPARAMETERS command format, checks the
slot hardware state and returns the corresponding error code.
This function verifies the PC_TO_RDR_RESETPARAMETERS command format, fills the
m essage buffer w ith the default v alues of the r eader par am eters and c alls the
IFD_SetParameters() function (from the Interface Device level). This PC_to_RDR function re-
turns an error code.
This function verifies the PC_TO_RDR_SETPARAMETERS command format and calls the
IFD_SetParameters() function (from the Interface Device level). This PC_to_RDR function re-
turns an error code.
4/14
void CcidClassRequestAbort(void)
unsigned char PC_to_RDR_IccPowerOn(void)
unsigned char PC_to_RDR_IccPowerOff(void)
unsigned char PC_to_RDR_GetSlotStatus(void)
unsigned char PC_to_RDR_XfrBlock(void)
unsigned char PC_to_RDR_GetParameters(void)
unsigned char PC_to_RDR_ResetParameters(void)
unsigned char PC_to_RDR_SetParameters(void)

Related parts for AN1527