diff options
Diffstat (limited to 'gui/stmdsp.hpp')
-rw-r--r-- | gui/stmdsp.hpp | 6 |
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; }; |