int stdcall YW_G2_Inventory
(
int ReaderID,
bool GetEPC,
int AddrTID,
int LenTID,
int *TagsNum,
int *DataLen,
unsigned char *EPC
);
参数 |
类型 |
含义 |
ReaderID |
int |
老的设备标示ID,范围0x00-0xFF,0xFF为广播地址 |
GetEPC |
bool |
是否获得EPC |
AddrTID |
int |
如果获得TID,则为首地址 |
LenTID |
int |
要读取的TID长度,偶数字节 |
TagsNum |
int * |
寻到的标签数量 |
DataLen |
int * |
读到的数据 |
EPC |
unsigned char * |
读到的EPC,结构为EPC长度+EPC码 |
返 回 值:大于0为成功,小于0为错误
int stdcall YW_G2_Inventory (int ReaderID, bool GetEPC, int AddrTID, int LenTID, int *TagsNum, int *DataLen, unsigned char *EPC);
function YW_G2_Inventory(ReaderID: Integer; GetEPC: Boolean; AddrTID: Integer;LenTID: Integer; var TagsNum: Integer; var DataLen: Integer; EPC: PChar): Integer;stdcall;external YW602DLL;
Public Declare Function YW_G2_Inventory Lib "YW602.dll" (ByVal ReaderID As Long, ByVal GetEPC As Boolean, ByVal AddrTID As Long, ByVal LenTID As Long, TagsNum As Long, DataLen As Long, EPC As Byte) As Long