19 #ifndef ANALOGY_DEVICE_H 20 #define ANALOGY_DEVICE_H 27 #include <rtdm/analogy.h> 29 #include <sys/types.h> 89 virtual void doLoad(
const Settings::Object::State&);
90 virtual void doSave(Settings::Object::State&)
const;
95 struct analog_channel_t
108 bool calibrationActive;
112 struct digital_channel_t
123 analog_channel_t analog;
124 digital_channel_t digital;
136 std::string deviceName;
137 subdevice_t subdevice[3];
int setAnalogCounter(DAQ::type_t, DAQ::index_t)
size_t getAnalogUnitsCount(DAQ::type_t, DAQ::index_t) const
std::string getAnalogRangeString(DAQ::type_t, DAQ::index_t, DAQ::index_t) const
int setAnalogGain(DAQ::type_t, DAQ::index_t, double)
int setAnalogCalibrationActive(DAQ::type_t, DAQ::index_t, bool)
int setAnalogUnits(DAQ::type_t, DAQ::index_t, DAQ::index_t)
AnalogyDevice(a4l_desc_t *, std::string, IO::channel_t *, size_t)
int setAnalogZeroOffset(DAQ::type_t, DAQ::index_t, double)
bool getAnalogCalibrationState(DAQ::type_t, DAQ::index_t) const
double getAnalogCalibrationValue(DAQ::type_t, DAQ::index_t) const
int setAnalogDownsample(DAQ::type_t, DAQ::index_t, size_t)
double getAnalogZeroOffset(DAQ::type_t, DAQ::index_t) const
int setDigitalDirection(DAQ::index_t, DAQ::direction_t)
double getAnalogGain(DAQ::type_t, DAQ::index_t) const
bool getAnalogCalibrationActive(DAQ::type_t, DAQ::index_t) const
std::string getAnalogReferenceString(DAQ::type_t, DAQ::index_t, DAQ::index_t) const
virtual void doSave(Settings::Object::State &) const
virtual void doLoad(const Settings::Object::State &)
DAQ::index_t getAnalogRange(DAQ::type_t, DAQ::index_t) const
size_t getChannelCount(DAQ::type_t) const
bool getChannelActive(DAQ::type_t, DAQ::index_t) const
void setAnalogConversion(DAQ::type_t, DAQ::index_t)
size_t getAnalogDownsample(DAQ::type_t, DAQ::index_t) const
std::string getAnalogUnitsString(DAQ::type_t, DAQ::index_t, DAQ::index_t) const
DAQ::direction_t getDigitalDirection(DAQ::index_t) const
int setAnalogReference(DAQ::type_t, DAQ::index_t, DAQ::index_t)
int setAnalogCalibrationValue(DAQ::type_t, DAQ::index_t, double)
size_t getAnalogReferenceCount(DAQ::type_t, DAQ::index_t) const
size_t getAnalogRangeCount(DAQ::type_t, DAQ::index_t) const
int setChannelActive(DAQ::type_t, DAQ::index_t, bool)
DAQ::index_t getAnalogReference(DAQ::type_t, DAQ::index_t) const
int setAnalogOffsetUnits(DAQ::type_t, DAQ::index_t, DAQ::index_t)
int setAnalogRange(DAQ::type_t, DAQ::index_t, DAQ::index_t)
DAQ::index_t getAnalogOffsetUnits(DAQ::type_t, DAQ::index_t) const
DAQ::index_t getAnalogUnits(DAQ::type_t, DAQ::index_t) const
struct IO::channel_t channel_t