This logical device represents one subdevice of a Comedi device. More...
#include <ComediSubDeviceAIn.hpp>
Public Member Functions | |
ComediSubDeviceAIn (ComediDevice *cd, const std::string &name, unsigned int subdevice=0) | |
Create a new ComediSubDeviceAIn with a given ComediDevice, subdevice number and a name for this sub device. | |
ComediSubDeviceAIn (ComediDevice *cd, unsigned int subdevice=0) | |
void | init () |
virtual void | rangeSet (unsigned int chan, unsigned int range=0) |
virtual void | arefSet (unsigned int chan, unsigned int aref=AnalogInInterface::Ground) |
virtual int | rawRead (unsigned int chan, int &value) |
virtual int | read (unsigned int chan, double &value) |
virtual unsigned int | rawRange () const |
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 myCard. | |
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 46 of file ComediSubDeviceAIn.hpp.
ComediSubDeviceAIn | ( | ComediDevice * | cd, | |
const std::string & | name, | |||
unsigned int | subdevice = 0 | |||
) |
Create a new ComediSubDeviceAIn with a given ComediDevice, subdevice number and a name for this sub device.
cd | The ComediDevice to use for output | |
subdevice | The subdevice number for this comedi device (usually 1) | |
name | The name of this instance |
Definition at line 35 of file ComediSubDeviceAIn.cpp.
References ComediSubDeviceAIn::_subDevice, ComediDevice::getDevice(), ComediDevice::getMaxData(), ComediDevice::getSubDeviceType(), ComediSubDeviceAIn::myCard, and ComediDevice::read().