int stdcall YW_SearchCardModeEx
(
int ReaderID,
int SearchMode,
int Param
);
参数 |
类型 |
方向 |
含义 |
ReaderID |
int |
IN |
所要获取的设备标示ID,范围0x0000-0xFFFF,如果未知,则ReaderID=0 |
SearchMode |
char |
IN |
卡类型: 0x41(‘A’)->ISO14443 TypeA 包括如Mifare Classic卡,如S50、S70、Mifare
mini、 Mifare ultralight、MifarePlus、Mifare
Desfire、Jcop 41、NTAG203/210/212/213/216、Jewel及其ISO14443-4
TYPEA CPU卡等。 0x42(‘B’)->ISO14443 TypeB 包括如AT88RF020、AT88RF080
、SR176、SRI512/1k/2k/4k、SLIX4K
、ISO14443-4 (T=CL) TYPE B CPU卡 0x31(‘1’)->ISO15693 包括如 I.CODE SLI 、Tag-it
HF-I 、EM4135、SRF55VxxP、SRF55VxxS、LRI12/64/128/2k、等其它兼容卡片 0X54(‘T’)->Topaz 0X46(‘F’)->Felica |
Param |
int |
IN |
此参数与SearchMode参数相关,具体设置如下: 当SearchMode =
0x46 Felica 0x01 ->424k bps Felica 0x00 ->212k bps Felica 其他SearchMode该参数暂未定义 |
返 回 值:大于0为命令发送成功,<=0为命令发送失败
int stdcall YW_SearchCardModeEx(int ReaderID,int SearchMode, int Param);
function YW_SearchCardModeEx(ReaderID: Integer;Mode: Integer; Param: Integer): Integer;stdcall;external YOWOREADERDLL;
Public Declare Function YW_SearchCardModeEx Lib "YW60x.dll" (ByVal ReaderID As Long, ByVal Mode As Long, ByVal Param As Long) As Long
public int YW_SearchCardModeEx(int ReaderID,int Mode,int Param)
{
int ret;
try
{
JNative fuc = new JNative("YW60x.dll", "YW_SearchCardModeEx");
fuc.setRetVal(Type.INT);
fuc.setParameter(0, ReaderID);
fuc.setParameter(1,Mode);
fuc.setParameter(2,Param);
fuc.invoke();
ret = fuc.getRetValAsInt();
}
catch(NativeException e)
{
ret = -1;
}
catch(IllegalAccessException e)
{
ret = -2;
}
return ret;
}
[DllImport("YW60x.dll")]
public static extern int YW_SearchCardModeEx(int ReaderID, int Mode, int Param);
public FUNCTION long YW_SearchCardModeEx (long lReaderID , long Mode , long Param ) library "YW60x.dll"