
31
3.22
F_UPD_REC
This function updates data to a record EF. When secure messaging is used the 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_UPD_REC( S_UPD_REC* );
Data structure of S_UPD_REC
typedef struct
{
int Class;
int RecNumber;
unsigned char ShortId;
int LcLen;
unsigned char RecData[MaxDATA];
int IdOk;
unsigned char Sw12[2];
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_UPD_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.
LcLen
:The length of record to be update.
RecData[]
:data
Output parameter :
IdOk : 0 = OK
1 = Timeout
2 = No card
; 3 = EDC error
5 = Parity error
7 = see SW1-SW2
Sw12[] :SW1-SW2
CRYin[] :CRYcks 2,1,0 only for secure message
CRYout[] :CRYcks 7,6,5 only for secure message