Replaced RetrieveTargetPinStates event with TC command
This commit is contained in:
@@ -20,5 +20,6 @@ namespace Bloom::TargetController::Commands
|
||||
SET_BREAKPOINT,
|
||||
REMOVE_BREAKPOINT,
|
||||
SET_PROGRAM_COUNTER,
|
||||
GET_TARGET_PIN_STATES,
|
||||
};
|
||||
}
|
||||
|
||||
31
src/TargetController/Commands/GetTargetPinStates.hpp
Normal file
31
src/TargetController/Commands/GetTargetPinStates.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/TargetController/Responses/TargetPinStates.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class GetTargetPinStates: public Command
|
||||
{
|
||||
public:
|
||||
using SuccessResponseType = Responses::TargetPinStates;
|
||||
|
||||
static constexpr CommandType type = CommandType::GET_TARGET_PIN_STATES;
|
||||
static inline const std::string name = "GetTargetPinStates";
|
||||
|
||||
int variantId = 0;
|
||||
|
||||
explicit GetTargetPinStates(int variantId)
|
||||
: variantId(variantId)
|
||||
{};
|
||||
|
||||
[[nodiscard]] CommandType getType() const override {
|
||||
return GetTargetPinStates::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool requiresStoppedTargetState() const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user