diff options
author | Josh Blum <josh@joshknows.com> | 2010-05-17 13:22:26 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-05-17 13:22:26 -0700 |
commit | d9cc352ed14dbab04523f53e21f855b05c30eb3f (patch) | |
tree | 605ee36093cfd1838628f3890b83447949bf306d /host/lib/usrp/usrp2/usrp2_impl.hpp | |
parent | a6f7b02ae69eb4b0755f2805922eeb06d977c1ee (diff) | |
download | uhd-d9cc352ed14dbab04523f53e21f855b05c30eb3f.tar.gz uhd-d9cc352ed14dbab04523f53e21f855b05c30eb3f.tar.bz2 uhd-d9cc352ed14dbab04523f53e21f855b05c30eb3f.zip |
work on generic packet handler (got rx working)
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.hpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.hpp b/host/lib/usrp/usrp2/usrp2_impl.hpp index e2d37e512..6958fc8ea 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.hpp +++ b/host/lib/usrp/usrp2/usrp2_impl.hpp @@ -33,6 +33,7 @@ #include <uhd/transport/vrt.hpp> #include <uhd/transport/udp_zero_copy.hpp> #include <uhd/usrp/dboard_manager.hpp> +#include "../../transport/vrt_packet_handler.hpp" /*! * Make a usrp2 dboard interface. @@ -121,10 +122,7 @@ private: codec_ctrl::sptr _codec_ctrl; serdes_ctrl::sptr _serdes_ctrl; - //the raw io interface (samples are in the usrp2 native format) - void recv_raw(uhd::rx_metadata_t &); uhd::dict<boost::uint32_t, size_t> _tx_stream_id_to_packet_seq; - uhd::dict<boost::uint32_t, size_t> _rx_stream_id_to_packet_seq; /******************************************************************* * Deal with the rx and tx packet sizes @@ -147,9 +145,7 @@ private: return _max_tx_bytes_per_packet/(_tx_otw_type.width*2/8); } - uhd::transport::managed_recv_buffer::sptr _rx_smart_buff; - boost::asio::const_buffer _rx_copy_buff; - size_t _fragment_offset_in_samps; + vrt_packet_handler::recv_state _packet_handler_recv_state; uhd::otw_type_t _rx_otw_type, _tx_otw_type; void io_init(void); |