New GetTargetProgramCounter TC command

This commit is contained in:
Nav
2022-05-01 18:44:04 +01:00
parent 96cae9d1e4
commit 4209d9eb20
8 changed files with 85 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ namespace Bloom::TargetController::Responses
TARGET_STATE,
TARGET_PIN_STATES,
TARGET_STACK_POINTER,
TARGET_PROGRAM_COUNTER,
TARGET_DESCRIPTOR,
};
}

View 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;
}
};
}