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

include/c++/Battery.H

Go to the documentation of this file.
00001 
00008 // The contents of this file are subject to the Mozilla Public License
00009 // Version 1.0 (the "License"); you may not use this file except in
00010 // compliance with the License. You may obtain a copy of the License
00011 // at http://www.mozilla.org/MPL/
00012 // 
00013 // Software distributed under the License is distributed on an "AS IS"
00014 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00015 // the License for the specific language governing rights and
00016 // limitations under the License.
00017 //
00018 // This software was developed as part of the legOS project.
00019 //
00020 // Contributor: Pat Welch (legOS@mousebrains.com)
00021 
00022 #ifndef _Battery_H_
00023 #define _Battery_H_
00024 
00025 #include <config.h>
00026 #include <sys/battery.h>
00027 
00028 #if defined(CONF_DSENSOR)
00029 
00038 class Battery {
00039 public:
00045   static int get() {return get_battery_mv();}
00046 };
00047 
00048 #else // CONF_DSENSOR
00049 #warning Enable CONF_DSENSOR to use Battery.H
00050 #endif // CONF_DSENSOR
00051 #endif // _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