Appendix
App-8
PL-5700 Series User’s Manual
#define ATPH_SYS_CALL 0x59 /* ATPH System Call */
#define KEYBOARD_BIOS 0x16 /* Key Board BIOS */
#define WRITE_DATA 0x05
/* Key Board Input */
#define TP_IN_NOWAIT 0x8101 /* ATPH Input */
#define TP_CONDITION 0x8500 /*TouchPanelCondition*/
#define ZKEYCODE 0x7a /* "Z" keycode */
#define DATA8254 0x40 /* Timer Data */
#define CTRL8254 0x43 /* Timer Controller */
#define CTRL8042 0x61 /* Buzzer ON/OFF */
#define BEEP_TIME 20000 /* Beep’s ON period */
#define FALSE 0
#define TRUE 1
struct function_coordinate
{
short sx; /* X coordinate (left,upper) */
short sy; /* Y coordinate (left,lower) */
short ex; /* X coordinate (Right Upper) */
short ey; /* Y coordinate (Right,lower) */
short key; /* Key Code */
}
tpcd [] =
{
480, 40, 559, 80, 0x2c7a, /* Square’s display */
1, -40, 79, -1, 0x1e61, /* Function Sheet F1 */
80, -40, 159, -1, 0x3062, /* Function Sheet F2 */
160, -40, 239, -1, 0x2e63, /* Function Sheet F3 */
240, -40, 319, -1, 0x2064, /* Function Sheet F4 */
320, -40, 399, -1, 0x1265, /* Function Sheet F5 */
400, -40, 479, -1, 0x2166, /* Function Sheet F6 */
480, -40, 559, -1, 0x2267, /* Function Sheet F7 */