Replaced RetrieveStackPointerFromTarget event with TC command
This commit is contained in:
@@ -22,5 +22,6 @@ namespace Bloom::TargetController::Commands
|
||||
SET_PROGRAM_COUNTER,
|
||||
GET_TARGET_PIN_STATES,
|
||||
SET_TARGET_PIN_STATE,
|
||||
GET_TARGET_STACK_POINTER,
|
||||
};
|
||||
}
|
||||
|
||||
25
src/TargetController/Commands/GetTargetStackPointer.hpp
Normal file
25
src/TargetController/Commands/GetTargetStackPointer.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/TargetController/Responses/TargetStackPointer.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class GetTargetStackPointer: public Command
|
||||
{
|
||||
public:
|
||||
using SuccessResponseType = Responses::TargetStackPointer;
|
||||
|
||||
static constexpr CommandType type = CommandType::GET_TARGET_STACK_POINTER;
|
||||
static inline const std::string name = "GetTargetStackPointer";
|
||||
|
||||
[[nodiscard]] CommandType getType() const override {
|
||||
return GetTargetStackPointer::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool requiresStoppedTargetState() const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user