Unitech mr350 mkii Software Guide

Page of 33
 
25
3.16 
F_RD_REC 
This function is used to read data from a record EF. When secure messaging is used this function 
dose not accept this 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_REC( S_RD_REC* ) 
 
 
Data structure of S_RD_REC 
typedef struct 
int Class; 
int RecNumber; 
unsigned char ShortId; 
int ExpLen; 
int IdOk; 
unsigned char Sw12[2]; 
unsigned char Response[MaxDATA]; 
int RespLen; 
unsigned char CRYin[3]; 
unsigned char CRYout[3]; 
} S_RD_REC; 
 
    Input parameter : 
Class 
 
:0:NORMAL   1:SECURE 
RecNumber  :0 for current record of cyclic record file 
ShortId       :short identifier if implcit select,0 for direct select. 
ExpLen       :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