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