diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-04-02 14:11:51 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-04-14 10:28:47 -0500 |
commit | e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a (patch) | |
tree | 39f40534969f4d0d59fcd5308f1c09f60a8ced2a /host/lib/usrp/b200 | |
parent | 67918462210cd16c20075c939bdcf06992481a2c (diff) | |
download | uhd-e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a.tar.gz uhd-e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a.tar.bz2 uhd-e33619bcb6b9e483c2c659e8e0f8ddeead73ad3a.zip |
b200: Add a prop tree node usb_version
At /mboards/0/usb_version, we can now read back an int. It's either 2 or
3, depending on what we're using.
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 1da682349..fd8fd6500 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -483,6 +483,7 @@ b200_impl::b200_impl( } // flush ctrl xport _tree->create<double>(mb_path / "link_max_rate") .set((usb_speed == 3) ? B200_MAX_RATE_USB3 : B200_MAX_RATE_USB2); + _tree->create<int>(mb_path / "usb_version").set(usb_speed); //////////////////////////////////////////////////////////////////// // Async task structure |