Replaced RetrieveMemoryFromTarget event with TC command
This commit is contained in:
@@ -9,5 +9,6 @@ namespace Bloom::TargetController::Responses
|
||||
GENERIC,
|
||||
ERROR,
|
||||
TARGET_REGISTERS_READ,
|
||||
TARGET_MEMORY_READ,
|
||||
};
|
||||
}
|
||||
|
||||
24
src/TargetController/Responses/TargetMemoryRead.hpp
Normal file
24
src/TargetController/Responses/TargetMemoryRead.hpp
Normal 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;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user