APPENDIX B
Common PEN*KEY 6000 Series Information
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide B-5
// their DOS/BIOS counterparts.
#define PWR_OEM_XKBD
0x0200 // External keyboard detected
#define PWR_OEM_CHARGE
0x0201 // External charge detected
#define PWR_OEM_POD1
0x0202 // Pod 1 ring detected
#define PWR_OEM_POD2
0x0203 // Pod 2 ring detected
#define PWR_OEM_EXTRING
0x0204 // External ring detected
#define PWR_OEM_PCMCIA
0x0205 // PCMCIA ring detected
#define PWR_OEM_ALARM
0x0206 // Real time clock alarm
#define PWR_OEM_PENDOWN
0x0207 // Pen down detected
#define PWR_OEM_SUSPEND
0x0208 // Suspend detected
#define PWR_OEM_RESUME
0x0209 // Resume key detected
#define PWR_OEM_BUBLOW
0x020a // Backup battery low
#define PWR_OEM_MB0
0x020b // Main battery critical
#define PWR_OEM_MB10
0x020c // 10 minutes left on battery
#define PWR_OEM_MB20
0x020d // 20 minutes left on battery
#define PWR_OEM_MB30
0x020e // 30 minutes left on battery
#define PWR_OEM_PDOOR
0x020f // PCMCIA door open detected
#define PWR_OEM_IKBD
0x0210 // Internal keyboard detected
#define PWR_OEM_PWRFAIL
0x0211 // Powerfail detected
#define PWR_OEM_PWRTICK
0x0212 // Charge tick event
#define PWR_OEM_EL
0x0213 // Backlight on/off press
#define PWR_OEM_BATT_CHANGE
0x0214 // Battery change detected
#define PWR_OEM_PWRFAILNEW
0x0215 // Powerfail detected
#define PWR_OEM_PWRMSGTXT
0x027F // Power message text broadcast.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// APM BIOS standard device IDs
#define APM_BIOS
0x0000 // APM BIOS itself
#define APM_SYSTEM
0x0001 // All BIOS-managed devices
#define APM_DISPLAY
0x0100 // Display controller (VGA, etc.)
#define APM_PCMCIA
0x0200 // PCMCIA slot controller
#define APM_PARALLEL_PORTS
0x0300 // Printer ports
#define APM_SERIAL_PORTS
0x0400 // UARTs
#define APM_LAN_ADAPTER
0x0500 // Ethernet controller
#define APM_SLOTS
0x0600 // Cards in PCMCIA slots
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// APM BIOS OEM Norand device IDs
#define APM_OEM_DEVICES
0xE000 // Remainder are OEM unique
#define APM_OEM_PODS
0xE000 // Two pod devices possible
#define APM_OEM_DIG_PADS
0xE100 // Digitizer interface control
#define APM_OEM_BACKLIGHT
0xE200 // Backlight control
#define APM_OEM_HEATER
0xE300 // 4600 display heater control
#define APM_OEM_SWV5
0xE400 // Wwitch 5 control for 4600
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// APM power states
#define APM_READY
0
// “ON”
#define APM_STANDBY
1
// Still operational, but in low power state.
#define APM_SUSPEND
2
// Not operational, but saves HW state
#define APM_OFF
3
// Not operational, does not save HW state.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// APM Event Return Codes for DOS.
// The Windows versions of these codes (PWR_FAIL, PWR_OK) are in WINDOWS.H.
#define APM_OK
0
// Continue operation
#define APM_FAIL
0x80
// Cancel operation
B. Common PEN*KEY
6000 Series Info.