EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ScalablePeripheralOutput.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_SCALABLEPERIPHERALOUTPUT_HPP_
2 #define ORG_EEROS_HAL_SCALABLEPERIPHERALOUTPUT_HPP_
3 
4 #include <eeros/core/System.hpp>
6 
7 namespace eeros {
8  namespace hal {
9 
10  template <typename T>
12  public:
13  explicit ScalablePeripheralOutput(std::string id, T scale, T offset) : PeripheralOutput<T>(id), scale(scale), offset(offset) { }
15 
16  virtual T getScale() { return scale; }
17  virtual T getOffset() { return offset; }
18  virtual void setScale(T s) { scale = s; }
19  virtual void setOffset(T o) { offset = o; }
20 
21  protected:
22  T scale;
23  T offset;
24  };
25 
26  };
27 };
28 
29 #endif /* ORG_EEROS_HAL_SCALABLEPERIPHERALOUTPUT_HPP_ */
Definition: ScalablePeripheralOutput.hpp:11
Definition: PeripheralOutput.hpp:17
virtual void setScale(T s)
Definition: ScalablePeripheralOutput.hpp:18
virtual ~ScalablePeripheralOutput()
Definition: ScalablePeripheralOutput.hpp:14
T offset
Definition: ScalablePeripheralOutput.hpp:23
virtual T getOffset()
Definition: ScalablePeripheralOutput.hpp:17
ScalablePeripheralOutput(std::string id, T scale, T offset)
Definition: ScalablePeripheralOutput.hpp:13
T scale
Definition: ScalablePeripheralOutput.hpp:22
virtual void setOffset(T o)
Definition: ScalablePeripheralOutput.hpp:19
virtual T getScale()
Definition: ScalablePeripheralOutput.hpp:16