YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 17 of 28
Apr 2010
Prototype: int WINAPI rf_M1_write (unsigned short icdev,
unsigned char block,
unsigned char *pData)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
pData: [IN] written data, 16 bytes
Return: return 0 if successful
6.2.2.7 INT WINAPI RF_M1_INITVAL
Function: Mifare_Std card Initialize Value
Prototype: int WINAPI rf_M1_initval ( unsigned short icdev,
unsigned char block,
long value)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
pValue: [IN] initialize purse value at HEX format, low byte in former
Return: return 0 if successful
6.2.2.8 INT WINAPI RF_M1_READVAL
Function: Mifare_Std Read Value
Prototype: int WINAPI rf_M1_readval ( unsigned short icdev,
unsigned char block,
long *pValue)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
pValue: [OUT] response value at HEX format, low byte in former
Return: return 0 if successful
6.2.2.9 INT WINAPI RF_M1_INCREMENT
Function: Mifare purse increment
Prototype: int WINAPI rf_M1_increment (unsigned short icdev,
unsigned char block,
long value)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
value: [IN] increase value at HEX format, low byte in former
Return: return 0 if successful
6.2.2.10 INT WINAPI RF_M1_DECREMENT
Function: Mifare purse decrement
Prototype: int WINAPI rf_M1_decrement (unsigned short icdev,
unsigned char block,
long value)
Parameter: icdev: [IN] Device ID
block: [IN] block absolute address
value: [IN] decrease value at HEX format, low byte in former
Return: return 0 if successful