Insight worker task for reading target memory
This commit is contained in:
@@ -136,6 +136,10 @@ add_executable(Bloom
|
|||||||
src/Insight/InsightWorker/Tasks/WriteTargetRegister.cpp
|
src/Insight/InsightWorker/Tasks/WriteTargetRegister.cpp
|
||||||
src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.cpp
|
src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.cpp
|
||||||
src/Insight/InsightWorker/Tasks/SetTargetPinState.cpp
|
src/Insight/InsightWorker/Tasks/SetTargetPinState.cpp
|
||||||
|
src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp
|
||||||
|
|
||||||
|
# Error dialogue window
|
||||||
|
src/Insight/UserInterfaces/InsightWindow/Widgets/ErrorDialogue/ErrorDialogue.cpp
|
||||||
|
|
||||||
# Target package widgets
|
# Target package widgets
|
||||||
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPackageWidgetContainer.cpp
|
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetWidgets/TargetPackageWidgetContainer.cpp
|
||||||
@@ -167,8 +171,6 @@ add_executable(Bloom
|
|||||||
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/BitsetWidget/BitWidget.cpp
|
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/BitsetWidget/BitWidget.cpp
|
||||||
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/BitsetWidget/BitBodyWidget.cpp
|
src/Insight/UserInterfaces/InsightWindow/Widgets/TargetRegisterInspector/BitsetWidget/BitBodyWidget.cpp
|
||||||
|
|
||||||
# Error dialogue window
|
|
||||||
src/Insight/UserInterfaces/InsightWindow/Widgets/ErrorDialogue/ErrorDialogue.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(Bloom PROPERTIES OUTPUT_NAME bloom)
|
set_target_properties(Bloom PROPERTIES OUTPUT_NAME bloom)
|
||||||
|
|||||||
9
src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp
Normal file
9
src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#include "ReadTargetMemory.hpp"
|
||||||
|
|
||||||
|
using namespace Bloom;
|
||||||
|
|
||||||
|
void ReadTargetMemory::run(TargetControllerConsole& targetControllerConsole) {
|
||||||
|
emit this->targetMemoryRead(
|
||||||
|
targetControllerConsole.readMemory(this->memoryType, this->startAddress, this->size)
|
||||||
|
);
|
||||||
|
}
|
||||||
30
src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp
Normal file
30
src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
#include "InsightWorkerTask.hpp"
|
||||||
|
|
||||||
|
#include "src/Targets/TargetMemory.hpp"
|
||||||
|
|
||||||
|
namespace Bloom
|
||||||
|
{
|
||||||
|
class ReadTargetMemory: public InsightWorkerTask
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
ReadTargetMemory(Targets::TargetMemoryType memoryType, std::uint32_t startAddress, std::uint32_t size):
|
||||||
|
InsightWorkerTask(), memoryType(memoryType), startAddress(startAddress), size(size) {}
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void targetMemoryRead(Targets::TargetMemoryBuffer buffer);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void run(TargetControllerConsole& targetControllerConsole) override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
Targets::TargetMemoryType memoryType;
|
||||||
|
std::uint32_t startAddress;
|
||||||
|
std::uint32_t size;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user