Motorcortex Core  version: 2.7.6
drive_sercos_fsm_transition.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2018 VECTIONEER.
4  */
5 
6 #ifndef MOTORCORTEX_CORE_DRIVE_SERCOS_FSM_TRANSITION_H
7 #define MOTORCORTEX_CORE_DRIVE_SERCOS_FSM_TRANSITION_H
8 
9 #include "drive_sercos_fsm_base.h"
10 #include "sm_state.h"
11 
12 namespace mcx {
13 
14 namespace drive {
15 
16 // common implementations which appear more than once in the code
18 public:
19  explicit TransitionSercos(SercosFsmData& data);
20 
21  state_machine::EventStatus shutdown(int state_id) override;
22 
23  state_machine::EventStatus switchOn(int state_id) override;
24 
25  state_machine::EventStatus enableOperation(int state_id) override;
26 
27  state_machine::EventStatus quickStop(int state_id) override;
28 
29  state_machine::EventStatus disableOperation(int state_id) override;
30 
31  state_machine::EventStatus disableVoltage(int state_id) override;
32 
33  state_machine::EventStatus resetting(int state_id) override;
34 
35  state_machine::EventStatus terminateEvent() override;
36 };
37 
38 } // namespace drive
39 
40 } // namespace mcx
41 
42 #endif //MOTORCORTEX_CORE_DRIVE_SERCOS_FSM_TRANSITION_H
mcx::drive::SercosFsmData
Definition: drive_sercos_fsm_data.h:135
mcx::drive::TransitionSercos
Definition: drive_sercos_fsm_transition.h:17
mcx::drive::SercosFsmBase
Definition: drive_sercos_fsm_base.h:18