50 #ifndef ANALOGININTERFACE_HPP 51 #define ANALOGININTERFACE_HPP 55 #include "../../rtt-config.h" 106 virtual void rangeSet(
unsigned int chan,
107 unsigned int range) = 0;
116 virtual void arefSet(
unsigned int chan,
117 unsigned int aref) = 0;
123 virtual int rawRead(
unsigned int chan,
int& value ) = 0;
129 virtual int read(
unsigned int chan,
double& value ) = 0;
134 virtual unsigned int rawRange()
const = 0;
140 virtual double lowest(
unsigned int chan)
const = 0;
146 virtual double highest(
unsigned int chan)
const = 0;
151 virtual double resolution(
unsigned int chan)
const = 0;
156 virtual unsigned int nbOfChannels()
const = 0;
unsigned int binaryRange() const
Returns the binary range (e.g.
An interface for reading analog input, like for addressing a whole subdevice in comedi.
int binaryLowest() const
Returns the binary lowest value.
Utility class to register a given object with a nameserver, and deregister upon destruction.
int binaryHighest() const
Returns the binary highest value.
virtual ~AnalogInInterface()
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
AnalogInInterface()
Create a not nameserved AnalogInInterface instance.
AnalogInInterface(const std::string &name)
Create a nameserved AnalogInInterface.
static NameServer< AnalogInInterface * > nameserver
The NameServer for this interface.
AnalogReference
This enum can be used to configure the arefSet() function.