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

include/sys/battery.h

Go to the documentation of this file.
00001 
00006 /*
00007  *  The contents of this file are subject to the Mozilla Public License
00008  *  Version 1.0 (the "License"); you may not use this file except in
00009  *  compliance with the License. You may obtain a copy of the License
00010  *  at http://www.mozilla.org/MPL/
00011  *
00012  *  Software distributed under the License is distributed on an "AS IS"
00013  *  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00014  *  the License for the specific language governing rights and
00015  *  limitations under the License.
00016  *
00017  *  The Original Code is legOS code, released October 17, 1999.
00018  *
00019  *  The Initial Developer of the Original Code is Markus L. Noga.
00020  *  Portions created by Markus L. Noga are Copyright (C) 1999
00021  *  Markus L. Noga. All Rights Reserved.
00022  *
00023  *  Contributor(s): Markus L. Noga <markus@noga.de>
00024  *                  Paolo Masetti  <paolo.masetti@itlug.org>
00025  */
00026 
00027 #ifndef __sys_battery_h__
00028 #define __sys_battery_h__
00029 
00030 #ifdef  __cplusplus
00031 extern "C" {
00032 #endif
00033 
00035 //
00036 // Definitions
00037 //
00039 
00040 // Battery is normal if over 6700mV, low if under 6300mV
00041 #define BATTERY_NORMAL_THRESHOLD_MV     6700
00042 #define BATTERY_LOW_THRESHOLD_MV        6300
00043 
00045 //
00046 // Functions
00047 //
00049 
00053 extern int get_battery_mv();
00054 
00058 extern void battery_refresh(void)
00059 #ifdef CONF_RCX_COMPILER
00060 __attribute__ ((rcx_interrupt))
00061 #endif
00062 ;
00063 
00064 #ifdef  __cplusplus
00065 }
00066 #endif
00067 
00068 #endif // __sys_battery_h__

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

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