Replaced ExtractTargetDescriptor event with TC command
This commit is contained in:
@@ -13,5 +13,6 @@ namespace Bloom::TargetController::Responses
|
||||
TARGET_STATE,
|
||||
TARGET_PIN_STATES,
|
||||
TARGET_STACK_POINTER,
|
||||
TARGET_DESCRIPTOR,
|
||||
};
|
||||
}
|
||||
|
||||
26
src/TargetController/Responses/TargetDescriptor.hpp
Normal file
26
src/TargetController/Responses/TargetDescriptor.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user