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