| поискавой системы для электроныых деталей |
|
AN2646 датащи(PDF) 33 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2646 датащи(HTML) 33 Page - STMicroelectronics |
|
33 / 43 page ![]() AN2646 - Application note Smartcard interface library: description 33/43 SC_ADPU.Body.Data[i++] = 0; } SC_ADPU.Body.LE = SC_Responce.SW2; SC_Handler(&SCState, &SC_ADPU, &SC_Responce); ● SCState: It stores the current smartcard state. ● SC_Response->SW1 and SC_Response->SW2: they return the smartcard response to the SC_GET_RESPONSE command. ● SC_Response->Data: It returns the smartcard data response to the SC_GET_RESPONSE command. 6.3.4 SC_READ_BINARY SC_ADPU.Header.CLA = SC_CLA; SC_ADPU.Header.INS = SC_READ_BINARY; SC_ADPU.Header.P1 = OFFSET_MSB; SC_ADPU.Header.P2 = OFFSET_LSB; SC_ADPU.Body.LC = 0x00; while(i < LCmax) { SC_ADPU.Body.Data[i++] = 0; } SC_ADPU.Body.LE = LENGTH; 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 size (in byte) of the area to read (valid only for the elementary file). ● SC_Response->Data: It returns the smartcard data to read. ● SC_Response->SW1 and SC_Response->SW2: they return the smartcard response to the SC_READ_BINARY command. 6.3.5 SC_CREATE_FILE SC_ADPU.Header.CLA = SC_CLA; SC_ADPU.Header.INS = SC_CREATE_FILE; SC_ADPU.Header.P1 = 0x00; SC_ADPU.Header.P2 = 0x00; SC_ADPU.Body.LC = 0x10; for(i = 0; i < SC_ADPU.Body.LC; i++) { SC_ADPU.Body.Data[i] = FileParameters[i]; } while(i < LCmax) { SC_ADPU.Body.Data[i++] = 0; } SC_ADPU.Body.LE = 0; SC_Handler(&SCState, &SC_ADPU, &SC_Responce); |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |