New GetTargetProgramCounter TC command
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Bloom::TargetController::Responses
|
||||
TARGET_STATE,
|
||||
TARGET_PIN_STATES,
|
||||
TARGET_STACK_POINTER,
|
||||
TARGET_PROGRAM_COUNTER,
|
||||
TARGET_DESCRIPTOR,
|
||||
};
|
||||
}
|
||||
|
||||
24
src/TargetController/Responses/TargetProgramCounter.hpp
Normal file
24
src/TargetController/Responses/TargetProgramCounter.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "Response.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Responses
|
||||
{
|
||||
class TargetProgramCounter: public Response
|
||||
{
|
||||
public:
|
||||
static constexpr ResponseType type = ResponseType::TARGET_PROGRAM_COUNTER;
|
||||
|
||||
std::uint32_t programCounter;
|
||||
|
||||
explicit TargetProgramCounter(std::uint32_t programCounter)
|
||||
: programCounter(programCounter)
|
||||
{}
|
||||
|
||||
[[nodiscard]] ResponseType getType() const override {
|
||||
return TargetProgramCounter::type;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user