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