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