Casio IT-2000D User Manual
Page 184

184
Readout of Received Data
Acquires the first barcode in the reception buffer and writes it to the specified buffer. The reception
data SYNTAX is as follows:
Barcode
0
Fig. 7.23
SYNTAX
#include "obrlib.h"
int OBR_Read (unsigned char *pBuf);
INPUT
pBuf = Pointer to the buffer that stores the received barcode
OUTPUT
The absolute value indicates the number of characters in the barcode received, and
the sign indicates whether the barcode has a data error.
> 0 The read barcode does not have a data error.
= 0 Either the reception acknowledgment has not been made (OBR_Stat function
is not used) or there is no received data.
< 0 The read barcode has a data error.
Note:
Before reading a barcode using this function, acknowledge reception with the OBR_Stat function.
Note that the error status, reception data, and the number of received data pieces will be cleared from
the reception buffer after a barcode is read by the OBR_Read function.
This means that the following barcode can be read immediately after the preceding one, which may
include an error, has been read.
Invalidating Code in Buffer
Invalidates a barcode in the reception buffer.
SYNTAX
#include "obrlib.h"
void OBR_Clear();
INPUT
None
OUTPUT
None