Casio IT-2000D PDAs & Smartphones User Manual


 
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 OBR_Open Initialization of COM port and power on
2 OBR_Close Release of COM port and power off
3 OBR_Send Transmission of command to OBR
4 OBR_Stat Acknowledgment of received data
5 OBR_Read Read of the received data
6 OBR_Clear 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.