YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 20 of 28
Apr 2010
Parameter: icdev: [IN] Device ID
page: [IN] page address, 0 ~ 31
pData: [OUT] response data from card
pMsgLen: [OUT] length of response data
Return: return 0 if successful
6.3.2.5 INT WINAPI RF_ AT020_WRITE
Function: AT88RF020 write
Prototype: int WINAPI rf_at020_write ( unsigned short icdev,
unsigned char page,
unsigned char *pData)
Parameter: icdev: [IN] Device ID
page: [IN] page address, 0 ~ 31
pData: [IN] written data, 8 bytes
Return: return 0 if successful
6.3.2.6 INT WINAPI RF_ AT020_LOCK
Function: AT88RF020 LOCK
Prototype: int WINAPI rf_at020_lock (unsigned short icdev, unsigned char *pData)
Parameter: icdev: [IN] Device ID
pData: [IN] 4 bytes data
Return: return 0 if successful
6.3.2.7 INT WINAPI RF_ AT020_DESELECT
Function: AT88RF020 card Deselect
Prototype: int WINAPI rf_at020_deselect (unsigned short icdev)
Parameter: icdev: [IN] Device ID
Return: return 0 if successful
6.3.3 SR176/SRIX4K
6.3.3.1 INT WINAPI RF_ST_SELECT
Function: ST card (SR176/SRIX4K) Lock
Prototype: int WINAPI rf_st_select (unsigned short icdev, unsigned char *pChip_ID)
Parameter: icdev: [IN] Device ID
pChip_ID: [IN] response data from card, 1 byte ID code
Return: return 0 if successful
6.3.3.2 INT WINAPI INT_RF_SR176_READBLOCK
Function: SR176 Read
Prototype: int WINAPI int rf_sr176_readblock ( unsigned short icdev,
unsigned char block,
unsigned char *pData,
unsigned char *pLen)
Parameter: icdev: [IN] Device ID
block: [IN] block address
pData: [OUT] response data from card