diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-07 13:23:07 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-06-07 13:23:07 -0700 |
commit | 0f4eff49c820a8d2ccb38e191604eb86c81b30af (patch) | |
tree | c669bbfcd10e0911bcb4dcf10dbab1964d3af859 /host/lib/usrp | |
parent | 330bb71edbefbaa5a2e6afd1e7d183fb15a0817c (diff) | |
download | uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.tar.gz uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.tar.bz2 uhd-0f4eff49c820a8d2ccb38e191604eb86c81b30af.zip |
Replaced the vrt pack and unpack with a pack and unpack for big endian and a pack and unpack for little endian.
The vrt handler code was templatized to take the relevant packer/unpacker as an argument.
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/usrp2/io_impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp index 1c7113197..6cb2a735b 100644 --- a/host/lib/usrp/usrp2/io_impl.cpp +++ b/host/lib/usrp/usrp2/io_impl.cpp @@ -139,6 +139,7 @@ size_t usrp2_impl::send( buff, metadata, send_mode, //buffer to empty and samples metadata io_type, _tx_otw_type, //input and output types to convert get_master_clock_freq(), //master clock tick rate + uhd::transport::vrt::pack_be, boost::bind(&zero_copy_if::get_send_buff, _data_transport), get_max_send_samps_per_packet() ); @@ -158,6 +159,7 @@ size_t usrp2_impl::recv( buff, metadata, recv_mode, //buffer to fill and samples metadata io_type, _rx_otw_type, //input and output types to convert get_master_clock_freq(), //master clock tick rate + uhd::transport::vrt::unpack_be, boost::bind(&usrp2_impl::io_impl::get_recv_buff, _io_impl) ); } |