New GetTargetProgramCounter TC command
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Bloom::TargetController::Commands
|
||||
GET_TARGET_PIN_STATES,
|
||||
SET_TARGET_PIN_STATE,
|
||||
GET_TARGET_STACK_POINTER,
|
||||
GET_TARGET_PROGRAM_COUNTER,
|
||||
GET_TARGET_DESCRIPTOR,
|
||||
};
|
||||
}
|
||||
|
||||
25
src/TargetController/Commands/GetTargetProgramCounter.hpp
Normal file
25
src/TargetController/Commands/GetTargetProgramCounter.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/TargetController/Responses/TargetProgramCounter.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class GetTargetProgramCounter: public Command
|
||||
{
|
||||
public:
|
||||
using SuccessResponseType = Responses::TargetProgramCounter;
|
||||
|
||||
static constexpr CommandType type = CommandType::GET_TARGET_PROGRAM_COUNTER;
|
||||
static inline const std::string name = "GetTargetProgramCounter";
|
||||
|
||||
[[nodiscard]] CommandType getType() const override {
|
||||
return GetTargetProgramCounter::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool requiresStoppedTargetState() const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user