YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 15 of 28
Apr 2010
unsigned char block,
unsigned char *pData,
unsigned char *pLen)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
pData: [OUT] response data from card
pLen: [OUT] length of response data
Return: return 0 if successful
Explanation: this function is also applicable for UltraLight card. Every page of UltraLight card
has 4 bytes. Transfering this function every time, return data of 4 consecutive
pages.
6.2.1.4 INT WINAPI INT RF_UL_WRITE
Function: UltraLight Write
Prototype: int WINAPI int rf_ul_write ( unsigned short icdev,
unsigned char page,
unsigned char *pData)
Parameter: icdev: [IN] Device ID
page: [IN] UltraLight card page address , 0 ~ 0x0F
pData: [IN] written data, 4 bytes
Return: return 0 if successful
6.2.1.5 INT WINAPI RF_HALT
Function: TYPE_A card HALT
Prototype: int WINAPI rf_halt (unsigned short icdev)
Parameter: icdev: [IN] Device ID
Return: return 0 if successful
6.2.2 Mifare_Std
6.2.2.1 INT WINAPI RF_REQUEST
Function: ReqA
Prototype: int WINAPI rf_request ( unsigned short icdev,
unsigned char model,
unsigned short *pTagType)
Parameter: icdev: [IN] Device ID
model: [IN] REQ MODE
pTagType: [OUT] response data, chip type code
Return: return 0 if successful
Explanation: mode = 0x26: REQ_STD
mode = 0x52: REQ_ALL
6.2.2.2 INT WINAPI RF_ANTICOLL
Function: Mifare card Anticollision
Prototype: int WINAPI rf_anticoll ( unsigned short icdev,
unsigned char bcnt,
unsigned char *pSnr,
unsigned char *pLen)