
Programming Manual
134
Function Return Values
Constant
Value
Description
E_FUNC_SUCCEED
0x00000000
The function returned without error.
E_FUNC_ERROR
0x00000001
The function returned error.
E_FUNC_NULLPTR
0x00000002
A null pointer was passed to the function.
E_FUNC_PAR_ERROR
0x00000003
A invalid parameter was passed to the function.
E_SCAN_FUNC_SUCCEED
0x00000000
Scanner work succeed
E_SCAN_INVALID_HANDLE
0x00000001
Scanner not ready maybe other application using
E_SCAN_SETTING_FAIL
0x00000003
Setting scanner fail
E_SCAN_INSUFFICIENT_BUFFER
0x00000004
The buffer to receive scan data is to small
E_SCAN_NODATA
0x00000005
There is no scan data
E_SCAN_TIMEOUT
0x00000006
Get scan data timout
SM_DATA_READY
1
Barcode data is ready
SM_ERROR_SYSTEM
2
System error, call API_GetSysError to get system error code
SM_ERROR_API
3
API error, call API_GetError() to get api error code
ERR_WRITE_FAIL
1 Write data to scanner fail
ERR_SETTING_FAIL
2 Setting scanner configure fail
ERR_SCANNER_NOT_OPEN
3 Scanner device is not open
ERR_INVALID_FILE
4 Assigned file is invalid
ERR_TIMEOUT
5 Wait scanner respond timeout
ERR_INVALID_SCANNER_VER
6 Invalid scanner firmware version
BT_ERR_CREATE_FAIL
0x00001001
BlueTooth module startup fail
BT_ERR_INUSING
0x00001002
BlueTooth module is using by other application
BT_ERR_DEVICE_ERROR
0x00001003
BlueTooth Initial setting fail
BT_ERR_SETTING_FAIL
0x00001004
BlueTooth setup fail
BT_ERR_REG_DEV_FAIL
0x00001005
Register communication port fail
BT_ERR_SPP_COM_FAIL
0x00001006
SPP service com open fail
BT_ERR_INSUFFICIENT
0x00001007
The buffer for receivc data is insufficient
BT_ERR_PAIR_FAIL
0x00001008
Pait to device fail
BT_ERR_CHANNEL
0x00001009
SPP channel error
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...