YW_RequestCard
TypeA卡寻卡

参数列表:

int stdcall YW_RequestCard

(

int ReaderID,

char RequestMode

unsigned short *CardType

);


参数含义:

参数

类型

方向

含义

ReaderID

int

IN

所要获取的设备标示ID,范围0x0000-0xFFFF,如果未知,则ReaderID=0

RequestMode

char

IN

寻卡的模式:

0x52->所有卡

0x26->未休眠卡

CardType

unsigned short *

OUT

返回卡的类型:ATQA(2字节)

0x4400-> Ultralight/UltraLight C  /MifarePlus(7Byte UID)

0x0400-> Mifare Mini/Mifare 1K (S50) /MifarePlus(4Byte UID)

0x0200-> Mifare_4K(S70)/ MifarePlus(4Byte UID)

0x0800-> Mifare_Pro

0x0403-> Mifare_ProX

0x4403->Mifare_DESFire

0x4200-> MifarePlus(7Byte UID)

返 回 值:大于0为命令发送成功,<=0为命令发送失败


C++声明(VC++和C++ Builder):

int stdcall YW_RequestCard(int ReaderID,char RequestMode , unsigned short *CardType);


Delphi声明:

function YW_RequestCard(ReaderID: Integer;RequestMode: Byte;var CardType: Word): Integer;stdcall;external YOWOREADERDLL;


VB声明:

Public Declare Function YW_RequestCard Lib "YW60x.dll" (ByVal ReaderID As Long, ByVal RequestMode As Byte, ByRef CardType As Integer) As Long


JAVA声明:

public int YW_RequestCard(int ReaderID,int RequestMode , Pointer CardType)

{

int ret;

try

{

JNative fuc = new JNative("YW60x.dll", "YW_RequestCard");

fuc.setRetVal(Type.INT);

fuc.setParameter(0, ReaderID);

fuc.setParameter(1,RequestMode);

fuc.setParameter(2,CardType);

fuc.invoke();

ret = fuc.getRetValAsInt();

}

catch(NativeException e)

{

ret = -1;

}

catch(IllegalAccessException e)

{

ret = -2;

}

return ret;

}


C#声明:

[DllImport("YW60x.dll")]

public static extern int YW_RequestCard(int ReaderID,byte RequestMode, ref ushort CardType);


Power Builder 9 声明:

public FUNCTION long YW_RequestCard (long lReaderID , char RequestMode, ref integer CardType ) library "YW60x.dll"


支持的RFID读写器:
SDT-HA, YW-605RA, YW-605RB, YW-605RC, YW-605SA, YW-605SB, YW-605SC, YW-605UA, YW-605UB, YW-605UC, YW-605HA, YW-605HB, YW-605HC, YW-620HA, YW-620HB, YW-620HC, YW-608RA, YW-608RB, YW-608RC, YW-608SA, YW-608SB, YW-608SC, YW-608UA, YW-608UB, YW-608UC, YW-608HA, YW-608HB, YW-608HC, YW-610SA, YW-610SB, YW-610SC, YW-607