Demo Board API Manual v2.3
Demo Board API Manual v2.3
V2.3
Page 1 of 11
INDEX
DEMO Board API Manual...........................................................................................................................1
1. API Function Description ....................................................................................................................3
1.1 Error code .........................................................................................................................................3
1.2 Export from SynoAPI.dll..................................................................................................................3
1.3 Export from ARTH_DLL.dll ....................................................................................................................9
2 Oprate flow.............................................................................................................................................10
2.1 Enroll a finger and save to Flash ....................................................................................................10
2.2 Search finger from flash ................................................................................................................. 11
Page 2 of 11
1. API Function Description
1. OpenDevice;
BOOL WINAPI PSOpenDevice(int nDeviceType,int nPortNum,int nPortPara,int
nPackageSize=2);
Parameter: nDeviceType: 0:USB Device ;1:Serial Port Device
nPortNum: if nDeviceType equal 1 then nPortNum is a Serail port
number representation.
nPortPara: baudRate setting
Return: if device opened success then the function return true.
2. CloseDevice
Page 3 of 11
BOOL WINAPI PSCloseDevice();
Return: if device closed success then the function return true.
7. Combine BufferAs character file with BufferBs character file and generate the templet
Page 4 of 11
iPageID: this Indicates character file storage page.
Return: function return 0 Indicates success,others see error code
reference.
Page 5 of 11
14. Genarate a BMP file from image data buffer
int WINAPI PSImgData2BMP(unsigned char* pImgData,const char* pImageFile);
Parameter: pImgData: Bmp file data buffer. It doesnt include header of bmp file.
pImageFile: path of bmp file save.
15. Delete specify range of character file from flash fingerprint libaray
int WINAPI PSDelChar(int nAddr,int iStartPageID,int nDelPageNum);
Parameter: iStartPageID: start of range.
nDelPageNum: numbers of character file.
Return: function return 0 Indicates success,others see error code
reference.
Page 6 of 11
UserContent: the content buffer.
Return: function return 0 Indicates success,others see error code
reference.
Page 7 of 11
28. Set Chip address
int WINAPI PSSetChipAddr(int nAddr,unsigned char* pChipAddr);
Parameter: pChipAddr: Chip address buffer.
Page 8 of 11
1.3 Export from ARTH_DLL.dll
Page 9 of 11
2 Oprate flow
Page 10 of 11
2.2 Search finger from flash
Page 11 of 11