RF API
RF API
API
Ver 1.10
web: www.wbe.com.cn
Table of Contents
1 SUMMARIZE 3
2 API FUNCTION 4
MF_API.DLL is 32 bit DLL document which base on Windows, our client can use it for second development; it can be used as standard .DLL of Windows.
Parameter: rVER: return buffer of version number, end as “\0”, less or equal to 32 byte
Parameter: portname: serial port number, the name of communication port, COM1~COM8 or USB
Example:
Ver: return buffer of device version, end as “\0”, less or equal to 32 byte
2.1.5 int _stdcall MF_ControlLED(int DeviceAddr, unsigned char LED1, unsigned char LED2)
Example:
Example:
Baud: Baud Rate; 0 -> 9600, 1 -> 19200, 2 -> 38400, 3 -> 57600, 4 -> 115200
Note:
Example:
Function: set RF on
2.1.15 int _stdcall MF_SetWiegandMode(int DeviceAddr, unsigned char mode, unsigned char alarm)
Function: Set wiegand mode
2.2.1 int _stdcall MF_Request(int DeviceAddr, unsigned char mode, unsigned char *CardType)
Function: Request card
2.2.6 int _stdcall MF_LoadKeyFromEE(int DeviceAddr, unsigned char KeyType, unsigned char KeyNum)
Function: Load key from EEPROM of reader
2.2.7 int _stdcall MF_Authentication(int DeviceAddr, unsigned char AuthType, unsigned char block, unsigned char *snr)
Function: Authentication
2.2.8 int _stdcall MF_Read(int DeviceAddr, unsigned char block, unsigned char numbers, unsigned char *databuff)
Function: Read card
2.2.9 int _stdcall MF_Write(int DeviceAddr, unsigned char block, unsigned char numbers, unsigned char *databuff)
Function: Write card
2.2.10 int _stdcall MF_Value(int DeviceAddr, unsigned char ValOption, unsigned char block, unsigned char *value)
Function: Value operation
Valopton: Value operation type. 0 = Decrease value (Dec); 1 = Increase value (Inc); 2 = Restore (Restore)
2.2.12 int _stdcall MF_StoreKeyToEE(int DeviceAddr, unsigned char KeyAB, unsigned char KeyAddr, unsigned char *key)
Function: Store key to EEPROM of reader
2.3.1 int _stdcall MF_General_ISO14443A(int DeviceAddr, unsigned char enable_crc, unsigned char *cData, unsigned char cLen, unsigned char *rData,
unsigned char *rLen)
Function: ISO14443A common command
2.3.2 int _stdcall MF_General_ISO14443B(int DeviceAddr, unsigned char *cData, unsigned char cLen, unsigned char *rData, unsigned char *rLen)
Function: ISO14443B common command
2.3.3 int _stdcall MF_General_ISO15693(int DeviceAddr, unsigned char *cData, unsigned char cLen, unsigned char *rData, unsigned char *rLen)
Function: ISO15693 common command
2.3.4 int __stdcall MF_ISO15693_Inventory(int DeviceAddr,unsigned char flags, unsigned char AFI, unsigned char masklengh ,unsigned char *maskvalue,
unsigned char *databuffer)
Function: ISO15693 inventory command