diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-10-26 18:05:31 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-11-09 14:59:14 -0800 |
commit | 646f05237d68f0e79a8ea8de52c2dd9f6e38e752 (patch) | |
tree | ef81f0e0f511f19d6163cce701402e065a89ee64 /host/lib/usrp/device3/device3_io_impl.cpp | |
parent | 9b852f5f243e5cf68662b7152b5fa331a83e55fb (diff) | |
download | uhd-646f05237d68f0e79a8ea8de52c2dd9f6e38e752.tar.gz uhd-646f05237d68f0e79a8ea8de52c2dd9f6e38e752.tar.bz2 uhd-646f05237d68f0e79a8ea8de52c2dd9f6e38e752.zip |
rfnoc: Moved transport endianness as property into both_xports_t
Reviewed-By: Michael West <michael.west@ettus.com>
Diffstat (limited to 'host/lib/usrp/device3/device3_io_impl.cpp')
-rw-r--r-- | host/lib/usrp/device3/device3_io_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/usrp/device3/device3_io_impl.cpp b/host/lib/usrp/device3/device3_io_impl.cpp index 4ec14c43b..a490ae5b4 100644 --- a/host/lib/usrp/device3/device3_io_impl.cpp +++ b/host/lib/usrp/device3/device3_io_impl.cpp @@ -571,7 +571,7 @@ rx_streamer::sptr device3_impl::get_rx_stream(const stream_args_t &args_) //init some streamer stuff std::string conv_endianness; - if (get_transport_endianness(mb_index) == ENDIANNESS_BIG) { + if (xport.endianness == ENDIANNESS_BIG) { my_streamer->set_vrt_unpacker(&vrt::chdr::if_hdr_unpack_be); conv_endianness = "be"; } else { @@ -624,7 +624,7 @@ rx_streamer::sptr device3_impl::get_rx_stream(const stream_args_t &args_) &handle_rx_flowctrl, xport.send_sid, xport.send, - get_transport_endianness(mb_index), + xport.endianness, fc_cache, _1 ), @@ -761,7 +761,7 @@ tx_streamer::sptr device3_impl::get_tx_stream(const uhd::stream_args_t &args_) //init some streamer stuff std::string conv_endianness; - if (get_transport_endianness(mb_index) == ENDIANNESS_BIG) { + if (xport.endianness == ENDIANNESS_BIG) { my_streamer->set_vrt_packer(&vrt::chdr::if_hdr_pack_be); conv_endianness = "be"; } else { @@ -809,7 +809,7 @@ tx_streamer::sptr device3_impl::get_tx_stream(const uhd::stream_args_t &args_) &handle_tx_async_msgs, fc_cache, xport.recv, - get_transport_endianness(mb_index), + xport.endianness, tick_rate_retriever ) ); |