USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
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 
52  virtual void connect_src(const block_id_t& src_block,
53  const size_t src_block_port,
54  const uhd::sid_t dst_sid,
55  const size_t buf_size_dst_bytes,
56  const size_t pkt_size_) = 0;
57 
66  virtual void connect_sink(const block_id_t& sink_block,
67  const size_t dst_block_port,
68  const size_t bytes_per_ack) = 0;
69 
70  virtual std::string get_name() const = 0;
71 };
72 
73 }}; // namespace uhd::rfnoc
74 
75 #endif /* INCLUDED_LIBUHD_RFNOC_GRAPH_HPP */
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
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
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