Open FFBoard
Open source force feedback firmware
SystemCommands.h
Go to the documentation of this file.
1/*
2 * SystemCommands.h
3 *
4 * Created on: 30.11.2021
5 * Author: Yannick
6 */
7
8#ifndef SRC_SYSTEMCOMMANDS_H_
9#define SRC_SYSTEMCOMMANDS_H_
10
11#include "CommandHandler.h"
12
13enum class FFBoardMain_commands : uint32_t{
15};
16
18public:
20 virtual ~SystemCommands();
21
24
25 void registerCommands();
26 CommandStatus internalCommand(const ParsedCommand& cmd,std::vector<CommandReply>& replies);
27
28
30
31 static void replyFlashDump(std::vector<CommandReply>& replies);
32 static void replyErrors(std::vector<CommandReply>& replies);
33
34 static bool debugMode; // Global flag that controls the debug mode
35
38
39};
40
41#endif /* SRC_SYSTEMCOMMANDS_H_ */
ClassType
Definition: ClassIDs.h:12
CommandStatus
FFBoardMain_commands
const ClassType getClassType()
CommandStatus internalCommand(const ParsedCommand &cmd, std::vector< CommandReply > &replies)
static SystemCommands * systemCommandsInstance
static ClassIdentifier info
virtual ~SystemCommands()
static bool errorPrintingEnabled
static bool debugMode
static void replyErrors(std::vector< CommandReply > &replies)
static void replyFlashDump(std::vector< CommandReply > &replies)
const ClassIdentifier getInfo()
Command handlers always have class infos. Works well with ChoosableClass.