Unitech mr350 mkii Software Guide

Page of 33
 
24
3.15 
F_RD_BIN   
This function is used to read a continuous block of bytes in a transparent EF. When secure 
messaging is used the function dose not accept the Read command of length greater than the 
communication buffer size(64 bytes). 
 
Compatible with ISO7816 or Gemplus command set 
 
 
IS7816    if class = normal 
 
 
Genplus  if class = secure 
 
Function call 
void F_RD_BIN( S_RD_BIN* ); 
 
Data structure of S_RD_BIN 
typedef struct 
int Class; 
int Mode; 
unsigned char ShortId; 
int Offset; 
int RbLenIn; 
 
int IdOk; 
unsigned char Sw12[2]; 
unsigned char Response[MaxDATA]; 
int RespLen; 
unsigned char CRYin[3]; 
unsigned char CRYout[3]; 
} S_RD_BIN; 
    Input parameter : 
      Class 
 
; 0=NORMAL  
 
1=SECURE 
     Mode   
:0=direct select       
1=implicit select 
     ShortId   
:short EF identifier, This is needed if Mode=1. 
     Offset        :0000-7FFF if Mode=0, 00-FF if Mode=1. 
     RbLenIn      :00-7F,data length to be read. 
   Output parameter :. 
IdOk       : 0 = OK   
 
1 = Timeout   
2 = No card 
; 3 = EDC error 
5 = Parity error 
7 = see SW1-SW2 
Sw12[]     :SW1-SW2 
Response[]   :storage for output data 
RespLen     :length of out data 
CRYin[]     :Reserve 
       
CRYout[]    :CRYcks 7,6,5 only for secure message