diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-13 14:28:52 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-13 14:28:52 -0700 |
commit | c6042a0b317a6f74d2b74b259f14431f5c8246d4 (patch) | |
tree | 3297836dc8ebeb52f9882e01f1d4abc922d436ee /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | 4dfb7b8cabef3097f822ac52f346cd6021cb35da (diff) | |
download | uhd-c6042a0b317a6f74d2b74b259f14431f5c8246d4.tar.gz uhd-c6042a0b317a6f74d2b74b259f14431f5c8246d4.tar.bz2 uhd-c6042a0b317a6f74d2b74b259f14431f5c8246d4.zip |
usrp2: added docs on flow control ricer args and using usrp2 with a switch
implemented flow control param hints in the mboard impl
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 1d9f25019..e271f839c 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -138,7 +138,7 @@ static device::sptr usrp2_make(const device_addr_t &device_addr){ //create the usrp2 implementation guts return device::sptr( - new usrp2_impl(ctrl_transports, data_transports) + new usrp2_impl(ctrl_transports, data_transports, device_addr) ); } @@ -151,7 +151,8 @@ UHD_STATIC_BLOCK(register_usrp2_device){ **********************************************************************/ usrp2_impl::usrp2_impl( std::vector<udp_simple::sptr> ctrl_transports, - std::vector<zero_copy_if::sptr> data_transports + std::vector<zero_copy_if::sptr> data_transports, + const device_addr_t &flow_control_hints ): _data_transports(data_transports) { @@ -172,7 +173,8 @@ usrp2_impl::usrp2_impl( _mboards.push_back(usrp2_mboard_impl::sptr(new usrp2_mboard_impl( i, ctrl_transports[i], this->get_max_recv_samps_per_packet(), - _data_transports[i]->get_send_frame_size() + _data_transports[i]->get_send_frame_size(), + flow_control_hints ))); //use an empty name when there is only one mboard std::string name = (ctrl_transports.size() > 1)? boost::lexical_cast<std::string>(i) : ""; |