diff options
author | Josh Blum <josh@joshknows.com> | 2011-09-19 16:14:12 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-09-19 16:14:12 -0700 |
commit | c35462adaf8e7ede3da961df92ddbfc78b2c8708 (patch) | |
tree | e84ac9c6e5a5281e2106efd2cd4cc515c944dd19 /host/lib/usrp/usrp1/usrp1_impl.cpp | |
parent | b20c9fc836a0f32666739dcd143692149eb66c68 (diff) | |
download | uhd-c35462adaf8e7ede3da961df92ddbfc78b2c8708.tar.gz uhd-c35462adaf8e7ede3da961df92ddbfc78b2c8708.tar.bz2 uhd-c35462adaf8e7ede3da961df92ddbfc78b2c8708.zip |
usb: added interface args to usb abstractions
Diffstat (limited to 'host/lib/usrp/usrp1/usrp1_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp1/usrp1_impl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.cpp b/host/lib/usrp/usrp1/usrp1_impl.cpp index b2da16837..dbf7a5092 100644 --- a/host/lib/usrp/usrp1/usrp1_impl.cpp +++ b/host/lib/usrp/usrp1/usrp1_impl.cpp @@ -87,7 +87,7 @@ static device_addrs_t usrp1_find(const device_addr_t &hint) UHD_LOG << "USRP1 firmware image: " << usrp1_fw_image << std::endl; usb_control::sptr control; - try{control = usb_control::make(handle);} + try{control = usb_control::make(handle, 0);} catch(const uhd::exception &){continue;} //ignore claimed fx2_ctrl::make(control)->usrp_load_firmware(usrp1_fw_image); @@ -99,7 +99,7 @@ static device_addrs_t usrp1_find(const device_addr_t &hint) BOOST_FOREACH(usb_device_handle::sptr handle, usb_device_handle::get_device_list(vid, pid)) { usb_control::sptr control; - try{control = usb_control::make(handle);} + try{control = usb_control::make(handle, 0);} catch(const uhd::exception &){continue;} //ignore claimed fx2_ctrl::sptr fx2_ctrl = fx2_ctrl::make(control); @@ -161,13 +161,13 @@ usrp1_impl::usrp1_impl(const device_addr_t &device_addr){ // Create controller objects //////////////////////////////////////////////////////////////////// //usb_control::sptr usb_ctrl = usb_control::make(handle); - _fx2_ctrl = fx2_ctrl::make(usb_control::make(handle)); + _fx2_ctrl = fx2_ctrl::make(usb_control::make(handle, 0)); _fx2_ctrl->usrp_load_fpga(usrp1_fpga_image); _fx2_ctrl->usrp_init(); _data_transport = usb_zero_copy::make( handle, // identifier - 6, // IN endpoint - 2, // OUT endpoint + 2, 6, // IN interface, endpoint + 1, 2, // OUT interface, endpoint device_addr // param hints ); _iface = usrp1_iface::make(_fx2_ctrl); |