3.2 F_APD_REC
This function writes data and initializes 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_APD_REC( S_APD_REC* );
Data structure of S_APD_REC
typedef struct
{
int Class;
unsigned char ShortId;
int RecLen;
unsigned char RecData[MaxDATA];
int IdOk;
unsigned char Sw12[2];
unsigned char CRYin[3];
unsigned char CRYout[3];
} S_APD_REC;
Input parameter :
Class
: 0 = NORMAL
: 1 = SECURE
ShortId
: short identifier if implicit select,0 for direct select.
RecLen
: The length of record to be update.
RecData[]
: data
Output parameter : This function updates the following parameters.
IdOk
: 0 = OK
; 3 = EDC error
Sw12[]
: SW1-SW2
CRYin[]
: CRYcks 2,1,0 only for secure message
CRYout[]
: CRYcks 7,6,5 only for secure message
1 = Timeout
2 = No card
5 = Parity error
7 = see SW1-SW2
13