Unitech mr350 mkii Software Guide

Page of 33
 
32
3.23 
F_VERIFY 
This function presents a code to the card. 
 
 
Compatible with ISO7816 or Gemplus command set 
 
 
IS7816    if class = normal 
 
 
Genplus  if class = secure 
 
 
Function call 
void F_VERIFY( S_VERIFY* ); 
 
 
Data structure of S_VERIFY 
typedef struct 
int Class; 
int ScNumber; 
unsigned char ScValue[9]; 
int IdOk; 
unsigned char Sw12[2]; 
} S_VERIFY; 
 
    Input parameter : 
Class   
 
:0:NORMAL   1:SECURE 
ScNumber   
:secret code number from 0 to 7 
ScValue[]   
:secret code valure(8 byte) 
 
   Output parameter : This function updates the following parameters. 
IdOk       : 0 = OK   
 
1 = Timeout   
2 = No card 
; 3 = EDC error 
5 = Parity error 
7 = see SW1-SW2 
Sw12[]     :SW1-SW2