diff options
author | Balint Seeber <balint@ettus.com> | 2014-03-19 16:19:46 -0700 |
---|---|---|
committer | Balint Seeber <balint@ettus.com> | 2014-03-19 16:19:46 -0700 |
commit | da99b7edc2d1cfedd9c8acf36630d799782ee455 (patch) | |
tree | 65ad8bc33dc9cca9a659db09ccc9d561097cf1d7 /host/lib/usrp/b200 | |
parent | 416c1ff1841a9a744f9c41816f4156171ad4528f (diff) | |
download | uhd-da99b7edc2d1cfedd9c8acf36630d799782ee455.tar.gz uhd-da99b7edc2d1cfedd9c8acf36630d799782ee455.tar.bz2 uhd-da99b7edc2d1cfedd9c8acf36630d799782ee455.zip |
b200: changed ad9361 ctrl/transaction magic number 64 to macro, as it is in the FX3 FW
Diffstat (limited to 'host/lib/usrp/b200')
-rw-r--r-- | host/lib/usrp/b200/b200_iface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/usrp/b200/b200_iface.cpp b/host/lib/usrp/b200/b200_iface.cpp index 2ed4eb9ae..07f518169 100644 --- a/host/lib/usrp/b200/b200_iface.cpp +++ b/host/lib/usrp/b200/b200_iface.cpp @@ -299,9 +299,9 @@ 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; + void ad9361_transact(const unsigned char in_buff[AD9361_DISPATCH_PACKET_SIZE], unsigned char out_buff[AD9361_DISPATCH_PACKET_SIZE]) { + const int bytes_to_write = AD9361_DISPATCH_PACKET_SIZE; + const int bytes_to_read = AD9361_DISPATCH_PACKET_SIZE; const size_t read_retries = 5; int ret = fx3_control_write(B200_VREQ_AD9361_CTRL_WRITE, 0x00, 0x00, (unsigned char *)in_buff, bytes_to_write); |