Intermec PENKEY 6100 Programmer's Reference Manual page 282

Hide thumbs Also See for PENKEY 6100:
Table of Contents

Advertisement

Common PEN*KEY 6000 Series Information
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.
by the APM Get Power Status call (see below):
*********************************************************************/
struct tagPOWER_STATUS {
BYTE BatteryStatus;
// 00H
// 01H
// 02H
// 03H
// FFH = Unknown
// All other values reserved
BYTE LineStatus;
// 00H
// 01H
// 02H
// FFH = Unknown
// All other values reserved
BYTE BatteryCharge;
// 0–100 = Percentage of full charge
// FFH = Unknown
// All other values reserved
BYTE BatteryFlags;
// bit 0 = 1
// bit 1 = 1
// bit 2 = 1
// bit 3 = 1
// bit 7 = 1
// All other bits reserved
// FFH = Unknown
// All other values reserved
WORD BatteryLife;
// Bit 15 = 0
//
// Bits 14–0 = Number of seconds or minutes
//
//
//
};
//===================================================================
// 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
R
B-2
PEN*KEY
6100 Computer Programmer's Reference Guide
Structure fields are direct representations of registers returned
// Battery status bits changed since last call
High
Low
Critical
Charging
// AC line status bits
Off-line
On-line
On backup power
// % of battery left
// Current battery status.
High
Low
Critical
Charging
No system battery
// Battery time left
Time units are seconds
1
Time units are minutes
0–7FFFH = Valid number of seconds
0–7FFEH = Valid number of minutes
FFFFH
= Battery life Unknown
APPENDIX B

Advertisement

Table of Contents
loading

Table of Contents