Intermec 6200 Reference Guide

Page of 410
APPENDIX B
Common PEN*KEY 6000 Series Information
B-2    PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide
Development Support Files
NORAPM.H
// NORAPM.H: Header file containing exported structures and functions for 
// interfacing with the NORAPM.DLL NORAND Windows APM Driver.
// Created: 01.25.94
// Updated: 07.07.94
// (C) Copyright 1994 by Norand Corporation
//===================================================================
// Section: NORAPM Exported Structures
//===================================================================
/* tagPOWER_STATUS structure *****************************************
This structure is used by GetPowerStatus function to relay the APM BIOS system
power status.  Structure fields are direct representations of registers returned
by the APM Get Power Status call (see below):
*********************************************************************/
struct tagPOWER_STATUS {
BYTE BatteryStatus;
// Battery status bits changed since last call
  // 00H  High
  // 01H  Low
  // 02H  Critical
  // 03H  Charging
  // FFH = Unknown
  // All other values reserved
BYTE LineStatus;
// AC line status bits
  // 00H  Off-line
  // 01H  On-line
  // 02H  On backup power
  // FFH = Unknown
  // All other values reserved
BYTE BatteryCharge;
// % of battery left
  // 0–100 = Percentage of full charge
  // FFH = Unknown
  // All other values reserved
BYTE BatteryFlags;
// Current battery status.
  // bit 0 = 1  High
  // bit 1 = 1  Low
  // bit 2 = 1  Critical
  // bit 3 = 1  Charging
  // bit 7 = 1  No system battery
  // All other bits reserved
  // FFH = Unknown
  // All other values reserved
WORD BatteryLife;
// Battery time left
  // Bit 15 = 0  Time units are seconds
  //          1  Time units are minutes
  // Bits 14–0 = Number of seconds or minutes
  //                0–7FFFH = Valid number of seconds
  //                0–7FFEH = Valid number of minutes
  //                FFFFH   = Battery life Unknown
};
//===================================================================
// Section: NORAPM Exported Function Prototypes and Pointer Defines
//===================================================================
// This section declares a prototype for each function exported by
// NORAPM.DLL as well as a typedef for a pointer to each function to
// facilitate runtime dynamic linking.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” int FAR PASCAL _export GetPowerStatus(tagPOWER_STATUS far
B. Common PEN*KEY
6000 Series Info.