Replaced RetrieveMemoryFromTarget event with TC command

This commit is contained in:
Nav
2022-04-24 18:55:19 +01:00
parent 6e4364b43a
commit 391b742d8b
11 changed files with 97 additions and 99 deletions

View File

@@ -9,5 +9,6 @@ namespace Bloom::TargetController::Responses
GENERIC,
ERROR,
TARGET_REGISTERS_READ,
TARGET_MEMORY_READ,
};
}

View File

@@ -0,0 +1,24 @@
#pragma once
#include "Response.hpp"
#include "src/Targets/TargetMemory.hpp"
namespace Bloom::TargetController::Responses
{
class TargetMemoryRead: public Response
{
public:
static constexpr ResponseType type = ResponseType::TARGET_MEMORY_READ;
Targets::TargetMemoryBuffer data;
TargetMemoryRead(const Targets::TargetMemoryBuffer& data)
: data(data)
{}
[[nodiscard]] ResponseType getType() const override {
return TargetMemoryRead::type;
}
};
}