Replaced ExtractTargetDescriptor event with TC command
This commit is contained in:
@@ -23,5 +23,6 @@ namespace Bloom::TargetController::Commands
|
||||
GET_TARGET_PIN_STATES,
|
||||
SET_TARGET_PIN_STATE,
|
||||
GET_TARGET_STACK_POINTER,
|
||||
GET_TARGET_DESCRIPTOR,
|
||||
};
|
||||
}
|
||||
|
||||
21
src/TargetController/Commands/GetTargetDescriptor.hpp
Normal file
21
src/TargetController/Commands/GetTargetDescriptor.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user