USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
UHD and USRP Manual
uhd::rfnoc::rate_node_ctrl Class Reference

#include <uhd/rfnoc/rate_node_ctrl.hpp>

Inheritance diagram for uhd::rfnoc::rate_node_ctrl:
uhd::rfnoc::node_ctrl_base uhd::rfnoc::ddc_block_ctrl uhd::rfnoc::duc_block_ctrl uhd::rfnoc::radio_ctrl

Public Types

typedef boost::shared_ptr< rate_node_ctrlsptr
 
- Public Types inherited from uhd::rfnoc::node_ctrl_base
typedef boost::shared_ptr< node_ctrl_basesptr
 
typedef boost::weak_ptr< node_ctrl_basewptr
 
typedef std::map< size_t, wptrnode_map_t
 
typedef std::pair< size_t, wptrnode_map_pair_t
 

Public Member Functions

virtual double get_input_samp_rate (size_t port=ANY_PORT)
 
virtual double get_output_samp_rate (size_t port=ANY_PORT)
 
- Public Member Functions inherited from uhd::rfnoc::node_ctrl_base
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 disconnect ()
 
void disconnect_output_port (const size_t output_port)
 
void disconnect_input_port (const size_t input_port)
 
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 (bool active_only=false)
 
template<typename T >
UHD_INLINE std::vector< boost::shared_ptr< T > > find_upstream_node (bool active_only=false)
 
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 > >())
 

Static Public Attributes

static const double RATE_UNDEFINED
 This value is used by rate nodes that don't actually set a rate themselves. More...
 

Additional Inherited Members

- Protected Member Functions inherited from uhd::rfnoc::node_ctrl_base
 node_ctrl_base (void)
 
virtual ~node_ctrl_base ()
 
virtual void _register_downstream_node (node_ctrl_base::sptr downstream_node, size_t port)
 
virtual void _register_upstream_node (node_ctrl_base::sptr upstream_node, size_t port)
 
- Protected Attributes inherited from uhd::rfnoc::node_ctrl_base
uhd::device_addr_t _args
 Stores default arguments. More...
 
node_map_t _upstream_nodes
 List of upstream nodes. More...
 
node_map_t _downstream_nodes
 List of downstream nodes. More...
 
size_t _num_input_ports
 
size_t _num_output_ports
 
std::map< size_t, bool > _rx_streamer_active
 
std::map< size_t, bool > _tx_streamer_active
 

Member Typedef Documentation

◆ sptr

Member Function Documentation

◆ get_input_samp_rate()

virtual double uhd::rfnoc::rate_node_ctrl::get_input_samp_rate ( size_t  port = ANY_PORT)
virtual

Returns the sampling rate this block expects at its input.

A radio will simply return the sampling rate it is set to. A decimating FIR filter will ask downstream for the input sampling rate and then return that value multiplied by the decimation factor.

◆ get_output_samp_rate()

virtual double uhd::rfnoc::rate_node_ctrl::get_output_samp_rate ( size_t  port = ANY_PORT)
virtual

Member Data Documentation

◆ RATE_UNDEFINED

const double uhd::rfnoc::rate_node_ctrl::RATE_UNDEFINED
static

This value is used by rate nodes that don't actually set a rate themselves.


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