Electronic Components Datasheet Search
  English  ▼

X  

AN1527 Datasheet(PDF) 2 Page - STMicroelectronics

Part # AN1527
Description  DEVELOPING A USB SMARTCARD READER WITH ST7SCR
PDF  14 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1527 Datasheet(HTML) 2 Page - STMicroelectronics

  AN1527 Datasheet HTML 1Page - STMicroelectronics AN1527 Datasheet HTML 2Page - STMicroelectronics AN1527 Datasheet HTML 3Page - STMicroelectronics AN1527 Datasheet HTML 4Page - STMicroelectronics AN1527 Datasheet HTML 5Page - STMicroelectronics AN1527 Datasheet HTML 6Page - STMicroelectronics AN1527 Datasheet HTML 7Page - STMicroelectronics AN1527 Datasheet HTML 8Page - STMicroelectronics AN1527 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 2 / 14 page
background image
2/14
DEVELOPING A USB SMARTCARD READER WITH ST7SCR
1 CCID IMPLEMENTATION
1.1 GENERALITIES
The Chip Card Interface Device (CCID) firmware implementation conforms to the “Universal
Serial Bus Device Class Specification for USB Chip/Smart Card Interface Devices” revision
1.0. It contains two files:
– Ccid_usb.c: This file contains the USB - CCID interface functions used to manage the state
machine that generates Bulk-in/Bulk-out messages.
– Ifd_ccid.c: This file contains the PC_to_RDR_xxx() and RDR_to_PC_xxx() message func-
tions for the CCID.
The following commands are not supported but can be added easily:
– PC_To_RDR_Secure,
– PC_To_RDR_SetDataRateAndClockFrequency,
– PC_To_RDR_ToAPDU,
– PC_To_RDR_Mechanical.
This CCID part uses a 271-byte buffer for all messages. Messages are composed of two
parts:
– header (10 bytes: fixed size)
– data (up to 261 bytes).
The size is based on the largest message managed at the short APDU transaction level. Due
to this large size, the ST7SCR can have only 1 buffer and cannot store more than one mes-
sage at a given time.
The CCID_BulkOutMessage() function uses several Bulk-out USB transactions to verify the
message header and store the entire message in the buffer.
When the message reception is completed, the CCID_DispatchMessage() function identifies
the message type and calls the corresponding function (PC_to_RDR_xxx()) for processing.
Then, the IFD part of the firmware executes a command on the ICC if necessary. This com-
mand is included in the data field of the buffer. The PC_to_RDR_xxx() function receives from
the IFD the answer to the message in the buffer data field and returns an error code to be in-
cluded in the Bulk-in response.
The RDR_to_PC_xxx() function, which corresponds to the PC_to_RDR_xxx() previously exe-
cuted, is launched and enters the correct values for error and status codes in the header.
At this time, the Bulk-in message is ready to be sent. B ut before the sending, the
CCID_IntMessage() function is executed to detect any hardware problems or if a slot change
has occurred. In this case, the corresponding interrupt message is sent to the host.
2



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com