From c35462adaf8e7ede3da961df92ddbfc78b2c8708 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 19 Sep 2011 16:14:12 -0700 Subject: usb: added interface args to usb abstractions --- host/include/uhd/transport/usb_control.hpp | 3 ++- host/include/uhd/transport/usb_zero_copy.hpp | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'host/include') 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() ); -- cgit v1.2.3