diff options
author | Josh Blum <josh@joshknows.com> | 2011-04-14 19:49:17 +0100 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-04-16 17:57:12 +0100 |
commit | 76fb9508a9cb4cb45ef48af4bd3afb4ac507813b (patch) | |
tree | 5f90c24447f1a62c651c3bce2ea101e408f63c5f /host/lib/usrp/usrp_e100/usrp_e100_impl.cpp | |
parent | 546b5b882902a065c667b45d0529978340457786 (diff) | |
download | uhd-76fb9508a9cb4cb45ef48af4bd3afb4ac507813b.tar.gz uhd-76fb9508a9cb4cb45ef48af4bd3afb4ac507813b.tar.bz2 uhd-76fb9508a9cb4cb45ef48af4bd3afb4ac507813b.zip |
usrp_e100: added recv/send_frame_size xport args
Diffstat (limited to 'host/lib/usrp/usrp_e100/usrp_e100_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp_e100/usrp_e100_impl.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp b/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp index a8fbe5d69..fe839c409 100644 --- a/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp +++ b/host/lib/usrp/usrp_e100/usrp_e100_impl.cpp @@ -138,7 +138,7 @@ static device::sptr usrp_e100_make(const device_addr_t &device_addr){ ) % USRP_E_FPGA_COMPAT_NUM % fpga_compat_num)); } - return device::sptr(new usrp_e100_impl(iface)); + return device::sptr(new usrp_e100_impl(iface, device_addr)); } UHD_STATIC_BLOCK(register_usrp_e100_device){ @@ -148,7 +148,15 @@ UHD_STATIC_BLOCK(register_usrp_e100_device){ /*********************************************************************** * Structors **********************************************************************/ -usrp_e100_impl::usrp_e100_impl(usrp_e100_iface::sptr iface): _iface(iface){ +usrp_e100_impl::usrp_e100_impl( + usrp_e100_iface::sptr iface, + const device_addr_t &device_addr +): + _iface(iface), + _data_xport(usrp_e100_make_mmap_zero_copy(_iface)), + _recv_frame_size(std::min(_data_xport->get_recv_frame_size(), size_t(device_addr.cast<double>("recv_frame_size", 1e9)))), + _send_frame_size(std::min(_data_xport->get_send_frame_size(), size_t(device_addr.cast<double>("send_frame_size", 1e9)))) +{ //setup interfaces into hardware _clock_ctrl = usrp_e100_clock_ctrl::make(_iface); |