aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-03-20 16:08:45 -0700
committerMartin Braun <martin.braun@ettus.com>2019-09-04 20:28:04 -0700
commit46c0e95a86f06a0ebed51afe10af53f2faa31c07 (patch)
tree227aaad109b35c6b68e95530ca699935a2cde523 /host/lib/include/uhdlib
parent94592641f0647563bc4d2163805d5284a6796273 (diff)
downloaduhd-46c0e95a86f06a0ebed51afe10af53f2faa31c07.tar.gz
uhd-46c0e95a86f06a0ebed51afe10af53f2faa31c07.tar.bz2
uhd-46c0e95a86f06a0ebed51afe10af53f2faa31c07.zip
rfnoc: Read cmd FIFO size from blocks & configure ctrl_iface
This requires noc_shell compat number 6.0. It will allow sending as many command packets, but no more, than there is space. Updated FPGA images for devices: - X310/X300 - N300/N310/N320 - E310/E320
Diffstat (limited to 'host/lib/include/uhdlib')
-rw-r--r--host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp b/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp
index deb58f14c..29b2e73c0 100644
--- a/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp
+++ b/host/lib/include/uhdlib/rfnoc/ctrl_iface.hpp
@@ -59,6 +59,17 @@ public:
const bool readback=false,
const uint64_t timestamp=0
) = 0;
+
+ /*! Set the depth of the command FIFO size
+ *
+ * Note: This is not safe to call during operations. Call this during
+ * initialization.
+ *
+ * \param num_lines The number of lines of depth in the command FIFO. The
+ * function will calculate the number of packets that will
+ * fit into the command FIFO.
+ */
+ virtual void set_cmd_fifo_size(const size_t num_lines) = 0;
};
}} /* namespace uhd::rfnoc */