New resume & suspend TargetController commands

This commit is contained in:
Nav
2022-09-14 22:05:50 +01:00
parent beae66e477
commit 98963ef4a8
8 changed files with 111 additions and 15 deletions

View File

@@ -8,6 +8,8 @@ namespace Bloom::TargetController::Commands
{
GENERIC,
GET_STATE,
RESUME,
SUSPEND,
GET_TARGET_DESCRIPTOR,
STOP_TARGET_EXECUTION,
RESUME_TARGET_EXECUTION,

View File

@@ -0,0 +1,21 @@
#pragma once
#include "Command.hpp"
namespace Bloom::TargetController::Commands
{
class Resume: public Command
{
public:
static constexpr CommandType type = CommandType::RESUME;
static inline const std::string name = "Resume";
[[nodiscard]] CommandType getType() const override {
return Resume::type;
}
[[nodiscard]] bool requiresDebugMode() const override {
return false;
}
};
}

View File

@@ -0,0 +1,21 @@
#pragma once
#include "Command.hpp"
namespace Bloom::TargetController::Commands
{
class Suspend: public Command
{
public:
static constexpr CommandType type = CommandType::SUSPEND;
static inline const std::string name = "Suspend";
[[nodiscard]] CommandType getType() const override {
return Suspend::type;
}
[[nodiscard]] bool requiresDebugMode() const override {
return false;
}
};
}