Obr library 170, Obr library – Casio IT-2000D User Manual
Page 170

170
7.6.4
OBR Library
Overview
The OBR library is used to control the OBR (Barcode Reader) from application programs developed
by the user with the C language. It supports the following two OBR types:
DT-9650BCR : Pen-type barcode reader
DT-9656BCR : CCD barcode reader
Note about the Libraries
This library is supplied in one of the three models, small or medium or large-memory model, as
suitable for each memory model. Any application program that uses this library should include
obrlib.h in the corresponding source file. Constants that are passed to the library functions and their
prototypes are defined in the following header files.
ORBLIB.H
Header file for the OBR library
SLIBOBRD.LIB
OBR library for small-memory model
MLIBOBRD.LIB
OBR library for medium-memory model
LLIBOBRD.LIB
OBR library for large-memory model
This library supports the following six types of functions. Each function has been macro-defined
in obrlib.h, however, it can be replaced, as required, with the corresponding function call by
specifying either of the compile options: /DDT9650 or /DDT9656.
No.
Function
Description
1
Initialization of COM port and power on
2
Release of COM port and power off
3
Transmission of command to OBR
4
Acknowledgment of received data
5
Read of the received data
6
Invalidation of codes in reception buffer
This library must refer to the system library to turn on and off the power supply of the COM port.
This means that the system library must also be linked to this library whenever this library is used.