#include </usr/src/redhat/BUILD/legOS/include/c++/sensor.h>
Class diagram for Sensor:
Public Members | |||
![]() | ![]() | Sensor (unsigned *addr = s1, int active = 0) | |
![]() | ![]() | Creates a sensor at the specified address. More... | |
![]() | ![]() | ~Sensor () | |
![]() | ![]() | Destructor. More... | |
![]() | ![]() | unsigned | value () |
![]() | ![]() | Read raw sensor value. | |
Protected Members | |||
![]() | ![]() | unsigned* | ptr |
![]() | ![]() | Pointer to raw sensor value. |
Sensor::Sensor (unsigned * addr = s1, int active = 0) [inline]
|
Creates a sensor at the specified address.
addr | One of Sensor::s1, Sensor::s2, Sensor::s3 or Sensor::battery. |
active | Flag to activate alimentation for active Sensors. |
Sensor::~Sensor () [inline]
|
Destructor.
Turns off alimentation.
unsigned Sensor::value () [inline]
|
unsigned* Sensor::ptr [protected]
|
Pointer to raw sensor value.