Unitech mr350 mkii Guía Del Software

Descargar
Página de 33
 
21
3.12 
F_LD_SC 
   This function loads a code into secret code file. 
 
 
Compatible with ISO7816 or Gemplus command set 
 
 
Gemplus 
 
Function call 
   void F_LD_SC( S_LD_SC* ); 
 
Data structure of S_LD_SC 
typedef struct 
int Class; 
int Mode; 
unsigned char ShortId; 
int CodeNum; 
int CodeType; 
int CodeMPN; 
int UcrLevel; 
int UcrNum; 
unsigned char CodeValue[8]; 
int IdOk; 
unsigned char Sw12[2]; 
} S_LD_SC; 
 
    Input parameter : 
Class 
 
:0 = NORMAL       
1 = SECURE 
Mode 
 
:0:direct select       
1 = implicit select 
ShortId   
:short EFsc identifier,This is needed if Mode=1. 
CodeNum 
:code number 0-7 only. 
CodeType 
:0 = plain mode      
1 = cipher mode 
CodeMPN 
:1~7 
UcrLevel  
:0 = global      
 
1 = local 
UcrNum   
:unlock code number 0~7 
CodeValue[]  :holds secret code value 
 
   Output parameter :   
     IdOk       : 0 = OK   
 
1 = Timeout   
2 = No card 
; 3 = EDC error 
5 = Parity error 
7 = see SW1-SW2 
     Sw12[]     :SW1-SW2