#include <uhd/rfnoc/mock_nodes.hpp>
|
enum | forwarding_policy_t {
forwarding_policy_t::ONE_TO_ONE,
forwarding_policy_t::ONE_TO_FAN,
forwarding_policy_t::ONE_TO_ALL_IN,
forwarding_policy_t::ONE_TO_ALL_OUT,
forwarding_policy_t::ONE_TO_ALL,
forwarding_policy_t::DROP,
forwarding_policy_t::USE_MAP
} |
| Types of property/action forwarding for those not defined by the block itself. More...
|
|
using | resolver_fn_t = std::function< void(void)> |
|
using | resolve_callback_t = std::function< void(void)> |
|
using | graph_mutex_callback_t = std::function< std::recursive_mutex &(void)> |
|
using | action_handler_t = std::function< void(const res_source_info &, action_info::sptr)> |
|
using | forwarding_map_t = std::unordered_map< res_source_info, std::vector< res_source_info > > |
|
static const size_t | ANY_PORT = size_t(~0) |
|
using | prop_ptrs_t = std::vector< property_base_t * > |
|
void | register_property (property_base_t *prop, resolve_callback_t &&clean_callback=nullptr) |
|
void | add_property_resolver (prop_ptrs_t &&inputs, prop_ptrs_t &&outputs, resolver_fn_t &&resolver_fn) |
|
void | set_prop_forwarding_policy (forwarding_policy_t policy, const std::string &prop_id="") |
|
void | set_prop_forwarding_map (const forwarding_map_t &map) |
|
template<typename prop_data_t > |
void | set_property (const std::string &id, const prop_data_t &val, const res_source_info &src_info) |
|
template<typename prop_data_t > |
const prop_data_t & | get_property (const std::string &id, const res_source_info &src_info) |
|
void | register_action_handler (const std::string &id, action_handler_t &&handler) |
|
void | set_action_forwarding_policy (forwarding_policy_t policy, const std::string &action_key="") |
|
void | set_action_forwarding_map (const forwarding_map_t &map) |
|
void | post_action (const res_source_info &edge_info, action_info::sptr action) |
|
virtual bool | check_topology (const std::vector< size_t > &connected_inputs, const std::vector< size_t > &connected_outputs) |
|
virtual void | shutdown () |
|
static dirtifier_t | ALWAYS_DIRTY |
| A dirtifyer object, useful for properties that always need updating. More...
|
|
Mock DDC node
- Single channel
- Does simple coercion of decimation
- Keeps output and input rates consistent with decimation
◆ mock_ddc_node_t()
uhd::rfnoc::test::mock_ddc_node_t::mock_ddc_node_t |
( |
| ) |
|
|
inline |
◆ coerce_decim()
static int uhd::rfnoc::test::mock_ddc_node_t::coerce_decim |
( |
const int |
requested_decim | ) |
|
|
inlinestatic |
◆ get_num_input_ports()
size_t uhd::rfnoc::test::mock_ddc_node_t::get_num_input_ports |
( |
| ) |
const |
|
inlineoverridevirtual |
Return the number of input ports for this block.
This function needs to be overridden.
- Returns
- noc_id The number of ports
Implements uhd::rfnoc::node_t.
◆ get_num_output_ports()
size_t uhd::rfnoc::test::mock_ddc_node_t::get_num_output_ports |
( |
| ) |
const |
|
inlineoverridevirtual |
Return the number of output ports for this block.
This function needs to be overridden.
- Returns
- noc_id The number of ports
Implements uhd::rfnoc::node_t.
◆ get_unique_id()
std::string uhd::rfnoc::test::mock_ddc_node_t::get_unique_id |
( |
| ) |
const |
|
inlineoverridevirtual |
Return a unique identifier string for this node. In every RFNoC graph,.
Reimplemented from uhd::rfnoc::node_t.
◆ _decim
◆ _samp_rate_in
property_t<double> uhd::rfnoc::test::mock_ddc_node_t::_samp_rate_in |
◆ _samp_rate_out
property_t<double> uhd::rfnoc::test::mock_ddc_node_t::_samp_rate_out |
The documentation for this class was generated from the following file: