|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_COMEDI_H
28 #define RL_HAL_COMEDI_H
30 #include <comedilib.h>
58 lsampl_t
getMax(const ::std::size_t& subdevice, const ::std::size_t& channel)
const;
60 ::std::size_t
getNumChannels(const ::std::size_t& subdevice)
const;
62 ::std::size_t
getNumRanges(const ::std::size_t& subdevice, const ::std::size_t& channel)
const;
72 void read(const ::std::size_t& subdevice, const ::std::size_t& channel,
double& data);
74 void read(const ::std::size_t& subdevice, const ::std::size_t& channel,
float& data);
80 void write(const ::std::size_t& subdevice, const ::std::size_t& channel,
const double& data);
82 void write(const ::std::size_t& subdevice, const ::std::size_t& channel,
const float& data);
98 #endif // RL_HAL_COMEDI_H
int getFileno() const
Definition: Comedi.cpp:101
unsigned int range
Definition: Comedi.h:93
unsigned int getRange() const
Definition: Comedi.cpp:159
comedi_t * getDevice() const
Definition: Comedi.cpp:82
::std::string getBoardName() const
Definition: Comedi.cpp:69
::std::string getDriverName() const
Definition: Comedi.cpp:88
::std::size_t getNumChannels(const ::std::size_t &subdevice) const
Definition: Comedi.cpp:127
Comedi(const ::std::string &filename="/dev/comedi0")
Definition: Comedi.cpp:34
void close()
Definition: Comedi.cpp:52
::std::size_t getSubdeviceFlags(const ::std::size_t &subdevice) const
Definition: Comedi.cpp:165
::std::size_t getNumSubdevices() const
Definition: Comedi.cpp:153
void open()
Definition: Comedi.cpp:178
void setRange(const unsigned int &range)
Definition: Comedi.cpp:251
comedi_t * device
Definition: Comedi.h:89
lsampl_t getMax(const ::std::size_t &subdevice, const ::std::size_t &channel) const
Definition: Comedi.cpp:114
unsigned int aref
Definition: Comedi.h:87
::std::size_t getNumRanges(const ::std::size_t &subdevice, const ::std::size_t &channel) const
Definition: Comedi.cpp:140
void write(const ::std::size_t &subdevice, const ::std::size_t &channel, const double &data)
Definition: Comedi.cpp:257
virtual ~Comedi()
Definition: Comedi.cpp:43
::std::string filename
Definition: Comedi.h:91
void setAref(const unsigned int &aref)
Definition: Comedi.cpp:245
unsigned int getAref() const
Definition: Comedi.cpp:63
void read(const ::std::size_t &subdevice, const ::std::size_t &channel, double &data)
Definition: Comedi.cpp:191
Robotics Library.
Definition: AnalogInput.cpp:30