diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-10-20 12:27:21 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-10-20 12:27:21 -0400 |
commit | 30cd119dba0e2caf48b6bf5016f60dcede62f511 (patch) | |
tree | dfc6d4321938bfb2e32cf9b6ca6af82274ac2625 /gui/stmdsp.hpp | |
parent | f1ad9796741daa8368f4885bbce360522df24367 (diff) |
signal gen with dac channel 2
Diffstat (limited to 'gui/stmdsp.hpp')
-rw-r--r-- | gui/stmdsp.hpp | 7 |
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(); |