APPENDIX B
Common PEN*KEY 6000 Series Information
B-8 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
#define UDUTYA
6
#define UDUTYB
7
#define UDURATION
8
#define HDOWNLOAD
0xe0 /* Download command value */
#define HDIAGNOSTIC
0xf0 /* Diagnostic command value */
/* Host status register responses */
#define SMM_COLDBOOT
0xf0
#define SMM_HARDRESET
0xf1
#define SMM_ACK
0xfa
#define SMM_RESEND
0xfe
#define SYS_OFF
1
#define SYS_SUSPEND
2
#define SYS_SLEEP
3
#define SYS_ON
4
#define HQLEN
16
Source File: REMAP.C
/*******************************************************************
remap.c
This program calls two functions.
1.
DownloadKBD(); To remap the keys
2.
DownloadMacros() To map the key macros, when gold key is used.
********************************************************************/
#define UC unsigned
char
#define ULI
unsigned long
#define UI
unsigned int
#define bVLSI_KBDEN 0x10
#define bIRQ1 2
#define TMO
0x8000
#define RESP
0x0400
#define MUPACK 0xfa
#define ASM
_asm
#include “smm.h”
/*******************************************************************
H8 interprocesser communication routines, for power management and system event
processing.
********************************************************************/
void SendCmd(UC c)
{
ASM
{
xor
cx,cx
;Clear any message
mov
dx,200h
in
al,dx
inc
dx
sc:
in
al,dx
test
al,2
;ibf
loopnz
sc
mov
al,c
out
dx,al
}
}
void SendData(UC c)
{
ASM
{
xor
cx,cx
;clear any message
mov
dx,200h
in
al,dx
inc
dx
sd:
B. Common PEN*KEY
6000 Series Info.