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.

Macros

#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.nosp@m..mas.nosp@m.etti@.nosp@m.itlu.nosp@m.g.org

Definition in file battery.h.

Macro Definition Documentation

§ BATTERY_LOW_THRESHOLD_MV

#define BATTERY_LOW_THRESHOLD_MV   6300

Definition at line 42 of file battery.h.

§ BATTERY_NORMAL_THRESHOLD_MV

#define BATTERY_NORMAL_THRESHOLD_MV   6700

Definition at line 41 of file battery.h.

Function Documentation

§ battery_refresh()

void battery_refresh ( void  )

cause the battery voltage sensor value to be refreshed

§ get_battery_mv()

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-2005 by the authors.

Generated for brickOS Kernel Developer by doxygen 1.8.12