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

#include <AnalogOutput.hpp>

Public Member Functions

 AnalogOutput (AnalogOutInterface *ana_out, unsigned int channel_nr)
 
double highest ()
 
double lowest ()
 
int rawValue (int i)
 
int rawValue ()
 
int value (double v)
 
double value ()
 
 ~AnalogOutput ()
 

Private Attributes

AnalogOutInterfaceboard
 
int channel
 

Detailed Description

A class representing an analog output channel.

Definition at line 54 of file AnalogOutput.hpp.

Constructor & Destructor Documentation

RTT::dev::AnalogOutput::AnalogOutput ( AnalogOutInterface ana_out,
unsigned int  channel_nr 
)
inline

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

Parameters
ana_outThe analog output device to use to read the status.
channel_nrThe channel number to use on the device.

Definition at line 63 of file AnalogOutput.hpp.

RTT::dev::AnalogOutput::~AnalogOutput ( )
inline

Destruct the AnalogOutput.

Definition at line 71 of file AnalogOutput.hpp.

Member Function Documentation

double RTT::dev::AnalogOutput::highest ( )
inline

Return the highest output.

Definition at line 114 of file AnalogOutput.hpp.

double RTT::dev::AnalogOutput::lowest ( )
inline

Return the lowest output.

Definition at line 122 of file AnalogOutput.hpp.

int RTT::dev::AnalogOutput::rawValue ( int  i)
inline

Write the raw value of this channel.

Returns
0 on success.

Definition at line 86 of file AnalogOutput.hpp.

int RTT::dev::AnalogOutput::rawValue ( )
inline

Read the raw value of this channel.

Definition at line 104 of file AnalogOutput.hpp.

int RTT::dev::AnalogOutput::value ( double  v)
inline

Write the value of this channel.

Returns
0 on success.

Definition at line 77 of file AnalogOutput.hpp.

double RTT::dev::AnalogOutput::value ( )
inline

Read the value of this channel.

Definition at line 94 of file AnalogOutput.hpp.

Member Data Documentation

AnalogOutInterface* RTT::dev::AnalogOutput::board
private

Definition at line 128 of file AnalogOutput.hpp.

int RTT::dev::AnalogOutput::channel
private

Definition at line 129 of file AnalogOutput.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:42