YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 18 of 28
Apr 2010
6.2.2.11 INT WINAPI RF_M1_RESTORE
Function: Mifare_Std Restore
Prototype: int WINAPI rf_M1_restore (unsigned short icdev, unsigned char block)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
Return: return 0 if successful
6.2.2.12 INT WINAPI RF_M1_TRANSFER
Function: Mifare_Std Transfer
Prototype: int WINAPI rf_M1_transfer (unsigned short icdev, unsigned char block)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
Return: return 0 if successful
Explanation: this function only be transferred after increment, decrement and restore command
6.2.2.13 INT WINAPI RF_HALT
Function: Mifare Halt
Prototype: int WINAPI rf_halt (unsigned short icdev)
Parameter: icdev: [IN] Device ID
Return: return 0 if successful
Explanation: card exit active estate after received this command
6.2.3 Mifare_ProX
6.2.3.1 INT WINAPI RF_TYPE_RST
Function: Request ISO14443A-4 card and reset
Prototype: int WINAPI rf_typea_rst ( unsigned short icdev,
unsigned char model,
unsigned char *pData,
unsigned char *pMsgLg)
Parameter: icdev: [IN] Device ID
model: [IN] request mode
pData: [OUT] response data from card
pMsgLg: [OUT] length of response data
Return: return 0 if successful
Explanation:mode = 0x26: REQ_STD
mode = 0x52: REQ_ALL
pData: 4bytes CSN + RATS according to ISO14443A
6.2.3.2 INT WINAPI RF_ COS_COMMAND
Prototype: int WINAPI rf_cos_command ( unsigned short icdev,
unsigned char *pCommand,
unsigned char cmdLen,
unsigned char *pData,
unsigned char *pMsgLg)
Parameter: icdev: [IN] Device ID
pCommand: [IN] COS command