Motorcortex Core  version: 2.7.6
fbus_dummy.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2020 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_FBUS_DUMMY_H
7 #define MOTORCORTEX_CORE_FBUS_DUMMY_H
8 
9 #include "ct_module.h"
10 
11 namespace mcx {
12 
13 namespace fbus {
14 
15 class Dummy : public mcx::container::Module {
16 public:
17  Dummy() = default;
18 
19  ~Dummy() override = default;
20 
21 private:
22  void create_(const char* name, mcx::parameter_server::Parameter* parameter_server, uint64_t dt_micro_s) override;
23 
24  bool initPhase1_() override;
25 
26  bool initPhase2_() override;
27 
28  bool startOp_() override;
29 
30  bool stopOp_() override;
31 
32  bool iterateOp_(const mcx::container::TaskTime& system_time, mcx::container::UserTime* user_time) override;
33 };
34 
35 } // namespace fbus
36 
37 } // namespace mcx
38 
39 #endif /* MOTORCORTEX_CORE_FBUS_DUMMY_H */
mcx::parameter_server::Parameter
Definition: ps_parameter.h:45
mcx::container::TaskTime
Internal time source.
Definition: ct_time.h:25
mcx::fbus::Dummy
Definition: fbus_dummy.h:15
mcx::container::UserTime
External time source.
Definition: ct_time.h:40
mcx::container::Module
A building block of the Motorcortex components.
Definition: ct_module.h:64