
16
__int16
fw_config_card(HANDLE icdev,unsigned char flags);
Description
Configure the card type.
Parameters
icdev:Value of Device Handle.
flags:Card type for operation(0x41=TYPEA,0x42=TYPEB,0x31=ISO15693)
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
st=fw_config_card(icdev,1);
__int16 a_hex(unsigned char *a,unsigned char *hex,__int16 len)
Description
String conversion function, hexadecimal characters convert into ordinary
characters (long
to short).
Parameters
a : Converted characters
hex: the characters to be converted
len:the
length of character a
Return Value
0 if successful; otherwise, Nonzero.
Example
int st;
Unsigned char hexbuf[8]={‘3’,’1’,’6’,’1’,’4’,’d’};
Unsigned char abuf[4];
st=a_hex(abuf,hexbuf,3);/* abuf =”1aM” */
void hex_a(unsigned char *hex,unsigned char *a,__int16 len)
Description
String conversion function, ordinary characters convert into hexadecimal
characters (short
to long
).
Parameters
hex : Converted characters
a
: the characters to be converted
len:the
length of character hex
Return Value
0 if successful; otherwise, Nonzero.
Example
unsigned char hexbuf[8]={0};
unsigned char abuf[4]= {‘1’,’a’,’M’};;
hex_a(hexbuf, abuf ,6);/* abuf =”31614d” */
Содержание E7
Страница 3: ...3 4 Appendix 68 4 1 Table 1 Mifare Plus card personalized structure 68 ...
Страница 5: ...5 ...