diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-17 18:47:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-17 18:47:33 -0700 |
commit | 101afd526de722b6d30381340a7ca8148aa9a6d7 (patch) | |
tree | 25c0dfeafe7bcbe5341cde715e164530a732e01e /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | d9cc352ed14dbab04523f53e21f855b05c30eb3f (diff) | |
download | uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.gz uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.tar.bz2 uhd-101afd526de722b6d30381340a7ca8148aa9a6d7.zip |
Created inline send vrt packer function that also handles fragmentation.
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index 6958fc8ea..f98aa1938 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -122,8 +122,6 @@ private: codec_ctrl::sptr _codec_ctrl; serdes_ctrl::sptr _serdes_ctrl; - uhd::dict<boost::uint32_t, size_t> _tx_stream_id_to_packet_seq; - /******************************************************************* * Deal with the rx and tx packet sizes ******************************************************************/ @@ -139,13 +137,14 @@ private: uhd::transport::vrt::max_header_words32*sizeof(boost::uint32_t) ; size_t max_rx_samps_per_packet(void){ - return _max_rx_bytes_per_packet/(_rx_otw_type.width*2/8); + return _max_rx_bytes_per_packet/_rx_otw_type.get_sample_size(); } size_t max_tx_samps_per_packet(void){ - return _max_tx_bytes_per_packet/(_tx_otw_type.width*2/8); + return _max_tx_bytes_per_packet/_tx_otw_type.get_sample_size(); } vrt_packet_handler::recv_state _packet_handler_recv_state; + vrt_packet_handler::send_state _packet_handler_send_state; uhd::otw_type_t _rx_otw_type, _tx_otw_type; void io_init(void); |