User Manual

22
Parameters
icdev:Value of Device Handle.
_Mode: Model of find card.
Value:
0——IDLE mode,can operate one card once;
1——ALL mode,can operate serval card once;
_Snr:returned Card serial number.
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned long snr;
st=fw_card(icdev,0,&snr);
Remark
1. In IDLE mode, after read-write operations, we use function fw_halt to end the
card operation, only when the card out and re-enter the operating area, the reader
can operate it once again.
2. When calling this function, we should pay attention to the type of last argument
from incoming data, it must be the address of an unsigned long integer variable
(unsigned char long), or will be automatically converted into a signed one.
Recommended use a function fw_card_hex to return hex card number or a function
fw_card_str to return Decimal card number.
int fw_card_hex(int icdev,unsigned char _Mode,unsigned char * Snrbuf);
Description
Find card, Get the card serial Number in working area. (hex string)
Parameters
icdev:Value of Device Handle.
_Mode: Model of find card.
Value:
0——IDLE mode,can operate one card once;
1——ALL mode,can operate serval card once;
_ Snrbuf: the hex string card number returned(8 bytes)
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
unsigned char snr[9]={0};
st=fw_card_hex(icdev,1,snr);
int fw_card_str(int icdev,unsigned char _Mode,unsigned char* strSnr);
Description
Find card, Get the card serial Number in working area. (Decimal string)
Parameters
icdev:Value of Device Handle.
_Mode: Model of find card.