APM_GET_POWER_STATUS

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

apm_get_power_status - get current power state  

SYNOPSIS

"SYNOPSIS"

int apm_get_power_status (u_short * status, u_short * bat, u_short * life);  

ARGUMENTS

status
returned status
bat
battery info
life
estimated life
 

DESCRIPTION

Obtain the current power status from the APM BIOS. We return a status which gives the rough battery status, and current power source. The bat value returned give an estimate as a percentage of life and a status value for the battery. The estimated life if reported is a lifetime in secodnds/minutes at current powwer consumption.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:01:55 GMT, October 09, 2005