EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ComediFqd.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_COMEDIFQD_HPP_
2 #define ORG_EEROS_HAL_COMEDIFQD_HPP_
3 
4 #include <string>
5 #include <comedilib.h>
8 
9 namespace eeros {
10  namespace hal {
11 
12  class ComediFqd : public ScalablePeripheralInput<double> {
13  public:
14  ComediFqd(std::string id, ComediDevice* device, uint32_t subDeviceNumber, uint32_t channelA, uint32_t channelB, uint32_t channelZ, double scale = 1, double offset = 0, double initValue = 0);
15  virtual double get();
16 
17  private:
18  comedi_t* deviceHandle;
19  uint32_t subDeviceNumber;
20  uint32_t channelA;
21  uint32_t channelB;
22  uint32_t channelZ;
23  lsampl_t counter_mode;
24  };
25 
26  };
27 };
28 
29 #endif /* ORG_EEROS_HAL_COMEDIFQD_HPP_ */
Definition: ComediFqd.hpp:12
Definition: ScalablePeripheralInput.hpp:11
double scale
Definition: ScalablePeripheralInput.hpp:22
double offset
Definition: ScalablePeripheralInput.hpp:23
Definition: ComediDevice.hpp:10
ComediFqd(std::string id, ComediDevice *device, uint32_t subDeviceNumber, uint32_t channelA, uint32_t channelB, uint32_t channelZ, double scale=1, double offset=0, double initValue=0)
Definition: ComediFqd.cpp:5