aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/rfnoc
diff options
context:
space:
mode:
authorCiro Nishiguchi <ciro.nishiguchi@ni.com>2019-08-13 16:50:47 -0500
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:42 -0800
commit77a5358dd03669366a162d67f9ea11b2056c78b6 (patch)
treea80b97c5629c900c69a45fe695597f1b774ce91d /host/lib/include/uhdlib/rfnoc
parentf5e726b0ad83743c173231d9ac019c917a51be07 (diff)
downloaduhd-77a5358dd03669366a162d67f9ea11b2056c78b6.tar.gz
uhd-77a5358dd03669366a162d67f9ea11b2056c78b6.tar.bz2
uhd-77a5358dd03669366a162d67f9ea11b2056c78b6.zip
rfnoc: Add MTU property to RX streamer
Diffstat (limited to 'host/lib/include/uhdlib/rfnoc')
-rw-r--r--host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp b/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp
index d39d88f43..1afe5db80 100644
--- a/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp
+++ b/host/lib/include/uhdlib/rfnoc/rfnoc_rx_streamer.hpp
@@ -76,6 +76,15 @@ public:
bool check_topology(const std::vector<size_t>& connected_inputs,
const std::vector<size_t>& connected_outputs);
+ /*! Connects a channel to the streamer port
+ *
+ * Overrides method in rx_streamer_impl.
+ *
+ * \param channel The streamer channel to which to connect
+ * \param xport The transport for the specified channel
+ */
+ void connect_channel(const size_t channel, chdr_rx_data_xport::uptr xport);
+
private:
void _register_props(const size_t chan, const std::string& otw_format);
@@ -91,6 +100,7 @@ private:
std::vector<property_t<double>> _samp_rate_in;
std::vector<property_t<double>> _tick_rate_in;
std::vector<property_t<std::string>> _type_in;
+ std::vector<property_t<size_t>> _mtu_in;
// Streamer unique ID
const std::string _unique_id;