This logical device represents one subdevice of a Comedi device. More...
#include <ComediSubDeviceAOut.hpp>
Public Member Functions | |
ComediSubDeviceAOut (ComediDevice *cao, const std::string &name, unsigned int subdevice=1) | |
Create a new ComediSubDevice with a given ComediDevice, subdevice number and a name for this sub device. | |
ComediSubDeviceAOut (ComediDevice *cao, unsigned int subdevice=1) | |
void | init () |
virtual void | rangeSet (unsigned int chan, unsigned int range=0) |
virtual void | arefSet (unsigned int chan, unsigned int aref=AnalogOutInterface::Ground) |
virtual int | rawWrite (unsigned int chan, int value) |
virtual int | rawRead (unsigned int chan, int &value) |
virtual unsigned int | rawRange () const |
virtual int | write (unsigned int chan, double value) |
virtual int | read (unsigned int chan, double &value) |
virtual double | lowest (unsigned int chan) const |
virtual double | highest (unsigned int chan) const |
virtual double | resolution (unsigned int chan) const |
virtual unsigned int | nbOfChannels () const |
Protected Attributes | |
ComediDevice * | myCard |
The output device to write to. | |
unsigned int | _subDevice |
The subdevice number of this instance in myDrive. | |
unsigned int * | _sd_range |
unsigned int * | _aref |
unsigned int | channels |
unsigned int | rrange |
double * | max |
double * | min |
This logical device represents one subdevice of a Comedi device.
Definition at line 43 of file ComediSubDeviceAOut.hpp.
ComediSubDeviceAOut | ( | ComediDevice * | cao, | |
const std::string & | name, | |||
unsigned int | subdevice = 1 | |||
) |
Create a new ComediSubDevice with a given ComediDevice, subdevice number and a name for this sub device.
cao | The ComediDevice to use for output | |
name | The name of this instance |
Definition at line 34 of file ComediSubDeviceAOut.cpp.
References ComediSubDeviceAOut::_subDevice, ComediDevice::getDevice(), ComediDevice::getMaxData(), ComediDevice::getSubDeviceType(), ComediSubDeviceAOut::myCard, and ComediDevice::read().