Files
BloomPatched/src/Insight/InsightWorker/Tasks/ReadTargetGpioPadStates.cpp
2024-12-24 18:27:59 +00:00

22 lines
632 B
C++

#include "ReadTargetGpioPadStates.hpp"
using Services::TargetControllerService;
ReadTargetGpioPadStates::ReadTargetGpioPadStates(const Targets::TargetPadDescriptors& padDescriptors)
: padDescriptors(padDescriptors)
{}
QString ReadTargetGpioPadStates::brief() const {
return "Reading target pin states";
}
TaskGroups ReadTargetGpioPadStates::taskGroups() const {
return {
TaskGroup::USES_TARGET_CONTROLLER,
};
}
void ReadTargetGpioPadStates::run(TargetControllerService& targetControllerService) {
emit this->targetGpioPadStatesRead(targetControllerService.getGpioPadStates(this->padDescriptors));
}