#include <uhd/rfnoc/source_node_ctrl.hpp>
|
virtual void | issue_stream_cmd (const uhd::stream_cmd_t &stream_cmd, const size_t chan=0)=0 |
|
size_t | connect_downstream (node_ctrl_base::sptr downstream_node, size_t port=ANY_PORT, const uhd::device_addr_t &args=uhd::device_addr_t()) |
|
virtual void | set_rx_streamer (bool active, const size_t port) |
|
virtual std::string | unique_id () const |
| Returns a unique string that identifies this block. More...
|
|
virtual void | clear () |
|
node_map_t | list_downstream_nodes () |
|
node_map_t | list_upstream_nodes () |
|
void | set_downstream_port (const size_t this_port, const size_t remote_port) |
|
size_t | get_downstream_port (const size_t this_port) |
|
void | set_upstream_port (const size_t this_port, const size_t remote_port) |
|
size_t | get_upstream_port (const size_t this_port) |
|
template<typename T > |
UHD_INLINE std::vector< boost::shared_ptr< T > > | find_downstream_node () |
|
template<typename T > |
UHD_INLINE std::vector< boost::shared_ptr< T > > | find_upstream_node () |
|
template<typename T , typename value_type > |
UHD_INLINE value_type | find_downstream_unique_property (boost::function< value_type(boost::shared_ptr< T > node, size_t port)> get_property, value_type null_value, const std::set< boost::shared_ptr< T > > &exclude_nodes=std::set< boost::shared_ptr< T > >()) |
|
template<typename T , typename value_type > |
UHD_INLINE value_type | find_upstream_unique_property (boost::function< value_type(boost::shared_ptr< T > node, size_t port)> get_property, value_type null_value, const std::set< boost::shared_ptr< T > > &exclude_nodes=std::set< boost::shared_ptr< T > >()) |
|
◆ node_map_pair_t
◆ node_map_t
◆ sptr
◆ _request_output_port()
virtual size_t uhd::rfnoc::source_node_ctrl::_request_output_port |
( |
const size_t |
suggested_port, |
|
|
const uhd::device_addr_t & |
args |
|
) |
| const |
|
protectedvirtual |
◆ connect_downstream()
Connect another node downstream of this node.
Note: If additional settings are required to make this connection work, e.g. configure flow control, these need to be done separately.
If the requested connection is not possible, this function will throw.
downstream_node
Pointer to the node class to connect port
Suggested port number on this block to connect the downstream block to. args
Any arguments that can be useful for determining the port number.
- Returns
- The actual port number used.
◆ issue_stream_cmd()
virtual void uhd::rfnoc::source_node_ctrl::issue_stream_cmd |
( |
const uhd::stream_cmd_t & |
stream_cmd, |
|
|
const size_t |
chan = 0 |
|
) |
| |
|
pure virtual |
◆ set_rx_streamer()
virtual void uhd::rfnoc::source_node_ctrl::set_rx_streamer |
( |
bool |
active, |
|
|
const size_t |
port |
|
) |
| |
|
virtual |
Call this function to notify a node about its streamer activity.
When active
is set to true, this means this block is now part of an active rx streamer chain. Conversely, when set to false, this means the node has been removed from an rx streamer chain.
◆ _rx_streamer_active
std::map<size_t, bool> uhd::rfnoc::source_node_ctrl::_rx_streamer_active |
|
protected |
For every output port, store rx streamer activity.
If _rx_streamer_active[0] == true, this means that an active rx streamer is operating on port 0. If it is false, or if the entry does not exist, there is no streamer. Values are toggled by set_rx_streamer().
The documentation for this class was generated from the following file: