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