Unitech MR350MKII Barcode Reader User Manual


 
3-20
Chapter 3. I/O Function Calls
3. I/O Function Calls
The operating system of the MR350MKII supports BIOS/DOS Function to control
LCD display, Keyboard input, Proximity/Barcode/Magnetic stripe input, Buzzer,
Security alarm, Photo-coupler input, Relay output, and serial port input/output of
RS232 and RS485. The whole C sample program are gathered into library file
"350LIB.C" on Utility Diskette.
3.1. LCD Display INT 10H
00 Clear screen
Entry Parameters: AH = 0
Returned Values: None
void TL_clrscr()
{
regs.h.ah= 0;
int86(0x10,&regs,&regs);
}
01 Set cursor type
Entry Parameters: AH = 1
AL = 1 ;set Block cursor
0 ;set Underscore cursor
3 ;set cursor off
Returned Values: None
void TL_cursor_type(int status)
{
regs.h.ah = 1;
regs.h.al = (unsigned char)status;
int86(0x10,&regs,&regs);
}
02 Set cursor position
Entry Parameters: AH = 2
DH = 0 ~ 1 ;row
DL = 0 ~ 15 ;column
Returned Values: None