Refactored Insight GUI to accommodate the many changes made to Bloom's internals
Also lots of tidying.
This commit is contained in:
21
src/Insight/InsightWorker/Tasks/ReadTargetGpioPadStates.cpp
Normal file
21
src/Insight/InsightWorker/Tasks/ReadTargetGpioPadStates.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#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));
|
||||
}
|
||||
Reference in New Issue
Block a user