Replaced ResumeTargetExecution event with TC command

This commit is contained in:
Nav
2022-04-19 21:12:59 +01:00
parent fa4f5e3427
commit 5da06f22d1
8 changed files with 58 additions and 69 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include "Command.hpp"
namespace Bloom::TargetController::Commands
{
class ResumeTargetExecution: public Command
{
public:
static constexpr CommandType type = CommandType::RESUME_TARGET_EXECUTION;
static inline const std::string name = "ResumeTargetExecution";
std::optional<std::uint32_t> fromProgramCounter;
ResumeTargetExecution() = default;
explicit ResumeTargetExecution(std::uint32_t fromProgramCounter)
: fromProgramCounter(fromProgramCounter)
{};
[[nodiscard]] CommandType getType() const override {
return ResumeTargetExecution::type;
}
};
}