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