
33
int fw_halt_ultralt(int icdev);
Description
Abort operation with ultralight card.
Parameters
icdev: Value of Device Handle.
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st= fw_halt_ultralt(icdev);
Remark
When you finish calling this functionl,you should call the below functions before
read data next time: fw_request_ultralt first, fw_anticall_ultralt second and
fw_select_ultralt finally.
2.7 Ultralight-Ccard specific function
int
fw_ultralt_C_authen(int icdev, unsigned char* key);
Description:
Verify the password of the card
Parameters:
icdev:handle of the device
key
:password(16 bytes)
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char pkey[17]= {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f};
st= fw_ultralt_C_authen (icdev, pkey);
int fw_ultralt_C_changePwd(int icdev, unsigned char* keyold,unsigned char*
keynew);
Description:
Change the password of the card
Parameters:
icdev:handle of the device
keyold:the old password(16 bytes)
keynew:the new password(16 bytes)
Return:
0 if successful; otherwise, Nonzero.
Example:
int st;
unsigned char poldkey[17]= {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,