aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-12 15:19:25 -0700
committerJosh Blum <josh@joshknows.com>2010-04-12 15:19:25 -0700
commitb87d9afe82e962718f5f5d514abf9d79b9603b98 (patch)
treecaa53a69eaa9847994737748c1385a2dfd3153f8 /host/lib/usrp/usrp2/io_impl.cpp
parent24ca9fbd0784c7c53af6ad4f9035e8d43e888290 (diff)
parentfa96b25b99dbd19ac0689cab9bcab84063287ad3 (diff)
downloaduhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.tar.gz
uhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.tar.bz2
uhd-b87d9afe82e962718f5f5d514abf9d79b9603b98.zip
Merge branch 'rfx' of git@ettus.sourcerepo.com:ettus/uhd into io
Conflicts: host/lib/usrp/usrp2/io_impl.cpp
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 62aca49ee..a760cbe3d 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -19,6 +19,7 @@
#include <uhd/transport/convert_types.hpp>
#include <boost/format.hpp>
#include <complex>
+#include <iostream>
using namespace uhd;
using namespace uhd::usrp;
@@ -70,7 +71,8 @@ void usrp2_impl::recv_raw(rx_metadata_t &metadata){
num_header_words32_out, //output
num_payload_words32_out, //output
num_packet_words32, //input
- packet_count_out //output
+ packet_count_out, //output
+ get_master_clock_freq()
);
}catch(const std::exception &e){
std::cerr << "bad vrt header: " << e.what() << std::endl;
@@ -124,7 +126,8 @@ size_t usrp2_impl::send(
num_header_words32, //output
num_samps, //input
num_packet_words32, //output
- packet_count //input
+ packet_count, //input
+ get_master_clock_freq()
);
boost::uint32_t *items = tx_mem + num_header_words32; //offset for data