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/include | |
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/include')
-rw-r--r-- | host/include/uhd/transport/usb_control.hpp | 3 | ||||
-rw-r--r-- | host/include/uhd/transport/usb_zero_copy.hpp | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/host/include/uhd/transport/usb_control.hpp b/host/include/uhd/transport/usb_control.hpp index e6c32f78e..2af4b3bbe 100644 --- a/host/include/uhd/transport/usb_control.hpp +++ b/host/include/uhd/transport/usb_control.hpp @@ -32,8 +32,9 @@ public: * the host to device using the Default Control Pipe. * * \param handle a device handle that uniquely identifies a USB device + * \param interface the USB interface number for the control transport */ - static sptr make(usb_device_handle::sptr handle); + static sptr make(usb_device_handle::sptr handle, const size_t interface); /*! * Submit a USB device request: diff --git a/host/include/uhd/transport/usb_zero_copy.hpp b/host/include/uhd/transport/usb_zero_copy.hpp index dc344ad8b..24b709ec9 100644 --- a/host/include/uhd/transport/usb_zero_copy.hpp +++ b/host/include/uhd/transport/usb_zero_copy.hpp @@ -46,15 +46,19 @@ public: * The underlying implementation may be platform specific. * * \param handle a device handle that uniquely identifying the device + * \param recv_interface an integer specifiying an IN interface number * \param recv_endpoint an integer specifiying an IN endpoint number + * \param send_interface an integer specifiying an OUT interface number * \param send_endpoint an integer specifiying an OUT endpoint number * \param hints optional parameters to pass to the underlying transport * \return a new zero copy usb object */ static sptr make( usb_device_handle::sptr handle, - size_t recv_endpoint, - size_t send_endpoint, + const size_t recv_interface, + const size_t recv_endpoint, + const size_t send_interface, + const size_t send_endpoint, const device_addr_t &hints = device_addr_t() ); |