Motore di ricerca datesheet componenti elettronici
  Italian  ▼
ALLDATASHEETIT.COM

X  

AN2284 Scheda tecnica(PDF) 37 Page - STMicroelectronics

Il numero della parte AN2284
Spiegazioni elettronici  Smart Card Interface with the STR71xx
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Produttore elettronici  STMICROELECTRONICS [STMicroelectronics]
Homepage  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2284 Scheda tecnica(HTML) 37 Page - STMicroelectronics

Back Button AN2284 Datasheet HTML 32Page - STMicroelectronics AN2284 Datasheet HTML 33Page - STMicroelectronics AN2284 Datasheet HTML 34Page - STMicroelectronics AN2284 Datasheet HTML 35Page - STMicroelectronics AN2284 Datasheet HTML 36Page - STMicroelectronics AN2284 Datasheet HTML 37Page - STMicroelectronics AN2284 Datasheet HTML 38Page - STMicroelectronics AN2284 Datasheet HTML 39Page - STMicroelectronics AN2284 Datasheet HTML 40Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 37 / 40 page
background image
AN2284
10 SC Reader Example
37/40
SC_Handler (SC_SELECT_FILE, (u8 *) PrivateFile, NULL_PARAM,
NULL_PARAM,NULL_PARAM, &SC_state, &u16_status, response);
Once the selected path is accessed, the user has to define the 16bit offset where he wants to
read and the number of bytes he wants to read:
offset_low=1;
offset_high=0;
byte_number=3;
SC_Handler (SC_READ_BINARY, (u8 *) PrivateFile, byte_number, offset_high, offset_low,
&SC_state, &u16_status, response);
10.2.3 Writing a File at a Specified Path
Suppose the user wants to write the
PublicFile in the MasterRoot. He has to define the 16bits
offset where he wants to read and the number of bytes he wants to read.
In the example,
FileParamST array will store the sequence the user wants to write.
offset_low=1;
offset_high=0;
byte_number=18;
FileParamST[40]="SmartCardDemo";
SC_Handler (SC_UPDATE_BINARY, (u8 *) FileParamST, byte_number,
offset_high,offset_low, &SC_state, &u16_status, response);
10.2.4 Creating a File at a Specified Path
Suppose the user wants to create a file in the
MasterRoot.
SC_Handler (SC_SELECT_FILE, (u8 *) MasterRoot, NULL_PARAM, NULL_PARAM,
NULL_PARAM, &SC_state, &u16_status, card);
SC_Handler (SC_CREATE_FILE, (u8 *) PublicFile, 20,NULL_PARAM, NULL_PARAM,
&SC_state, &u16_status, response);
Where
20 is the size (in byte) of PublicFile.
10.2.5 Creating a File at a Specified Path With Pin Protection
Suppose the user wants to create a file in the
MasterRoot/PublicDir directory.
SC_Handler (SC_SELECT_FILE, (u8 *) MasterRoot, NULL_PARAM, NULL_PARAM,
NULL_PARAM, &SC_state, &u16_status, card);
SC_Handler (SC_CREATE_FILE, (u8 *) PublicDir, NULL_PARAM,
NULL_PARAM,NULL_PARAM, &SC_state, &u16_status, response);
SC_Handler (SC_SELECT_FILE, (u8 *) PublicDir, NULL_PARAM,
NULL_PARAM,NULL_PARAM, &SC_state, &u16_status, response);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


Scheda tecnica Scarica

Go To PDF Page


Link URL



Lei ha avuto il aiuto da alldatasheet?  [ DONATE ] 

Di alldatasheet   |   Richest di pubblicita   |   contatti   |   Privacy Policy   |   Collegamento alla scheda tecnica    |   scambio Link   |   Ricerca produttore
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