Reader - Argox PA-20 Programming Manual

Portable data terminal
Hide thumbs Also See for PA-20:
Table of Contents

Advertisement

InitScanner1
Purpose:
Initialize respective scanner port.
Syntax:
void InitScanner1(void);
Example call:
InitScanner1( );
#include "SDK.h "
Includes:
Description:
Use InitScanner1 function to initialize scanner port. The scanner port
won't work unless it is initialized.
Returns:
None
Decode
Purpose:
Perform barcode decoding.
Syntax:
int Decode(void);
Example call:
while(1){if(Decode( )) break;}
#include "SDK.h "
Includes:
Description:
Once the scanner port is initialized (by use of InitScanner1 function), call
this Decode function to perform barcode decoding. This function should
be called constantly in user's program loops when barcode decoding is
required. If the barcode decoding is not required for a long period of
time, it is
recommended that the scanner port should be stopped by use of the
HaltScanner1 function. If the Decode function decodes successfully, the
decoded data will be placed in the string variable CodeBuf with a string
terminating character appended.
And the code length will be saved in "CodeLen", the code name type will
be saved in "CodeName", and the code ID will be saved in CodeID.
And we have the other buffer for save all barcode information in
"FullCodeBuf", the format of "FullCodeBuf" as follows:
Code
name
The ID position depends on "Code ID position" setting.
Returns:
0 : Fail。
Other value : Barcode length。
SleepScanner1
Purpose:
Set scanner module sleep.
Syntax:
void SleepScanner1(BOOL bStatus);
PT-20 Programming Guide

Reader

Pream
ID*
Code
ble
Lengt
h
Barcode
ID*
Posta
data
mble
Termi
nator
23

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pa-21Pa-2110Pa-2010

Table of Contents