regs.h.ah= 0x0b;
int86(0x21,®s,®s);
return(regs.h.al);
}
1A
LCD Backlight ON/OFF Control
Entry Parameter:
AH = 1AH
BH = 0
AL = 0/1
; set LCD backlight OFF/ON
Return Value: None
Example
:
void TL_backlight(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 0;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1A
Buzzer ON/OFF Control
Entry Parameter:
AH = 1AH
BH = 1
AL = 0/1
; set Buzzer OFF/ON
Return Value: None
Example
:
void TD_buzzer(int status)
{
regs.h.ah= 0x1A;
regs.h.bh= 1;
regs.h.al= (unsigned char)status;
int86(0x21,®s,®s);
}
1A
Beeper Volume
Entry parameter:
AH = 1AH
BH = 3
AL = 0/1/2
; set LOW/MEDIUM/HIGH beeper
volume
Return Value: None
=2
high
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...