diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-08 10:57:16 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-08 10:57:16 -0700 |
commit | d743784919b362d93e6408f05bdef6e543e3fc7e (patch) | |
tree | 41bd275d4cb06c5d56a1858c3023ce4498381042 /host/lib/usrp/usrp2/io_impl.cpp | |
parent | b66a74ff1f629af714e26040b410d472c08be522 (diff) | |
download | uhd-d743784919b362d93e6408f05bdef6e543e3fc7e.tar.gz uhd-d743784919b362d93e6408f05bdef6e543e3fc7e.tar.bz2 uhd-d743784919b362d93e6408f05bdef6e543e3fc7e.zip |
converted timespec to use nanoseconds for fractional part
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index a58e32619..eb6b5f7b9 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -15,9 +15,10 @@ // along with this program. If not, see <http://www.gnu.org/licenses/>. // -#include <complex> -#include <boost/format.hpp> #include "usrp2_impl.hpp" +#include <boost/format.hpp> +#include <complex> +#include <iostream> using namespace uhd; using namespace uhd::usrp; @@ -144,7 +145,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; @@ -196,7 +198,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 |