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

Battery Class Reference

Battery-sensor interface (RCX Internal). More...

#include <c++/Battery.H>

List of all members.

Static Public Methods

int get ()
 get the current battery strength value. More...


Detailed Description

Battery-sensor interface (RCX Internal).

This class deals with the battery sensor.

It provides only the single get() method.

See also:
The other sensor classes: Sensor, LightSensor, RotationSensor, TouchSensor

Definition at line 38 of file Battery.H.


Member Function Documentation

int Battery::get   [inline, static]
 

get the current battery strength value.

Returns:
int current battery reading in milliVolts (mV)
Note:
this is the c++ implementation of get_battery_mv()

Definition at line 45 of file Battery.H.

References get_battery_mv().


The documentation for this class was generated from the following file:
brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Tue Dec 10 00:09:19 2002 for brickOS Kernel Developer by doxygen 1.2.15