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