Motorcortex Core  version: 2.7.6
wd_basic.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2018 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_WD_BASIC_H
7 #define MOTORCORTEX_CORE_WD_BASIC_H
8 
9 #include "wd_base.h"
10 #include "wd_pulsegen.h"
11 
12 namespace mcx {
13 
14 namespace watchdog {
15 
16 class WatchdogBasic : public WatchdogBase {
17 public:
18 
19  WatchdogBasic() = default;
20  ~WatchdogBasic() override = default;
21 
22  bool open(const char* device) override;
23  void update(const WatchdogIn& in, WatchdogOut* out) override;
24 
25 private:
26 
27  PulseGenerator pulse_generator_;
28  bool acknowledge_{};
29  unsigned int acknowledge_counter_{};
30 
31 };
32 
33 } // namespace watchdog
34 
35 } // namespace mcx
36 
37 #endif //MOTORCORTEX_CORE_WD_BASIC_H
mcx::watchdog::WatchdogBasic
Definition: wd_basic.h:16
mcx::watchdog::WatchdogBase
Definition: wd_base.h:29
mcx::watchdog::WatchdogIn
Definition: wd_base.h:13
mcx::watchdog::PulseGenerator
Definition: wd_pulsegen.h:12
mcx::watchdog::WatchdogOut
Definition: wd_base.h:20