int stdcall YW_G2_Earse
(
int ReaderID,
int EPCLen,
unsigned char *EPC,
unsigned char MemType,
unsigned char StartPos,
unsigned char Nums,
unsigned int Password
);
參數(shù) |
類型 |
含義 |
ReaderID |
int |
老的設(shè)備標示ID,范圍0x00-0xFF,0xFF為廣播地址 |
EPCLen |
int |
要讀寫的EPC標簽EPC長度,字節(jié)數(shù) |
EPC |
unsigned char * |
EPC內(nèi)容 |
MemType |
unsigned char |
要寫的區(qū)塊 G2_BLOCK_RESERVE=0;保留區(qū) G2_BLOCK_EPC =1;EPC區(qū) G2_BLOCK_TID =2;TID區(qū) G2_BLOCK_USER =3;USER區(qū)
|
StartPos |
unsigned char |
開始寫的地址(必須為偶數(shù)地址) |
Nums |
unsigned char |
要擦除的字節(jié)數(shù) |
Password |
unsigned int |
標簽操作的密碼,默認為0 |
返 回 值:大于0為成功,小于0為錯誤
int stdcall YW_G2_Earse (int ReaderID, int EPCLen, unsigned char *EPC,unsigned char MemType, unsigned char StartPos,unsigned char Nums, unsigned int Password);
function YW_G2_Earse(ReaderID: Integer; EPCLen: Integer; EPC: PChar;
MemType: Byte; StartPos: Byte; Nums: Byte;
Password: Integer): Integer;stdcall;external YW602DLL;
Public Declare Function YW_G2_Earse Lib "YW602.dll" (ByVal ReaderID As Long, ByVal EPCLen As Integer, EPC As Byte, _
ByVal MemType As Byte, ByVal StartPos As Byte, ByVal Nums As Byte, _
ByVal Password As Long) As Long