From a64b86aa545d2d11d397dbaa48bf3edf7dba4ddb Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 2 Oct 2020 11:52:28 -0400 Subject: test process_data speed measurement --- gui/stmdsp.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'gui/stmdsp.cpp') diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp index 5fca940..06f0100 100644 --- a/gui/stmdsp.cpp +++ b/gui/stmdsp.cpp @@ -46,6 +46,21 @@ namespace stmdsp m_serial.write("R"); } + void device::continuous_start_measure() { + if (connected()) + m_serial.write("M"); + } + + uint32_t device::continuous_start_get_measurement() { + uint32_t count = 0; + if (connected()) { + m_serial.write("m"); + m_serial.read(reinterpret_cast(&count), sizeof(uint32_t)); + } + + return count; + } + std::vector device::continuous_read() { if (connected()) { m_serial.write("s"); -- cgit v1.2.3