Public Member Functions | Private Attributes | List of all members
RTT::dev::AnalogInput Class Reference

#include <AnalogInput.hpp>

Public Member Functions

 AnalogInput (AnalogInInterface *ana_in, unsigned int channel_nr)
int rawValue () const
double value () const
 ~AnalogInput ()

Private Attributes

int channel

Detailed Description

A class representing an analog input channel.

Definition at line 51 of file AnalogInput.hpp.

Constructor & Destructor Documentation

RTT::dev::AnalogInput::AnalogInput ( AnalogInInterface ana_in,
unsigned int  channel_nr 

Create an analog input object to read the state of a channel.

ana_inThe analog input device to use to read the status.
channel_nrThe channel number to use on the device.

Definition at line 60 of file AnalogInput.hpp.

RTT::dev::AnalogInput::~AnalogInput ( )

Destruct the AnalogInput.

Definition at line 68 of file AnalogInput.hpp.

Member Function Documentation

int RTT::dev::AnalogInput::rawValue ( ) const

Read the raw value of this channel.

Definition at line 83 of file AnalogInput.hpp.

double RTT::dev::AnalogInput::value ( ) const

Read the value of this channel.

Definition at line 73 of file AnalogInput.hpp.

Member Data Documentation

AnalogInInterface* RTT::dev::AnalogInput::board

Definition at line 91 of file AnalogInput.hpp.

int RTT::dev::AnalogInput::channel

Definition at line 92 of file AnalogInput.hpp.

The documentation for this class was generated from the following file:

Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:46