50
st= fw_abortTransfer_desfire (icdev);
int fw_formatPICC_desfire(int icdev);
Description
Format card
Parameters
icdev: Value of Device Handle.
Return Value
0 if successful; otherwise, Nonzero. Reference Table 1.11
Example
int st;
st= fw_formatPICC_desfire (icdev);
Remark
After Calling this function successfully, all data in the card will be cleared.
2.11 Mifare Plus card specific function
int
fw_MFPlusL0_WritePerso(int ihic, unsigned char* key, unsigned short
keyAddr);
Description:
The personalized setting of the card
Parameters:
Ihic:value of device handle
Key :secret key or data to set
keyAddr:the corresponding block number of secret key or data,reference to
appendix I
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char
mastKey[16]={0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,0x88,0x99,0xAA,0xBB,0x
CC,0xDD,0xEE,0xFF};
st= fw_MFPlusL0_WritePerso (icdev,maskKey,0x9000);
int
fw_MFPlusL0_CommitPerso(int ihic);
Description:
Submit the personalized setting of the card
Parameters:
ihic:
value of device
handle
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;