USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
uhd::rfnoc::graph Class Referenceabstract

#include <uhd/rfnoc/graph.hpp>

Inheritance diagram for uhd::rfnoc::graph:

Public Types

typedef boost::shared_ptr< uhd::rfnoc::graphsptr
 

Public Member Functions

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
 
virtual void connect (const block_id_t &src_block, const block_id_t &dst_block)=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
 
virtual void connect_sink (const block_id_t &sink_block, const size_t dst_block_port, const size_t bytes_per_ack)=0
 
virtual std::string get_name () const =0
 

Member Typedef Documentation

◆ sptr

typedef boost::shared_ptr<uhd::rfnoc::graph> uhd::rfnoc::graph::sptr

Member Function Documentation

◆ connect() [1/2]

virtual void uhd::rfnoc::graph::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 
)
pure virtual

Connect a RFNOC block with block ID src_block to another with block ID dst_block.

This will:

  • Check if this connection is valid (IO signatures, see if types match)
  • Configure the flow control for the blocks
  • Configure SID for the upstream block
  • Register the upstream block in the downstream block

◆ connect() [2/2]

virtual void uhd::rfnoc::graph::connect ( const block_id_t src_block,
const block_id_t dst_block 
)
pure virtual

Shorthand for connect().

Using default ports for both source and destination.

◆ connect_sink()

virtual void uhd::rfnoc::graph::connect_sink ( const block_id_t sink_block,
const size_t  dst_block_port,
const size_t  bytes_per_ack 
)
pure virtual

Anonymous connection

Danger, danger. You use this, you know what you're doing.

Parameters
sink_blockSink block ID
dst_block_portDestination (sink) block port
bytes_per_ackFlow control frequency in bytes

◆ connect_src()

virtual void uhd::rfnoc::graph::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 
)
pure virtual

Anonymous connection.

Danger, danger. You use this, you know what you're doing.

Parameters
src_blockSource block ID
src_block_portSource block port
dst_sidSID to route traffic to
buf_size_dst_bytesDestination window buffer in bytes
pkt_sizeHint what the packet size over this link will be

◆ get_name()

virtual std::string uhd::rfnoc::graph::get_name ( ) const
pure virtual

The documentation for this class was generated from the following file: