aboutsummaryrefslogtreecommitdiffstats
path: root/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-30 14:19:26 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-10-30 14:19:26 +0100
commit0bd1e4e64984cb51e65d6f0e8db92f44934eff59 (patch)
tree438d5937a0eba1de38cf19505257bee1e52d609b /OutputUHD.cpp
parent3ade194073d5d20ace17986c148800bf2a3554ef (diff)
downloadodr-dpd-0bd1e4e64984cb51e65d6f0e8db92f44934eff59.tar.gz
odr-dpd-0bd1e4e64984cb51e65d6f0e8db92f44934eff59.tar.bz2
odr-dpd-0bd1e4e64984cb51e65d6f0e8db92f44934eff59.zip
Add working ZMQ input
Diffstat (limited to 'OutputUHD.cpp')
-rw-r--r--OutputUHD.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/OutputUHD.cpp b/OutputUHD.cpp
index c337262..a56112d 100644
--- a/OutputUHD.cpp
+++ b/OutputUHD.cpp
@@ -37,7 +37,7 @@
using namespace std;
-void OutputUHD::Init(double txgain)
+OutputUHD::OutputUHD(double txgain)
{
m_txgain = txgain;
@@ -72,7 +72,7 @@ void OutputUHD::Init(double txgain)
myTxStream = m_usrp->get_tx_stream(stream_args);
}
-size_t OutputUHD::Transmit(std::vector<complexf> samples, size_t sizeIn, double *first_sample_time)
+size_t OutputUHD::Transmit(const complexf *samples, size_t sizeIn, double *first_sample_time)
{
const double tx_timeout = 20.0;
@@ -91,7 +91,7 @@ size_t OutputUHD::Transmit(std::vector<complexf> samples, size_t sizeIn, double
num_acc_samps += num_tx_samps;
- md.time_spec += uhd::time_spec_t(0, num_acc_samps/m_samplerate);
+ md.time_spec += uhd::time_spec_t(0, num_tx_samps/m_samplerate);
}
return num_acc_samps;