aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_base.cpp
diff options
context:
space:
mode:
authorThomas Tsou <ttsou@vt.edu>2010-08-27 23:46:16 -0700
committerThomas Tsou <ttsou@vt.edu>2010-08-28 00:18:46 -0700
commitad55e25aeb273fb7278c6d5175cd0df01fc90924 (patch)
tree0af72be0bfa69df5a8bae07b5e2c337bec707ef0 /host/lib/transport/libusb1_base.cpp
parent2c85b17215fbe5fd2f80a8c6d0c47504a631c09b (diff)
downloaduhd-ad55e25aeb273fb7278c6d5175cd0df01fc90924.tar.gz
uhd-ad55e25aeb273fb7278c6d5175cd0df01fc90924.tar.bz2
uhd-ad55e25aeb273fb7278c6d5175cd0df01fc90924.zip
usrp1: Additional comments on libusb transport implemenation
Diffstat (limited to 'host/lib/transport/libusb1_base.cpp')
-rw-r--r--host/lib/transport/libusb1_base.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/host/lib/transport/libusb1_base.cpp b/host/lib/transport/libusb1_base.cpp
index 493d4eff3..92dcd969f 100644
--- a/host/lib/transport/libusb1_base.cpp
+++ b/host/lib/transport/libusb1_base.cpp
@@ -21,6 +21,15 @@
using namespace uhd::transport;
+/**********************************************************
+ * Helper Methods
+ **********************************************************/
+/*
+ * Check for FSF device
+ * Compare the device's descriptor Vendor ID
+ * \param dev pointer to libusb_device
+ * \return true if Vendor ID matches 0xfffe
+ */
bool check_fsf_device(libusb_device *dev)
{
libusb_device_descriptor desc;
@@ -32,6 +41,9 @@ bool check_fsf_device(libusb_device *dev)
return desc.idVendor == 0xfffe;
}
+/**********************************************************
+ * libusb namespace
+ **********************************************************/
void libusb::init(libusb_context **ctx, int debug_level)
{
if (libusb_init(ctx) < 0)