| Electronic Components Datasheet Search |
|
AN2284 Datasheet(PDF) 36 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2284 Datasheet(HTML) 36 Page - STMicroelectronics |
|
36 / 40 page ![]() 10 SC Reader Example AN2284 36/40 PublicDir[3]={0xDD,0x00,DF}; Figure 12. Smart Card Example: File System Description At the end of the example: - the PrivateDir directory will contains the PrivateFile file; - the PublicDir directory will contains the PublicFile file; - the MasterRoot directory will contains the PwdFile file; The definition and the related file identifier code: PrivateFile[3]={0xCA,0xA1,EF}; PublicFile[3]={0xCD,0x00,EF}; PwdFile[3]={0xDD,0xDD,EF}; 10.2.1 Smart Card Start Up: Answer to Reset (A2R) The first action to perform when the reader wants to access a card is the answer to reset procedure. To this aim user has to invoke the SC_Handler as follows: SC_state=SC_POWER_ON; while (SC_state!=SC_ACTIVE_ON_T0) SC_Handler (SC_GET_A2R, pvoid, NULL_PARAM, NULL_PARAM, NULL_PARAM, &SC_state, &u16_status, card); When a card is detected the A2R sequence is genereted, received and decoded. If the recognized protocol is the T0 protocol, the smart card state of the reader will be active (SC_ACTIVE_ON_T0) and the smart card will be available for operations on the file system. 10.2.2 Reading a File at aSpecified Path Suppose the specified path reading begins is: MasterRoot/PrivateDir/PrivateFile To reach it the user has to perform the following actions: SC_Handler (SC_SELECT_FILE, (u8 *) MasterRoot, NULL_PARAM, NULL_PARAM, NULL_PARAM, &SC_state, &u16_status, card); SC_Handler (SC_SELECT_FILE, (u8 *) PrivateDir, NULL_PARAM, NULL_PARAM, NULL_PARAM, &SC_state, &u16_status, response); |
|
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 |
| 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 |