aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_transaction.h
diff options
context:
space:
mode:
authorBalint Seeber <balint@ettus.com>2014-03-19 16:19:46 -0700
committerBalint Seeber <balint@ettus.com>2014-03-19 16:19:46 -0700
commitda99b7edc2d1cfedd9c8acf36630d799782ee455 (patch)
tree65ad8bc33dc9cca9a659db09ccc9d561097cf1d7 /host/lib/usrp/common/ad9361_transaction.h
parent416c1ff1841a9a744f9c41816f4156171ad4528f (diff)
downloaduhd-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/common/ad9361_transaction.h')
-rw-r--r--host/lib/usrp/common/ad9361_transaction.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/common/ad9361_transaction.h b/host/lib/usrp/common/ad9361_transaction.h
index 7cbad5908..693f32e41 100644
--- a/host/lib/usrp/common/ad9361_transaction.h
+++ b/host/lib/usrp/common/ad9361_transaction.h
@@ -25,8 +25,8 @@ extern "C" {
#endif
//various constants
-#define AD9361_TRANSACTION_VERSION 0x4
-#define AD9361_TRANSACTION_MAX_ERROR_MSG 40
+#define AD9361_TRANSACTION_VERSION 0x4
+#define AD9361_DISPATCH_PACKET_SIZE 64
//action types
#define AD9361_ACTION_ECHO 0
@@ -100,6 +100,7 @@ typedef struct
} ad9361_transaction_t;
+#define AD9361_TRANSACTION_MAX_ERROR_MSG (AD9361_DISPATCH_PACKET_SIZE - (sizeof(ad9361_transaction_t)-4)-1) // -4 for 'error_msg' alignment padding, -1 for terminating \0
#ifdef __cplusplus
}