Open FFBoard
Open source force feedback firmware
Loading...
Searching...
No Matches
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
16
18public:
20 virtual ~SystemCommands();
21
23 static ClassIdentifier info;
24
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
CommandHandler(const char *clsname, uint16_t clsid, uint8_t instance=0)
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.