aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/Dexter.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2023-06-06 12:10:39 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2023-06-06 12:10:39 +0200
commit150b75b244602c789934f1a5094f33aa7da3c09a (patch)
tree3b276fab085883d5513ceff4b973b8923632daf0 /src/output/Dexter.h
parent1d07999d373b0fb0b67de576aa4d7b10308b4150 (diff)
downloaddabmod-150b75b244602c789934f1a5094f33aa7da3c09a.tar.gz
dabmod-150b75b244602c789934f1a5094f33aa7da3c09a.tar.bz2
dabmod-150b75b244602c789934f1a5094f33aa7da3c09a.zip
DEXTER: Add pacontrol interface
Diffstat (limited to 'src/output/Dexter.h')
-rw-r--r--src/output/Dexter.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/output/Dexter.h b/src/output/Dexter.h
index d4f425f..57b9798 100644
--- a/src/output/Dexter.h
+++ b/src/output/Dexter.h
@@ -34,8 +34,14 @@ DESCRIPTION:
# include <config.h>
#endif
-#ifdef HAVE_DEXTER
+#if defined(HAVE_DEXTER)
+
+#if !defined(HAVE_ZEROMQ)
+#error "ZeroMQ is mandatory for DEXTER"
+#endif
+
#include "iio.h"
+#include "zmq.hpp"
#include <string>
#include <memory>
@@ -120,6 +126,12 @@ class Dexter : public Output::SDRDevice
size_t num_buffers_pushed = 0;
+ /* Communication with pacontrol */
+ zmq::context_t m_zmq_context;
+ zmq::socket_t m_zmq_sock;
+ std::string m_pacontrol_endpoint;
+
+ /* Clock State */
DexterClockState m_clock_state = DexterClockState::Startup;
// Only valid when m_clock_state is not Startup