Replaced ExtractTargetDescriptor event with TC command

This commit is contained in:
Nav
2022-05-01 18:30:58 +01:00
parent d8af8fe1ee
commit 96cae9d1e4
11 changed files with 69 additions and 78 deletions

View File

@@ -23,5 +23,6 @@ namespace Bloom::TargetController::Commands
GET_TARGET_PIN_STATES,
SET_TARGET_PIN_STATE,
GET_TARGET_STACK_POINTER,
GET_TARGET_DESCRIPTOR,
};
}

View File

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