aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_transaction.h
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-03-27 17:41:13 -0700
committerBen Hilburn <ben.hilburn@ettus.com>2014-03-27 17:41:13 -0700
commitf8753a3d7f3616a49f6c0a1ae661f286a4f20c66 (patch)
treec88bee6725422d1fd4ead1f52cf63c119a3c723c /host/lib/usrp/common/ad9361_transaction.h
parent89d36657a177ba3405ffb7a537a3e2f744a1e7ce (diff)
parentda99b7edc2d1cfedd9c8acf36630d799782ee455 (diff)
downloaduhd-f8753a3d7f3616a49f6c0a1ae661f286a4f20c66.tar.gz
uhd-f8753a3d7f3616a49f6c0a1ae661f286a4f20c66.tar.bz2
uhd-f8753a3d7f3616a49f6c0a1ae661f286a4f20c66.zip
Merge branch adding warning regarding MCR on the B2xx.
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
}