int stdcall YW_G2_Read
(int ReaderID,
int EPCLen,
unsigned char *EPC,
unsigned char MemType,
unsigned char StartPos,
unsigned char ReadLen,
unsigned int Password,
int *G2DataLen,
unsigned char *G2Data
);
参数 |
类型 |
含义 |
ReaderID |
int |
老的设备标示ID,范围0x00-0xFF,0xFF为广播地址 |
EPCLen |
int |
要读写的EPC标签EPC长度,字节数 |
EPC |
unsigned char * |
EPC内容 |
MemType |
unsigned char |
要读的区块 G2_BLOCK_RESERVE=0;保留区 G2_BLOCK_EPC =1;EPC区 G2_BLOCK_TID =2;TID区 G2_BLOCK_USER =3;USER区
|
StartPos |
unsigned char |
开始读取的地址(必须为偶数地址) |
ReadLen |
unsigned char |
要读取的字节数(必须为偶数) |
Password |
unsigned int |
标签操作的密码,默认为0 |
G2DataLen |
int * |
读到的字节数 |
G2Data |
unsigned char |
读到的内容 |
返 回 值:大于0为成功,小于0为错误
int stdcall YW_G2_ Read (int ReaderID, int EPCLen, unsigned char *EPC,unsigned char MemType, unsigned char StartPos, unsigned char ReadLen,unsigned int Password,int *G2DataLen, unsigned char *G2Data);
function YW_G2_Read(ReaderID: Integer; EPCLen: Integer; EPC: PChar;
MemType: Byte; StartPos: Byte; ReadLen: Byte;
Password: Integer;
var G2DataLen: Integer; G2Data: PChar): Integer;stdcall;external YW602DLL;
Public Declare Function YW_G2_Read Lib "YW602.dll" (ByVal ReaderID As Long, ByVal EPCLen As Integer, EPC As Byte, _
ByVal MemType As Byte, ByVal StartPos As Byte, ByVal ReadLen As Byte, _
ByVal Password As Long, _
G2DataLen As Integer, G2Data As Byte) As Long