Apex PDT Technical Reference Manual
7 Apex Programming Resource
COAM30002
Rev. 2.00
8/13/02
7-15
Power Management Functions
ApmGetPwrStatus
Syntax:
int ApmGetPwrStatus(struct power *powerstatus)
Input:
Pointer to structure.
Returns:
0 on success, non-zero on error.
Notes:
Retrieves information about the current power status.
Parameters returned in the
power
structure are as follows:
unsigned char acline
=
AC Line Status
=
00 off-line
=
01 on-line
=
FFh unknown
unsigned char battery =
Battery status
=
00 high
=
01 low
=
02 critical
=
03 charging
=
FFh unknown
unsigned char charge =
remaining Battery Pack
capacity
=
0 to 100 (percentage of full
charge)
=
FFh unknown
unsigned char flags
=
Battery flag
bit 0 = high
bit 1 = low
bit 2 = critical
bit 3 = charging
bit 4 = battery not present
bit 7 = no system battery
= FFh unknown
PowerOff
Syntax:
void PowerOff(void)
Input:
None
Returns:
None
Notes:
Powers down the Apex PDT. Performs the equivalent of
<FN> + <Power>. Upon subsequent depression of the
<Power> key the Apex PDT will cold boot.
Содержание Apex III
Страница 2: ...This Page Intentionally Left Blank...
Страница 12: ...Apex PDT Technical Reference Manual Table Of Contents COAM30002 Rev 2 00 8 13 02 viii...
Страница 108: ...Apex PDT Technical Reference Manual 6 Utility Programs COAM30002 Rev 2 00 8 13 02 6 36...
Страница 132: ...Apex PDT Technical Reference Manual 7 Apex Programming Resource COAM30002 Rev 2 00 8 13 02 7 24...
Страница 152: ...Apex PDT Technical Reference Manual 10 Power Management COAM30002 Rev 2 00 8 13 02 10 8...
Страница 160: ...Apex III Technical Reference Manual 11 Technical Specifications COAM30002 Rev 2 00 8 13 02 11 8...
Страница 166: ...Apex III Technical Reference Manual Appendix A COAM30002 Rev 1 03 08 13 02 A 6...
Страница 167: ...This Page Intentionally Left Blank...
Страница 168: ...Compsee Inc A Subsidiary of McRae Industries Inc Compsee Inc Contact Information www compsee com 1 800 628 3888...