ComediSubDeviceAOut Class Reference

This logical device represents one subdevice of a Comedi device. More...

#include <ComediSubDeviceAOut.hpp>

List of all members.

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

Detailed Description

This logical device represents one subdevice of a Comedi device.

Definition at line 43 of file ComediSubDeviceAOut.hpp.


Constructor & Destructor Documentation

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.

Parameters:
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().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 15:05:28 2010 for OrocosComponentLibrary by  doxygen 1.6.3