diff options
author | Balint Seeber <balint@ettus.com> | 2014-02-13 15:26:54 -0800 |
---|---|---|
committer | Balint Seeber <balint@ettus.com> | 2014-02-14 15:40:30 -0800 |
commit | 383128e2c9c3539e1bc8de7d13a894f50fc9719a (patch) | |
tree | 9b2a5c5603e2c781bcae6e3edbd4d8408cae951a /host/lib/usrp/b200/b200_iface.cpp | |
parent | 7fef199d194c9a63b3312845979fa353f90f4d23 (diff) | |
download | uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.tar.gz uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.tar.bz2 uhd-383128e2c9c3539e1bc8de7d13a894f50fc9719a.zip |
b200: throw exception when master clock rate (tick rate) is requested to be > max for certain # of channels (i.e. restrict to 30.72MHz for MIMO)
Also includes sscanf type fix in b200_impl and longer timeout for AD9361 read
Diffstat (limited to 'host/lib/usrp/b200/b200_iface.cpp')
-rw-r--r-- | host/lib/usrp/b200/b200_iface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/usrp/b200/b200_iface.cpp b/host/lib/usrp/b200/b200_iface.cpp index 5d799bf01..630ce9ac6 100644 --- a/host/lib/usrp/b200/b200_iface.cpp +++ b/host/lib/usrp/b200/b200_iface.cpp @@ -301,7 +301,7 @@ public: void ad9361_transact(const unsigned char in_buff[64], unsigned char out_buff[64]) { const int bytes_to_write = 64; const int bytes_to_read = 64; - const size_t read_retries = 30; + const size_t read_retries = 10; int ret = fx3_control_write(B200_VREQ_AD9361_CTRL_WRITE, 0x00, 0x00, (unsigned char *)in_buff, bytes_to_write); if (ret < 0) @@ -311,7 +311,7 @@ public: for (size_t i = 0; i < read_retries; i++) { - ret = fx3_control_read(B200_VREQ_AD9361_CTRL_READ, 0x00, 0x00, out_buff, bytes_to_read, 1000); + ret = fx3_control_read(B200_VREQ_AD9361_CTRL_READ, 0x00, 0x00, out_buff, bytes_to_read, 3000); if (ret < 0) throw uhd::io_error((boost::format("Failed to read AD9361 (%d: %s)") % ret % libusb_error_name(ret)).str()); |