aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_impl.hpp
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-04-10 13:05:30 -0700
committerBen Hilburn <ben.hilburn@ettus.com>2014-04-10 13:05:30 -0700
commitd3459ad697b4c38354731eb6e6fc1075b194d5ea (patch)
treecdc8fb0fbf8cee90d3b3d279b31b0372f1f04a57 /host/lib/usrp/x300/x300_impl.hpp
parentbab808d883366123a944ce047a0b88a1b3ce1117 (diff)
parentdfd019c5b76446830031c0c2352f0558dd48c210 (diff)
downloaduhd-d3459ad697b4c38354731eb6e6fc1075b194d5ea.tar.gz
uhd-d3459ad697b4c38354731eb6e6fc1075b194d5ea.tar.bz2
uhd-d3459ad697b4c38354731eb6e6fc1075b194d5ea.zip
Merge branch 'martin/warn_sampling_rate'
Warn users if they request a sample rate greater than the interface bandwidth.
Diffstat (limited to 'host/lib/usrp/x300/x300_impl.hpp')
-rw-r--r--host/lib/usrp/x300/x300_impl.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/x300/x300_impl.hpp b/host/lib/usrp/x300/x300_impl.hpp
index 692427f31..4b3efc845 100644
--- a/host/lib/usrp/x300/x300_impl.hpp
+++ b/host/lib/usrp/x300/x300_impl.hpp
@@ -85,6 +85,10 @@ static const size_t X300_RX_MAX_HDR_LEN = // bytes
+ sizeof(uhd::transport::vrt::if_packet_info_t().sid) // SID
+ sizeof(uhd::transport::vrt::if_packet_info_t().tsf); // Timestamp
+static const size_t X300_MAX_RATE_PCIE = 800000000; // bytes/s
+static const size_t X300_MAX_RATE_10GIGE = 800000000; // bytes/s
+static const size_t X300_MAX_RATE_1GIGE = 100000000; // bytes/s
+
#define X300_RADIO_DEST_PREFIX_TX 0
#define X300_RADIO_DEST_PREFIX_CTRL 1
#define X300_RADIO_DEST_PREFIX_RX 2