YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 22 of 28
Apr 2010
block: [IN] block address
pData: [OUT] response data from card
pLen: [OUT] length of response data
Return: return 0 if successful
6.3.3.7 INT WINAPI INT_RF_SRIX4K_ WRITEBLOCK
Function: SRIX4K Write
Prototype: int WINAPI int rf_srix4k_writeblock(unsigned short icdev,
unsigned char block,
unsigned char *pData)
Parameter: icdev: [IN] Device ID
block: [IN] block address
pData: [IN] written data, 4bytes
Return: return 0 if successful
6.3.3.8 INT WINAPI INT_RF_SRIX4K_ PROTECTBLOCK
Function: SRIX4K Lock
Prototype: int WINAPI int rf_srix4k_protectblock(unsigned short icdev, unsigned char lockreg)
Parameter: icdev: [IN] Device ID
Lockreg: [IN] LOCKREG
Return: return 0 if successful
Explanation: 7~15 blocks of SRIX4K card can be written protect
lockreg BLOCK bit_setting
b7 15 1:Write Enable 0:Block set as ROM
b6 14 1:Write Enable 0:Block set as ROM
b5 13 1:Write Enable 0:Block set as ROM
b4 12 1:Write Enable 0:Block set as ROM
b3 11 1:Write Enable 0:Block set as ROM
b2 10 1:Write Enable 0:Block set as ROM
b1 9 1:Write Enable 0:Block set as ROM
b0 7 & 8 1:Write Enable 0:Block set as ROM
6.4 ISO15693 FUNCTION
6.4.1 INT WINAPI ISO15693_INVENTORY
Function: ISO15693_Inventory (single card)
Prototype: int WINAPI ISO15693_Inventory ( unsigned short icdev,
unsigned char *pData,
unsigned char *pLen)
Parameter: icdev: [IN] Device ID
pData: [OUT] response data from tag, 1 byte DSFID + 8 bytes UID
pLen: [OUT] length of response data
Return: return 0 if successful
6.4.2 INT WINAPI ISO15693_INVENTORYS
Function: ISO15693_Inventory (several cards)
Prototype: int WINAPI ISO15693_Inventorys (unsigned short icdev,