-
2.29. Get scanner command set string from decoding chip
Function Description:
This function call has the similar function as HAM_SendCommand_SetString except that it retrieves
setting from scanner
BOOL HAM_SendCommand_GetString(WORD len, BYTE cmdID, BYTE op, LPSTR gets, int* slen,
DWORD timeout)
Parameter: (input)
len: BYTE : Specifies length of command, which will be calculated and
adjusted automatically
cmdID: BYTE : command ID
op: BYTE : operation mode for this command
gets: LPSTR : Buffer which will hold the setting retrieved from scanner
slen: int* : Specifies the length of buffer and returns actual data length in the
buffer
timeout: DWORD : Specifies the timeout in millisecond
Return:
TRUE = indicates the setting has been retrieve successfully.
2.30. Get scanner related version information
Function Description:
Get Scanner related version information. It does not need to call USI_Register to use this function.
Function call:
BOOL USI_GetScannerVersion(LPTSTR model, LPTSTR firmware, LPTSTR sdk, int blen);
Parameter: (output)
model: LPTSTR : scanner model.
firmware: LPTSTR : firmware version number.
sdk: LPTSTR : sdk version number if available.
blen: int : specifies buffer length for parameters of model, firmware and
sdk.
Return:
Always True.
2.31. Enable prompt warming message from USI
Function Description:
Enables USI to report working information in a popup window
Function call:
BOOL USI_EnablePromptMessage(BOOL enable);
Parameter: (output)
enable: BOOL : True= enable, Fail:Disable
Return:
Always True.
2.32. Scanner working mode (available for 2D model)
Function Description:
Sets scanner engine to working mode of barcode decoding/Image/Preview (mode =
SWM_BARCODE) or image capture (mode = SWM_IMAGE) or preview and image capture (mode
= SWM_IMAGE_PREVIEW) for 2D scanner
Function call:
BOOL USI_SetWorkingMode(int mode);
Parameter: (output)
mode: int : mode = SWM_BARCODE – Barcode
mode = SWM_IMAGE – image capture
mode = SWM_IMAGE_PREVIEW – preview and image capture
for 2D scanner
Return:
Always True.