Replaced RetrieveRegistersFromTarget event with TC command

This commit is contained in:
Nav
2022-04-24 16:41:40 +01:00
parent a2d7cb8dc8
commit e662d0b57a
11 changed files with 82 additions and 92 deletions

View File

@@ -20,9 +20,11 @@
#include "Commands/StopTargetExecution.hpp"
#include "Commands/ResumeTargetExecution.hpp"
#include "Commands/ResetTarget.hpp"
#include "Commands/ReadTargetRegisters.hpp"
// Responses
#include "Responses/Response.hpp"
#include "Responses/TargetRegistersRead.hpp"
#include "TargetControllerState.hpp"
@@ -291,6 +293,9 @@ namespace Bloom::TargetController
std::unique_ptr<Responses::Response> handleStopTargetExecution(Commands::StopTargetExecution& command);
std::unique_ptr<Responses::Response> handleResumeTargetExecution(Commands::ResumeTargetExecution& command);
std::unique_ptr<Responses::Response> handleResetTarget(Commands::ResetTarget& command);
std::unique_ptr<Responses::TargetRegistersRead> handleReadTargetRegisters(
Commands::ReadTargetRegisters& command
);
/**
* Will attempt to step execution on the target and emit a TargetExecutionResumed event.
@@ -299,13 +304,6 @@ namespace Bloom::TargetController
*/
void onStepTargetExecutionEvent(const Events::StepTargetExecution& event);
/**
* Will attempt to read the requested registers and emit a RegistersRetrievedFromTarget event.
*
* @param event
*/
void onReadRegistersEvent(const Events::RetrieveRegistersFromTarget& event);
/**
* Will attempt to write the specified register values and emit a RegistersWrittenToTarget event.
*