YHY638F
13.56MHz RFID Reader/Writer
User Manual
Version 1.0
Page 13 of 28
Apr 2010
Return: return 0 if successful
6.1.2 INT WINAPI RF_INIT_COM
Function: Connect
Prototype: int WINAPI rf_init_com (int port, long baud)
Parameter: port: [IN] serial port number
baud: [IN] communication baud rate, 19200 ~ 115200 bps
Return: return 0 if successful
6.1.3 INT WINAPI RF_CLOSEPORT
Function: Disconnect
Prototyp: int WINAPI rf_ClosePort(void)
Return: return 0 if successful
6.1.4 INT WINAPI RF_GET_MODEL
Function: Get Device Type
Prototype: int WINAPI rf_get_model (unsigned short icdev,
unsigned char *pVersion,
unsigned char *pLen)
Parameter: icdev: [IN] Device ID
pVersion: [OUT]
response
information
pLen: [OUT] length of
response
information
Return: return 0 if successful
6.1.5 INT WINAPI RF_INIT_TYPE
Function: Set Reader contactless working mode
Prototype: int WINAPI rf_init_type(unsigned short icdev, unsigned char type)
Parameter: icdev: [IN] Device ID
type: [IN] reader working mode
Return: return 0 if successful
Explanation: this function is not effective to the readers only support single protocol.
type = 'A': set YHY638 into ISO14443A mode
type = 'B': set ISO14443B mode
type = 'r': set AT88RF020 card mode
type = '1': set ISO15693 mode
6.1.6 INT WINAPI RF_ANTENNA_STA
Function: Manage RF Transmittal
Prototype: int WINAPI rf_antenna_sta (unsigned short icdev, unsigned char model)
Parameter: icdev: [IN] Device ID
model: [IN] transmittal state
Return: return 0 if successful
Explanation:model = 0: turn off RF transmittal
model = 1: turn on RF transmittal
6.1.7 INT WINAPI RF_LIGHT