New GetTargetState TargetController command

This commit is contained in:
Nav
2022-04-28 21:02:45 +01:00
parent 4b19db5505
commit 5a8aa3d657
8 changed files with 76 additions and 5 deletions

View File

@@ -14,5 +14,6 @@ namespace Bloom::TargetController::Commands
READ_TARGET_REGISTERS,
WRITE_TARGET_REGISTERS,
READ_TARGET_MEMORY,
GET_TARGET_STATE,
};
}

View File

@@ -0,0 +1,20 @@
#pragma once
#include "Command.hpp"
#include "src/TargetController/Responses/TargetState.hpp"
namespace Bloom::TargetController::Commands
{
class GetTargetState: public Command
{
public:
using SuccessResponseType = Responses::TargetState;
static constexpr CommandType type = CommandType::GET_TARGET_STATE;
static inline const std::string name = "GetTargetState";
[[nodiscard]] CommandType getType() const override {
return GetTargetState::type;
}
};
}