YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 25 of 28
Apr 2010
6.4.9 INT WINAPI ISO15693_WRITE
Function: ISO15693_Write
Prototype: int WINAPI ISO15693_Write ( unsigned short icdev,
unsigned char model,
unsigned char *pUID,
unsigned char block,
unsigned char *pData)
Parameter: icdev: [IN] Device ID
model: [IN] bit0=Select_flag, bit1=Addres_flag, bit2=Option_flag
pUID: [IN] 8 bytes UID
block: [IN] block address
pData: [IN] written data, 4 bytes
Return: return 0 if successful
Explanation:
If set Select_flag, only the cards on Selected state respond this command
If set Address_flag, only the cards that the UID are congruous will respond
this command
If write TI card, set Option_flag,
If write I.CODE SLI card, clear Option_flag
6.4.10 INT WINAPI ISO15693_LOCK_BLOCK
Function: ISO15693_Lock_Block
Prototype: int WINAPI ISO15693_Lock_Block (unsigned short icdev,
unsigned char model,
unsigned char *pUID,
unsigned char block)
Parameter: icdev: [IN] Device ID
model: [IN] bit0=Select_flag, bit1=Addres_flag, bit2=Option_flag
pUID: [IN] 8 bytes UID
block: [IN] block address
Return: return 0 if successful
Explanation:
If set Select_flag, only the cards on Selected state respond this command
If set Address_flag, only the cards that the UID are congruous will respond
this command
If write TI card, set Option_flag,
If write I.CODE SLI card, clear Option_flag
6.4.11 INT WINAPI ISO15693_WRITE_AFI
Function: ISO15693_Write_AFI
Prototype: int WINAPI ISO15693_Write_AFI (unsigned short icdev,
unsigned char model,
unsigned char *pUID,
unsigned char AFI)
Parameter: icdev: [IN] Device ID
model: [IN] bit0=Select_flag, bit1=Addres_flag, bit2=Option_flag
pUID: [IN] 8 bytes UID
AFI: [IN] AFI to be written
Return: return 0 if successful
Explanation:
If set Select_flag, only the cards on Selected state respond this command