| RTXI 2.4 The Real-Time eXperiment Interface Documentation |
Go to the documentation of this file. 53 static const index_t INVALID = (0-1);
110 Device *
loadDevice(
const std::string &driver,
const std::list<std::string> ¶ms);
116 Manager(
const Manager &) {};
117 Manager &operator=(
const Manager &)
122 static Manager *instance;
124 void insertDevice(
Device *);
125 void removeDevice(
Device *);
127 void registerDriver(
Driver *,
const std::string &);
128 void unregisterDriver(
const std::string &);
131 std::list<Device *> devices;
132 std::map<std::string,Driver *> driverMap;
407 Driver(
const std::string &name);
428 #endif // DAQ_DEVICE_H virtual Device * createDevice(const std::list< std::string > &args)=0
virtual int setAnalogOffsetUnits(type_t type, index_t index, index_t units)=0
virtual size_t getChannelCount(type_t type) const =0
virtual size_t getAnalogDownsample(type_t type, index_t index) const =0
virtual index_t getAnalogUnits(type_t type, index_t index) const =0
virtual int setAnalogCounter(type_t type, index_t index)=0
virtual double getAnalogGain(type_t type, index_t index) const =0
virtual int setAnalogZeroOffset(type_t type, index_t index, double offset)=0
virtual int setAnalogCalibrationValue(type_t type, index_t index, double value)=0
static Manager * getInstance(void)
virtual index_t getAnalogRange(type_t type, index_t index) const =0
virtual int setAnalogUnits(type_t type, index_t index, index_t units)=0
virtual double getAnalogCalibrationValue(type_t type, index_t index) const =0
virtual int setChannelActive(type_t type, index_t index, bool state)=0
void foreachDevice(void(*callback)(Device *, void *), void *param)
virtual bool getChannelActive(type_t type, index_t index) const =0
virtual size_t getAnalogRangeCount(type_t type, index_t index) const =0
virtual size_t getAnalogUnitsCount(type_t type, index_t index) const =0
virtual int setAnalogCalibrationActive(type_t type, index_t index, bool state)=0
virtual double getAnalogZeroOffset(type_t type, index_t index) const =0
virtual index_t getAnalogReference(type_t type, index_t index) const =0
virtual std::string getAnalogRangeString(type_t type, index_t index, index_t range) const =0
virtual direction_t getDigitalDirection(index_t index) const =0
Device * loadDevice(const std::string &driver, const std::list< std::string > ¶ms)
virtual bool getAnalogCalibrationState(type_t type, index_t index) const =0
virtual size_t getAnalogReferenceCount(type_t type, index_t index) const =0
virtual std::string getAnalogReferenceString(type_t type, index_t index, index_t reference) const =0
virtual int setAnalogRange(type_t type, index_t index, index_t range)=0
virtual int setDigitalDirection(index_t index, direction_t direction)=0
virtual bool getAnalogCalibrationActive(type_t type, index_t index) const =0
virtual int setAnalogReference(type_t type, index_t index, index_t reference)=0
virtual std::string getAnalogUnitsString(type_t type, index_t index, index_t units) const =0
virtual int setAnalogGain(type_t type, index_t index, double gain)=0
Driver(const std::string &name)
virtual int setAnalogDownsample(type_t type, index_t index, size_t downsample)=0
virtual index_t getAnalogOffsetUnits(type_t type, index_t index) const =0