Help text for target driver passthrough commands

This commit is contained in:
Nav
2024-12-16 21:36:47 +00:00
parent 6873b2f53a
commit 9486cc0163
14 changed files with 119 additions and 2 deletions

View File

@@ -25,6 +25,8 @@
#include "src/TargetController/Commands/EnableProgrammingMode.hpp"
#include "src/TargetController/Commands/DisableProgrammingMode.hpp"
#include "src/TargetController/Commands/Shutdown.hpp"
#include "src/TargetController/Commands/GetTargetPassthroughHelpText.hpp"
#include "src/TargetController/Commands/InvokeTargetPassthroughCommand.hpp"
#include "src/Exceptions/Exception.hpp"
@@ -54,6 +56,7 @@ namespace Services
using TargetController::Commands::EnableProgrammingMode;
using TargetController::Commands::DisableProgrammingMode;
using TargetController::Commands::Shutdown;
using TargetController::Commands::GetTargetPassthroughHelpText;
using TargetController::Commands::InvokeTargetPassthroughCommand;
using Targets::TargetDescriptor;
@@ -346,6 +349,14 @@ namespace Services
);
}
std::string TargetControllerService::getTargetPassthroughHelpText() const {
return this->commandManager.sendCommandAndWaitForResponse(
std::make_unique<GetTargetPassthroughHelpText>(),
this->defaultTimeout,
this->activeAtomicSessionId
)->text;
}
std::optional<Targets::PassthroughResponse> TargetControllerService::invokeTargetPassthroughCommand(
Targets::PassthroughCommand&& command
) const {

View File

@@ -268,6 +268,8 @@ namespace Services
*/
void shutdown() const;
std::string getTargetPassthroughHelpText() const;
std::optional<Targets::PassthroughResponse> invokeTargetPassthroughCommand(
Targets::PassthroughCommand&& command
) const;