aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/stmdsp.hpp')
-rw-r--r--gui/stmdsp.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/stmdsp.hpp b/gui/stmdsp.hpp
index 2d336c5..a9b8b7e 100644
--- a/gui/stmdsp.hpp
+++ b/gui/stmdsp.hpp
@@ -24,6 +24,7 @@ namespace stmdsp
};
using adcsample_t = uint16_t;
+ using dacsample_t = uint16_t;
class device
{
@@ -40,12 +41,18 @@ namespace stmdsp
//std::vector<adcsample_t> sample(unsigned long int count = 1);
+ void continuous_set_buffer_size(unsigned int size);
void continuous_start();
void continuous_start_measure();
uint32_t continuous_start_get_measurement();
std::vector<adcsample_t> continuous_read();
void continuous_stop();
+ void siggen_upload(dacsample_t *buffer, unsigned int size);
+ void siggen_start();
+ void siggen_stop();
+
+ // buffer is ELF binary
void upload_filter(unsigned char *buffer, size_t size);
void unload_filter();