Updated application to code to accomodate changes to TDF format (new pad elements and changes to variant elements)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace TargetController::Responses
|
||||
TARGET_REGISTERS_READ,
|
||||
TARGET_MEMORY_READ,
|
||||
TARGET_STATE,
|
||||
TARGET_GPIO_PIN_STATES,
|
||||
TARGET_GPIO_PAD_STATES,
|
||||
TARGET_STACK_POINTER,
|
||||
TARGET_PROGRAM_COUNTER,
|
||||
BREAKPOINT,
|
||||
|
||||
29
src/TargetController/Responses/TargetGpioPadStates.hpp
Normal file
29
src/TargetController/Responses/TargetGpioPadStates.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "Response.hpp"
|
||||
|
||||
#include "src/Targets/TargetPinDescriptor.hpp"
|
||||
#include "src/Targets/TargetGpioPadState.hpp"
|
||||
|
||||
#include "src/Helpers/Pair.hpp"
|
||||
|
||||
namespace TargetController::Responses
|
||||
{
|
||||
class TargetGpioPadStates: public Response
|
||||
{
|
||||
public:
|
||||
static constexpr ResponseType type = ResponseType::TARGET_GPIO_PAD_STATES;
|
||||
|
||||
Targets::TargetGpioPadDescriptorAndStatePairs gpioPadStates;
|
||||
|
||||
explicit TargetGpioPadStates(const Targets::TargetGpioPadDescriptorAndStatePairs& gpioPadStates)
|
||||
: gpioPadStates(gpioPadStates)
|
||||
{}
|
||||
|
||||
[[nodiscard]] ResponseType getType() const override {
|
||||
return TargetGpioPadStates::type;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "Response.hpp"
|
||||
|
||||
#include "src/Targets/TargetPinDescriptor.hpp"
|
||||
#include "src/Targets/TargetGpioPinState.hpp"
|
||||
|
||||
#include "src/Helpers/Pair.hpp"
|
||||
|
||||
namespace TargetController::Responses
|
||||
{
|
||||
class TargetGpioPinStates: public Response
|
||||
{
|
||||
public:
|
||||
static constexpr ResponseType type = ResponseType::TARGET_GPIO_PIN_STATES;
|
||||
|
||||
Targets::TargetGpioPinDescriptorAndStatePairs gpioPinStates;
|
||||
|
||||
explicit TargetGpioPinStates(const Targets::TargetGpioPinDescriptorAndStatePairs& gpioPinStates)
|
||||
: gpioPinStates(gpioPinStates)
|
||||
{}
|
||||
|
||||
[[nodiscard]] ResponseType getType() const override {
|
||||
return TargetGpioPinStates::type;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user