From bf4ff21ce6341f72b72a217d20063878b1b9ecc0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 6 Jun 2017 22:01:51 -0700 Subject: rfnoc: Added anonymous connections capability to graph --- host/include/uhd/rfnoc/graph.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/graph.hpp b/host/include/uhd/rfnoc/graph.hpp index 30d6bf87e..cd7ddacc0 100644 --- a/host/include/uhd/rfnoc/graph.hpp +++ b/host/include/uhd/rfnoc/graph.hpp @@ -9,6 +9,7 @@ #include #include +#include namespace uhd { namespace rfnoc { @@ -42,6 +43,37 @@ public: const block_id_t &dst_block ) = 0; + /*! Anonymous connection. + * + * Danger, danger. You use this, you know what you're doing. + * + * \param src_block Source block ID + * \param src_block_port Source block port + * \param dst_sid SID to route traffic to + * \param buf_size_dst_bytes Destination window buffer in bytes + */ + virtual void connect_src( + const block_id_t &src_block, + const size_t src_block_port, + const uhd::sid_t dst_sid, + const size_t buf_size_dst_bytes, + const size_t pkt_size_ + ) = 0; + + /*! Anonymous connection + * + * Danger, danger. You use this, you know what you're doing. + * + * \param sink_block Sink block ID + * \param dst_block_port Destination (sink) block port + * \param pkts_per_ack Flow controlf frequency in packets + */ + virtual void connect_sink( + const block_id_t &sink_block, + const size_t dst_block_port, + const size_t pkts_per_ack + ) = 0; + virtual std::string get_name() const = 0; }; -- cgit v1.2.3