New GetTargetState TargetController command
This commit is contained in:
@@ -14,5 +14,6 @@ namespace Bloom::TargetController::Commands
|
||||
READ_TARGET_REGISTERS,
|
||||
WRITE_TARGET_REGISTERS,
|
||||
READ_TARGET_MEMORY,
|
||||
GET_TARGET_STATE,
|
||||
};
|
||||
}
|
||||
|
||||
20
src/TargetController/Commands/GetTargetState.hpp
Normal file
20
src/TargetController/Commands/GetTargetState.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user