| Electronic Components Datasheet Search |
|
AN2646 Datasheet(PDF) 34 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2646 Datasheet(HTML) 34 Page - STMicroelectronics |
|
34 / 43 page ![]() Smartcard interface library: description AN2646 - Application note 34/43 ● FileParameters: It contains the 16 bytes file parameters (File ID, FILE Access Conditions...). ● SCState: It stores the current smartcard state. ● SC_Response->SW1 and SC_Response->SW2: they return the smartcard response to the SC_CREATE_FILE command. 6.3.6 SC_UPDATE_BINARY SC_ADPU.Header.CLA = SC_CLA; SC_ADPU.Header.INS = SC_UPDATE_BINARY; SC_ADPU.Header.P1 = OFFSET_MSB; SC_ADPU.Header.P2 = OFFSET_LSB; SC_ADPU.Body.LC = LENGTH; while(i < LCmax) { SC_ADPU.Body.Data[i++] = 0; } SC_ADPU.Body.LE = 0x00; SC_Handler(&SCState, &SC_ADPU, &SC_Responce); ● SCState: It stores the current smartcard state. ● OFFSET_MSB: Most significant byte of offset for reading data. ● OFFSET_LSB: Least significant byte of offset for reading data. ● LENGTH: It contains the size (in byte) of the area to write (valid only for the elementary file). ● SC_Responce->Data: It contains the smartcard data to write. ● SC_Responce->SW1 and SC_Responce->SW2: they return the smartcard response to the SC_UPDATE_BINARY command. 6.3.7 SC_VERIFY SC_ADPU.Header.CLA = SC_CLA; SC_ADPU.Header.INS = SC_VERIFY; SC_ADPU.Header.P1 = 0x00; SC_ADPU.Header.P2 = 0x00; SC_ADPU.Body.LC = 0x08; for(i = 0; i < SC_ADPU.Body.LC; i++) { SC_ADPU.Body.Data[i] = CHV1[i]; } while(i < LCmax) { SC_ADPU.Body.Data[i++] = 0; } SC_ADPU.Body.LE = 0; SC_Handler(&SCState, &SC_ADPU, &SC_Responce); ● CHV1: It contains the 8-byte CHV1 code. ● SCState: It stores the current smartcard state. ● SC_Responce->SW1 and SC_Responce->SW2: they return the smartcard response to the SC_VERIFY command. |
|
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 |