Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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:

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. More...

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


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 Tue Dec 10 00:09:16 2002 for brickOS Kernel Developer by doxygen 1.2.15