#include <AnalogInput.hpp>
Public Member Functions | |
| AnalogInput (AnalogInInterface *ana_in, unsigned int channel_nr) | |
| AnalogInput (AnalogInInterface *ana_in, unsigned int channel_nr) | |
| int | rawValue () const |
| int | rawValue () const |
| double | value () const |
| double | value () const |
| ~AnalogInput () | |
| ~AnalogInput () | |
Private Attributes | |
| AnalogInInterface * | board |
| int | channel |
A class representing an analog input channel.
Definition at line 49 of file install/include/rtt/extras/dev/AnalogInput.hpp.
| RTT::dev::AnalogInput::AnalogInput | ( | AnalogInInterface * | ana_in, | |
| unsigned int | channel_nr | |||
| ) | [inline] |
Create an analog input object to read the state of a channel.
| ana_in | The analog input device to use to read the status. | |
| channel_nr | The channel number to use on the device. |
Definition at line 50 of file install/include/rtt/extras/dev/AnalogInput.hpp.
| RTT::dev::AnalogInput::~AnalogInput | ( | ) | [inline] |
Destruct the AnalogInput.
Definition at line 58 of file install/include/rtt/extras/dev/AnalogInput.hpp.
| RTT::dev::AnalogInput::AnalogInput | ( | AnalogInInterface * | ana_in, | |
| unsigned int | channel_nr | |||
| ) | [inline] |
Create an analog input object to read the state of a channel.
| ana_in | The analog input device to use to read the status. | |
| channel_nr | The channel number to use on the device. |
Definition at line 50 of file rtt/extras/dev/AnalogInput.hpp.
| RTT::dev::AnalogInput::~AnalogInput | ( | ) | [inline] |
Destruct the AnalogInput.
Definition at line 58 of file rtt/extras/dev/AnalogInput.hpp.
| int RTT::dev::AnalogInput::rawValue | ( | ) | const [inline] |
Read the raw value of this channel.
Definition at line 73 of file rtt/extras/dev/AnalogInput.hpp.
| int RTT::dev::AnalogInput::rawValue | ( | ) | const [inline] |
Read the raw value of this channel.
Definition at line 73 of file install/include/rtt/extras/dev/AnalogInput.hpp.
| double RTT::dev::AnalogInput::value | ( | ) | const [inline] |
Read the value of this channel.
Definition at line 63 of file rtt/extras/dev/AnalogInput.hpp.
| double RTT::dev::AnalogInput::value | ( | ) | const [inline] |
Read the value of this channel.
Definition at line 63 of file install/include/rtt/extras/dev/AnalogInput.hpp.
AnalogInInterface * RTT::dev::AnalogInput::board [private] |
Definition at line 81 of file install/include/rtt/extras/dev/AnalogInput.hpp.
int RTT::dev::AnalogInput::channel [private] |
Definition at line 82 of file install/include/rtt/extras/dev/AnalogInput.hpp.