#include </usr/src/redhat/BUILD/legOS/include/c++/sensor.h>
Class diagram for RotationSensor:
Public Members | |||
![]() | ![]() | RotationSensor (unsigned *addr = s1, int initial = 0) | |
![]() | ![]() | Creates a rotation sensor at the specified address. More... | |
![]() | ![]() | ~RotationSensor () | |
![]() | ![]() | Decactivates rotation tracking. | |
![]() | ![]() | int | position () |
![]() | ![]() | Read current rotational position. | |
Protected Members | |||
![]() | ![]() | int* volatile | posPtr |
![]() | ![]() | Pointer to position value. |
RotationSensor::RotationSensor (unsigned * addr = s1, int initial = 0) |
Creates a rotation sensor at the specified address.
addr | One of Sensor::s1, Sensor::s2 or Sensor::s3. |
initial |
Initial rotational position.
|
RotationSensor::~RotationSensor () [inline]
|
Decactivates rotation tracking.
int RotationSensor::position () [inline]
|
Read current rotational position.
int* volatile RotationSensor::posPtr [protected]
|
Pointer to position value.