Unitech mr350 mkii Software Guide

Page of 33
 
23
3.14 
F_OPEN_ICC 
Reset Smart Card and get Answer To Reset. This function sets Access Condition 1,2 and 3 to zero. 
 
 
Compatible with ISO7816 or Gemplus command set 
 
 
No 
 
 
Function call 
       
void F_OPEN_ICC( S_OPEN_ICC* ); 
 
Data structure of S_OPEN_ICC 
   typedef struct 
   { 
      int Smart CardType; 
      int AtrReady; 
      int AtrLen; 
      unsigned char AtrBuf[MaxATR]; 
      int HistLen; 
      int HistOffset; 
   } S_OPEN_ICC; 
 
    Input parameter : 
Smart CardType 
 
:Reserve for Future Use. 
   
   Output parameter : 
     AtrReady   :0=OK     
 
1=Timeout     
2=No card   
 
;4=data not stable    5=Parity error 
     AtrLen     :holds ATR length ,from TS to TCK. 
     AtrBuf[]    :holds ATR char, at most 32 char (7816-3,6.1.4) 
     HistLen     :holds the number of history char, from T1 to TK 
     HistOffset   :History char start from Atr_buf[Hist_offset]