YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 14 of 28
Apr 2010
Function: Manage LED
Prototype: int WINAPI rf_light (unsigned short icdev, unsigned char color)
Parameter: icdev: [IN] Device ID
color: [IN] 0 = off
1 = red
2 = green
3 = yellow (RFU)
Return: return 0 if successful
6.1.8 INT WINAPI RF_BEEP
Function: beep
Prototype: int WINAPI rf_beep (unsigned short icdev, unsigned char msec)
Parameter: icdev: [IN] Device ID
msec: [IN] beep time, unit 10 Msec
Return: return 0 if successful
6.2 ISO14443A FUNCTION
6.2.1 UltraLight
6.2.1.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.1.2 INT WINAPI INT RF_UL_SELECT
Function: Select UltraLight
Prototype: int WINAPI int rf_ul_select (unsigned short icdev,
unsigned char *pSnr,
unsigned char *pLen)
Parameter: icdev: [IN] Device ID
pSnr: [OUT] response data, card unique serial number
pLen: [OUT] length of response data
Return: return 0 if successful
6.2.1.3 INT WINAPI RF_M1_READ
Function: MifareOne read
Prototype: int WINAPI rf_M1_read ( unsigned short icdev,