Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

include/sys/battery.h File Reference

Internal Interface: battery handling. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define BATTERY_NORMAL_THRESHOLD_MV   6700
#define BATTERY_LOW_THRESHOLD_MV   6300

Functions

int get_battery_mv ()
 get current battery voltage

void battery_refresh (void)
 cause the battery voltage sensor value to be refreshed


Detailed Description

Internal Interface: battery handling.

Author:
Paolo Masetti <paolo.masetti@itlug.org>

Definition in file battery.h.


Define Documentation

#define BATTERY_LOW_THRESHOLD_MV   6300
 

Definition at line 42 of file battery.h.

#define BATTERY_NORMAL_THRESHOLD_MV   6700
 

Definition at line 41 of file battery.h.


Function Documentation

void battery_refresh void   ) 
 

cause the battery voltage sensor value to be refreshed

int get_battery_mv  ) 
 

get current battery voltage

Returns:
int voltage in millivolts

Referenced by Battery::get().


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:02:23 2004 for brickOS Kernel Developer by doxygen 1.3.5