Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
set_mode.h
Go to the documentation of this file.
1 #pragma once
3 #include <stdint.h>
4 #include "command_base.h"
5 
6 namespace logic {
7 
14 class SetMode : public CommandBase {
15 public:
16  inline constexpr SetMode()
17  : CommandBase() {}
18 
20  bool Reset(uint8_t param) override;
21 
24  bool StepInner() override { return true; }
25 };
26 
28 extern SetMode setMode;
29 
30 } // namespace logic
Base class defining common API for high-level operations/commands/state machines.
Definition: command_base.h:29
Sets the mode of TMC2130 for all motors at once. In the original proposal, the M0/M1 message was decl...
Definition: set_mode.h:14
bool StepInner() override
Definition: set_mode.h:24
bool Reset(uint8_t param) override
Restart the automaton.
Definition: set_mode.cpp:10
The logic namespace handles the application logic on top of the modules.
Definition: application.h:8
SetMode setMode
The one and only instance of NoCommand state machine in the FW.
Definition: set_mode.cpp:8