USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
graph.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2016 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_LIBUHD_RFNOC_GRAPH_HPP
9 #define INCLUDED_LIBUHD_RFNOC_GRAPH_HPP
10 
11 #include <uhd/rfnoc/block_id.hpp>
12 #include <uhd/types/sid.hpp>
14 
15 namespace uhd { namespace rfnoc {
16 
18 {
19 public:
20  typedef boost::shared_ptr<uhd::rfnoc::graph> sptr;
21 
31  virtual void connect(const block_id_t& src_block,
32  size_t src_block_port,
33  const block_id_t& dst_block,
34  size_t dst_block_port,
35  const size_t pkt_size = 0) = 0;
36 
41  virtual void connect(const block_id_t& src_block, const block_id_t& dst_block) = 0;
42 
53  virtual void connect_src(const block_id_t& src_block,
54  const size_t src_block_port,
55  const uhd::sid_t dst_sid,
56  const size_t buf_size_dst_bytes,
57  const size_t pkt_size) = 0;
58 
67  virtual void connect_sink(const block_id_t& sink_block,
68  const size_t dst_block_port,
69  const size_t bytes_per_ack) = 0;
70 
71  virtual std::string get_name() const = 0;
72 };
73 
74 }}; // namespace uhd::rfnoc
75 
76 #endif /* INCLUDED_LIBUHD_RFNOC_GRAPH_HPP */
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
virtual std::string get_name() const =0
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
boost::shared_ptr< uhd::rfnoc::graph > sptr
Definition: graph.hpp:20
virtual void connect_sink(const block_id_t &sink_block, const size_t dst_block_port, const size_t bytes_per_ack)=0
Definition: block_id.hpp:39
virtual void connect(const block_id_t &src_block, size_t src_block_port, const block_id_t &dst_block, size_t dst_block_port, const size_t pkt_size=0)=0
Definition: build_info.hpp:13
Represents a stream ID (SID).
Definition: sid.hpp:74
Definition: graph.hpp:17