APPENDIX B
Common PEN*KEY 6000 Series Information
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide B-3
// *PwrStat)
//
// Returns current power status from APM. See NorAPM.H for detailed docs.
// Return value of PWR_OK for success, or PWR_FAIL if error (no APM, etc).
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export
GetPowerStatus(tagPOWER_STATUS far *PwrStat);
typedef int (FAR PASCAL *fpGetPowerStatus)
(tagPOWER_STATUS far *PwrStat);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” int FAR PASCAL _export GetPowerState(int Device)
//
// Returns APM BIOS power state for APM Device. If device does not exist,
// OFF is returned.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export GetPowerState(int Device);
typedef int (FAR PASCAL *fpGetPowerState)(int Device);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” int FAR PASCAL _export
SetPowerState(unsigned int Device,
// unsigned int State)
//
// Sets APM BIOS device “Device” to power state “State”. Returns PWR_FAIL
// for failure (No APM, unsupported device or power state) or PWR_OK for
// success.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export SetPowerState(unsigned int Device,
unsigned int PowerState);
typedef int (FAR PASCAL *fpSetPowerState)(int Device, int PowerState);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” void FAR PASCAL _export SystemActivity(int EventType)
//
// Call this function to indicate system or user activity and hold off
// standby (backlight) and suspend timeouts. This function is generally
// called by a device driver that controls background processing or
// communications peripherals.
//
// EventType Parameter:
// 0: Indicates “system” activity. This resets Suspend timeouts.
// 1: Indicates “user” or input activity. This resets the Standby
// (backlight), and Suspend timeouts.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” void FAR PASCAL _export SystemActivity(int EventType);
typedef void (FAR PASCAL *fpSystemActivity)(int EventType);
B. Common PEN*KEY
6000 Series Info.