60 result =
"Analog Input";
63 result =
"Analog Output";
66 result =
"Digital Input";
69 result =
"Digital Output";
72 ERROR_MSG(
"DAQ::ChannelType::type2string : Unknown type used");
113 std::pair(-10.0, 10.0),
114 std::pair(-5.0, 5.0),
115 std::pair(-1.0, 1.0),
116 std::pair(-0.5, 0.5),
117 std::pair(-0.2, 0.2),
118 std::pair(-0.1, 0.1),
124 return {
"volts",
"amps"};
140 const std::vector<IO::channel_t>& channels)
369 size_t downsample) = 0;
450 : name(std::move(dev_name))
virtual size_t getAnalogDownsample(ChannelType::type_t type, index_t index) const =0
virtual int setAnalogCalibrationActive(ChannelType::type_t type, index_t index, bool state)=0
virtual index_t getAnalogOffsetUnits(ChannelType::type_t type, index_t index) const =0
virtual index_t getAnalogRange(ChannelType::type_t type, index_t index) const =0
virtual size_t getAnalogUnitsCount(index_t index) const =0
virtual int setAnalogOffsetUnits(ChannelType::type_t type, index_t index, index_t units)=0
virtual double getAnalogZeroOffset(ChannelType::type_t type, index_t index) const =0
virtual bool getChannelActive(ChannelType::type_t type, index_t index) const =0
virtual bool getAnalogCalibrationActive(ChannelType::type_t type, index_t index) const =0
virtual int setAnalogZeroOffset(ChannelType::type_t type, index_t index, double offset)=0
virtual std::string getAnalogReferenceString(ChannelType::type_t type, index_t index, index_t reference) const =0
virtual int setDigitalDirection(index_t index, direction_t direction)=0
virtual size_t getAnalogReferenceCount(index_t index) const =0
virtual double getAnalogCalibrationValue(ChannelType::type_t type, index_t index) const =0
virtual double getAnalogGain(ChannelType::type_t type, index_t index) const =0
virtual bool getAnalogCalibrationState(ChannelType::type_t type, index_t index) const =0
Device(const std::string &dev_name, const std::vector< IO::channel_t > &channels)
virtual int setAnalogCalibrationValue(ChannelType::type_t type, index_t index, double value)=0
virtual size_t getChannelCount(ChannelType::type_t type) const =0
virtual index_t getAnalogReference(ChannelType::type_t type, index_t index) const =0
virtual int setChannelActive(ChannelType::type_t type, index_t index, bool state)=0
virtual int setAnalogRange(ChannelType::type_t type, index_t index, index_t range)=0
virtual int setAnalogGain(ChannelType::type_t type, index_t index, double gain)=0
virtual int setAnalogCounter(ChannelType::type_t type, index_t index)=0
virtual int setAnalogReference(ChannelType::type_t type, index_t index, index_t reference)=0
virtual int setAnalogUnits(ChannelType::type_t type, index_t index, index_t units)=0
virtual int setAnalogDownsample(ChannelType::type_t type, index_t index, size_t downsample)=0
virtual std::string getAnalogUnitsString(ChannelType::type_t type, index_t index, index_t units) const =0
virtual size_t getAnalogRangeCount(index_t index) const =0
virtual std::string getAnalogRangeString(ChannelType::type_t type, index_t index, index_t range) const =0
virtual index_t getAnalogUnits(ChannelType::type_t type, index_t index) const =0
virtual std::vector< DAQ::Device * > getDevices()=0
Driver(Driver &&)=default
virtual ~Driver()=default
Driver & operator=(Driver &&)=default
virtual void unloadDevices()=0
Driver & operator=(const Driver &)=default
Driver(const Driver &)=default
Driver(std::string dev_name)
virtual void loadDevices()=0
std::string getDriverName()
void ERROR_MSG(const std::string &errmsg, Args... args)
std::string type2string(type_t type)
std::array< std::string, 2 > get_default_units()
std::array< analog_range_t, 7 > get_default_ranges()
std::pair< double, double > analog_range_t