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

@@ -13,5 +13,6 @@ namespace Bloom::TargetController::Responses
TARGET_STATE,
TARGET_PIN_STATES,
TARGET_STACK_POINTER,
TARGET_DESCRIPTOR,
};
}

View File

@@ -0,0 +1,26 @@
#pragma once
#include <cstdint>
#include "Response.hpp"
#include "src/Targets/TargetDescriptor.hpp"
namespace Bloom::TargetController::Responses
{
class TargetDescriptor: public Response
{
public:
static constexpr ResponseType type = ResponseType::TARGET_DESCRIPTOR;
Targets::TargetDescriptor targetDescriptor;
explicit TargetDescriptor(const Targets::TargetDescriptor& targetDescriptor)
: targetDescriptor(targetDescriptor)
{}
[[nodiscard]] ResponseType getType() const override {
return TargetDescriptor::type;
}
};
}