31
0 if successful; otherwise, nonzero.
Example
int st;
unsigned char data [16];
St=fw_read_S70 (icdev, 100, data); //read block 100 of S70 card
int fw_write_S70 (int icdev, unsigned char _Adr, unsigned char *_Data);
Description
Write S70 card, only can write one block once, 16 bytes.
Parameters
icdev: Value of Device Handle.
_Adr:
Block address (0-255);
_Data:
data to write
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned char *data=”1234567890abcdef”;
st=fw_write_S70 (icdev, 100, data); //write data to block 100
2.6 Ultralight card specific function
int fw_request_ultralt (int icdev, unsigned char _Mode);
Description
Request of find card.
Parameters
icdev: Value of Device Handle.
_Mode: Mode of find card (0 or 1).
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st= fw_request_ultralt (icdev, 0);
remark: Parameter _Mode can be set 0 or 1
int fw_anticall_ultralt (int icdev, unsigned long *_Snr);
Description
Prevent card conflict
Parameters
icdev: Value of Device Handle.
_ Snr: [out] Card serial number.
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned long nCard;