37
int st;
unsigned long snr2;
st= fw_anticoll2 (icdev,0,&snr2);
int fw_select2(int icdev,unsigned long _Snr);
int fw_select2(int icdev,unsigned long _Snr);
Description
The second time to select a card
Parameters
icdev: Value of Device Handle.
_Snr:
card serial number gotten by the second Anti-collision
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st= fw_select2(icdev,snr2);
int fw_reset_desfire(int icdev,unsigned char *rlen,unsigned char *rdata);
Description
Reset
desifare card
Parameters
icdev: Value of Device Handle.
rlen:
length of reset information
rdata: Return of the reset information
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned char revlen;
unsigned char revdata[50];
st= fw_reset_desfire (icdev,&revlen,revdata);
int fw_authen_desfire(int icdev,unsigned char keyNo, char*
key,unsigned char* sessionKey);
Description
Key authentication
Parameters
icdev: Value of Device Handle.
keyNo: the key number to verify
key: 16 bytes key
sessionKey: the session key returned after successful key authentication
Return Value
0 if successful; otherwise, Nonzero. (Refer to 1.11 Tables for more information)
Example
//Verify key number 1