Chapter 8 - Using MS-DOS
8-14
PL-5910 Series User Manual
/****************/
/* BUZZER OFF */
/****************/
void buzzer_off(void)
{
outp (CTRL8042, (inp(CTRL8042) & 0xfc));
/* Buzzer Off */
}
/***********************/
/* WAIT TOUCHPANEL OFF */
/***********************/
void wait_touch_off(void)
{
while(1)
{
inregs.x.ax = TP_CONDITION;
int86(ATPH_SYS_CALL, &inregs, &outregs);
if(outregs.h.ah == 3)
/* Touch Panel Off */
{
break;
}
else if(outregs.h.ah == 0)
/* Touch Panel On */
{
inregs.x.ax = TP_IN_NOWAIT;
int86(ATPH_SYS_CALL, &inregs, &outregs);
/* ATPH Function Call*/
}
}
}