diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-06 22:01:51 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | bf4ff21ce6341f72b72a217d20063878b1b9ecc0 (patch) | |
tree | 99bb7fdf3c78e4e4ab0f10d042ea8a0b57f7f759 /host/include | |
parent | d6d4ac861e61480d3cd8fe7510bda28d8684198c (diff) | |
download | uhd-bf4ff21ce6341f72b72a217d20063878b1b9ecc0.tar.gz uhd-bf4ff21ce6341f72b72a217d20063878b1b9ecc0.tar.bz2 uhd-bf4ff21ce6341f72b72a217d20063878b1b9ecc0.zip |
rfnoc: Added anonymous connections capability to graph
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/rfnoc/graph.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
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 <boost/noncopyable.hpp> #include <uhd/rfnoc/block_id.hpp> +#include <uhd/types/sid.hpp> 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; }; |