Replaced ResumeTargetExecution event with TC command
This commit is contained in:
24
src/TargetController/Commands/ResumeTargetExecution.hpp
Normal file
24
src/TargetController/Commands/ResumeTargetExecution.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user