Unitech PA500 manual Get length of scanned data, Get Symbology name

Page 10

UINT : Data length

2.8.Get length of scanned data

Function Description:

Returns the data length of the scan data. When allocate the memory to hold the scan data, add at least one additional byte for string terminator.

Function call:

UINT USI_GetDataLength();

Return: UNIT : data length

2.9.Get Symbology name

Function Description:

Returns the barcode name of the type.

Function call:

LPCTSTR USI_GetBarcodeName(UINT type, LPBYTE buffer, UINT len);

Parameter: (input)

type

: UINT

: barcode type. (refer to 0 for type definition

 

 

 

 

buffer

: LPBYTE

: Please refer to below table

 

 

Type

 

 

Buffer

 

 

BCT_CODE_39

 

Code 39

 

 

BCT_CODABAR

 

Codabar

 

 

BCT_CODE_128

 

Code 128

 

 

BCT_INTERLEAVED_2OF5

 

Interleaved 2 of 5

 

 

BCT_CODE_93

 

Code 93

 

 

BCT_UPC_A

 

 

UPC A

 

 

BCT_UPC_A_2SUPPS

 

UPC A with 2 Supps.

 

 

BCT_UPC_A_5SUPPS

 

UPC A with 5 Supps.

 

 

BCT_UPC_E0

 

 

UPC E

 

 

BCT_UPC_E0_2SUPPS

 

UPC E with 2 Supps.

 

 

BCT_UPC_E0_5SUPPS

 

UPC E with 5 Supps.

 

 

BCT_EAN_8

 

 

EAN 8

 

 

BCT_EAN_8_2SUPPS

 

EAN 8 with 2 Supps.

 

 

BCT_EAN_8_5SUPPS

 

EAN 8 with 5 Supps.

 

 

BCT_EAN_13

 

 

EAN 13

 

 

BCT_EAN_13_2SUPPS

 

EAN 13 with 2 Supps.

 

 

BCT_EAN_13_5SUPPS

 

EAN 13 with 5 Supps.

 

 

BCT_MSI_PLESSEY

 

MSI Plessey

 

 

BCT_EAN_128

 

EAN 128

 

 

BCT_TRIOPTIC_CODE_39

 

Trioptic Code 39

 

 

BCT_BOOKLAND_EAN

 

Bookland EAN

 

 

BCT_COUPON_CODE

 

Coupon Code

 

 

BCT_STANDARD_2OF5

 

Standard 2 of 5

 

 

BCT_CODE_11_TELPEN

 

Code 11 or Telpen

 

 

BCT_CODE_32

 

Code 32 (Pharmacy Code)

 

 

BCT_DELTA_CODE

 

Delta Code

 

 

BCT_LABEL_CODE

 

Label Code IV & V

 

 

BCT_PLESSEY_CODE

 

Plessey Code

 

 

BCT_TOSHIBA_CODE

 

Toshiba Code (China Postal Code)

 

 

len

: UINT

: length of string on the 2nd parameter buffer

Return:

TRUE

: if it found name for the barcode type,

FALSE : if not (type may be wrong

-

Image 10
Contents PA500 Programming Manual Automatically enable scanner beam with pressing trigger key USI.DLL Unitech Scanner Interface DLLSCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Function call Parameter inputGet error code Enable / Disable ScannerReset Scanner Returns the system error codeFunction Description Get scan dataParameter output Get Symbology name Get length of scanned dataSave setting to profiles Good read indicatorWait for acknowledgement of the last sent command Clear scan data system bufferAutomatically enable scanner beam with pressing trigger key Save scanner setting into specified fileChange scanner setting from specified setting profile Parameter output ReturnStop auto scanning function Check if auto scanning is enableTest if Scan2Key is enabled Check if Scan2Key.exe program is running or notOnly send single command decoding chip Enable/Disable Scan2KeySend scanner command to decoding chip Esc, 0x80+cmd Function callSend command to decoding chip Esc, parameter1, parameter2, …, BCCSpecial Command for control Control command for decoder chipEnable in Communication TRACK1,5 TRACK2,6 TRACK3 Code32setUpcaset CodabarsetLabelcode UpcesetUPC a Check barcode input Disable DecoderPTEnableBarcode Function call Return codeRead barcode data Reset all symbologies to defaultGet DLL version no PTEnableBarToKey Disable laser trigger keyEnable laser trigger key Function call for VC INT PTVersionvoid Return IntegerReturn code Bool True Caps lock False Caps unlock SysIOAPI.DLLKeypad Related Functions Return code True Shift lock False Shift unlockScanner Related Functions ParameterInputLED related function ExampleLCD/Backlight related function ParametersInputDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb