Get Scan Data - Unitech MR650 Programming Manual

Unitech mr650: user guide
Hide thumbs Also See for MR650:
Table of Contents

Advertisement

2.7. Get scan data

Function Description:
Retrieve the scan data into the buffer. Return the length of characters. It also returns the barcode
type if type is not NULL. Return 0 means that the buffer is too short to hold the data. USI_GetData
should be called when SM_DATAREADY message is received. Or call USI_ResetData to discard
the data. Both of them will reset the data buffer so that next scan data can come in. If the data buffer
is not empty and a new scan data occurs, it will be discarded and an error message SM_ERROR
with code of SERR_DATALOST will be sent.
Function call:
UINT USI_GetData(LPBYTE
Parameter: (input)
len:
Parameter: (output)
buffer:
type:
-
buffer,
UINT
: Len specifies the maximum length of the buffer.
LPBYTE
: Data buffer for storing scanned data
UINT
: Barcode type which is defined on USI.H. Please refer to below
list
BCT_CODE_39
BCT_CODABAR
BCT_CODE_128
BCT_INTERLEAVED_2OF5
BCT_CODE_93
BCT_UPC_A
BCT_UPC_A_2SUPPS
BCT_UPC_A_5SUPPS
BCT_UPC_E0
BCT_UPC_E0_2SUPPS
BCT_UPC_E0_5SUPPS
BCT_EAN_8
BCT_EAN_8_2SUPPS
BCT_EAN_8_5SUPPS
BCT_EAN_13
BCT_EAN_13_2SUPPS
BCT_EAN_13_5SUPPS
BCT_MSI_PLESSEY
BCT_EAN_128
BCT_UPC_E1
BCT_UPC_E1_2SUPPS
BCT_UPC_E1_5SUPPS
BCT_TRIOPTIC_CODE_39
BCT_BOOKLAND_EAN
BCT_COUPON_CODE
BCT_STANDARD_2OF5
BCT_CODE_11_TELPEN
BCT_CODE_32
BCT_DELTA_CODE
BCT_LABEL_CODE
BCT_PLESSEY_CODE
BCT_TOSHIBA_CODE
UINT
len, UINT* type);
// Code 39
// CodaBar
// Code 128
// Interleaves 2 of 5
// Code 93
// UPC A
// UPC A with 2 Supps
// UPC A with 5 Supps
// UPC E
// UPC E with 2 Supps
// UPC E with 5 Supps
// EAN 8
// EAN 8 with 2 Supps
// EAN 8 with 5 Supps
// EAN 13
// EAN 13 with 2 Supps
// EAN 13 with 5 Supps
// MSI Plessey
// EAN 128
// UPC E1
// UPC E1 with 2 Supps
// UPC E1 with 5 Supps
// TRIOPTIC CODE 39
// Bookland EAN
// Coupon Code
// Standard 2 of 5
// Code 11 Telpen
// Code 32
// Delta Code
// Label Code IV & V
// Plessey Code
// Toshiba Code China Postal
Code

Advertisement

Table of Contents
loading

Table of Contents