SECTION 4
Power Management BIOS: NORAPM.EXE
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 4-7
APM Software Interface
The following paragraphs describe the software interface between the APM
BIOS and the APM driver.
APM Connection
The APM driver provides an interface between the APM BIOS and APMĆaware
applications. When the interface between the APM BIOS and device driver is
established, the APM driver receives powerĆrelated events from the APM BIOS,
which the driver in turn broadcasts to APMĆaware applications.
The
APM Installation Check
function determines whether NORAPM.EXE is
present in the system, the version of APM that NORAPM.EXE supports, and the
attributes of the implementation. The APM driver issues an APM Connection
call
to establish the appropriate cooperative connection with the APM BIOS.
The
APM Interface Disconnect
function disconnects the cooperative connection
between the APM Driver and the APM BIOS. Only one APM connection can be
active at a time.
Power Management Events
Power Management Events are communicated from the APM BIOS to the APM
driver through a call by the APM driver to the APM BIOS function
Get PM
Event
. It is the responsibility of the APM driver to broadcast Power
Management Events to its APMĆaware applications.
The following is a list of the defined power management events that the APM
BIOS can report:
Table 4Ć13
Power Management Event Codes
Code (Hex) Description
0002
System Suspend Request Notification
0003
Normal Resume System Notification
0004
Critical Resume System Notification
0005
Battery Low Notification
0006
Power Status Change Notification
0008
Critical System Suspend Notification
000A
User System Suspend Request Notification
0203
Pod 1 ring detect
0204
Pod 2 ring detect
0205
External ring detect
0206
PC Card ring detect
0207
RealĆtime clock alarm
020B
Backup battery low
0213
Charge Tick Event
0214
Backlight On
0215
Battery Change Detected
0216
Powerfail Detect
4. Power Management
BIOS: NORAPM.EXE