User Manual

49
Example
int st;
unsigned char data[1000];
unsigned int sglen;
unsigned int revlen;
st= fw_readRecord_desfire
(icdev,0x03,0,1,data,&sglen,&revlen,sesskey); / *sesskey means the session key
obtained by verifying key */
Remark: If the length and offset are set to 0, all the records will be read out.
int fw_clearRecord_desfire(int icdev,unsigned char fileNo);
Description
clear the data of record file
Parameters
icdev: Value of Device Handle.
fileNo: File ID
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;
st= fw_clearRecord_desfire (icdev,0x03);
Remark: after this function called successfully, you must also call the function
fw_commitTransfer_desfire to make the operation into effect
int fw_commitTransfer_desfire(int icdev);
Description
commit a data transmission
Parameters
icdev: Value of Device Handle.
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;
st= fw_commitTransfer_desfire (icdev);
Note: after the operations of Increase / impairment, writing / clearing the record
are done, you must call this function to make the operations into effect.
int fw_abortTransfer_desfire(int icdev);
Description
Abort a data transmission
Parameters
icdev: Value of Device Handle.
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;