Chapter 3 Terminal Specific Function Library
39
3.2 Barcode Reader
The barcode decoding routines consist of 3 functions:
InitScanner1()
: to initialize the scanner port.
Decode()
: to perform decoding.
HaltScanner1()
: to stop the scanner port from operating.
3.2.1 Barcode Decoding
To enable barcode decoding capability in the system, the first thing is that the scanner port
must be initialized by calling the
InitScanner1()
function. After the scanner port is
initialized, the
Decode()
function can be called in the program loops to perform barcode
decoding.
Below are four global variables related to the barcode decoding routines. These variables
are declared by the system, and therefore, the user program needs not to declare them.
extern unsigned char
ScannerDesTbl[23];
This unsigned character array governs the operation of the
Decode()
routine.
extern char
CodeBuf[];
This buffer contains the decoded data after successful decoding.
extern char
CodeType;
This character indicates the type of code (symbology) being decoded after successful
decoding.
extern int
CodeLen;
This integer indicates the length of the decoded data after successful decoding.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...