aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-08-22 10:31:45 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-08-22 10:31:45 -0400
commitb3eccbc1b9f0194d9f71345113acdc4518b991c1 (patch)
tree67e77c98ac03776e43347f2bd7e9daa5e6510013 /gui/stmdsp.hpp
parent989f4038c6d2a3e5bbee04fa25df181810af621e (diff)
working: continuous signal passthrough
Diffstat (limited to 'gui/stmdsp.hpp')
-rw-r--r--gui/stmdsp.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/stmdsp.hpp b/gui/stmdsp.hpp
index 2148fa1..c179955 100644
--- a/gui/stmdsp.hpp
+++ b/gui/stmdsp.hpp
@@ -35,11 +35,15 @@ namespace stmdsp
}
bool connected() {
- return m_serial.isOpen() && (m_serial.write("i"), m_serial.read(6) == "stmdsp");
+ return m_serial.isOpen();
}
std::vector<adcsample_t> sample(unsigned long int count = 1);
+ void continuous_start();
+ std::vector<adcsample_t> continuous_read();
+ void continuous_stop();
+
private:
serial::Serial m_serial;
};