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