diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-06-06 12:10:39 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2023-06-06 12:10:39 +0200 |
commit | 150b75b244602c789934f1a5094f33aa7da3c09a (patch) | |
tree | 3b276fab085883d5513ceff4b973b8923632daf0 /src/output/Dexter.h | |
parent | 1d07999d373b0fb0b67de576aa4d7b10308b4150 (diff) | |
download | dabmod-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.h | 14 |
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 |