Casio IT-2000D PDAs & Smartphones User Manual


 
183
Transmission of Command
Transmits a command to the OBR. Only one command should be specified in each command
transmission session. Various options including "Readout mode", "Data transfer format", etc., can
be specified for this transmission. These setup specifications, if written to EEPROM, do not have to
be set each time the power is on.
For information about the setup procedure refer to "Setting Operation Mode".
SYNTAX
#include "obrlib.h"
int OBR_Send (char *pszCmd);
INPUT
pszCmd = Pointer to the transmission command character string
(Refer to the Command List).
OUTPUT
= 0 : Normal termination
= 1 : Transmission buffer-full error
Note:
Do not read another barcode during command transmission to the OBR.
Acknowledgment of Received Data
Returns the number of characters in the first barcode stored in the reception buffer.
SYNTAX
#include "obrlib.h"
int OBR_Stat();
INPUT
None
OUTPUT
The absolute value indicates the number of characters in the barcode received (not
including a CR), and the sign indicates if the data represents a complete barcode.
< 0 An incomplete barcode
> 0 A complete barcode
Note:
After acknowledging the received barcode with this function, read it using the OBR_Read function.