#include <uhd/rfnoc/blockdef.hpp>
Classes | |
class | arg_t |
Describes arguments in a block definition. More... | |
class | port_t |
Describes port options for a block definition. More... | |
Public Types | |
typedef std::shared_ptr< blockdef > | sptr |
typedef std::vector< port_t > | ports_t |
typedef std::vector< arg_t > | args_t |
typedef uhd::dict< std::string, size_t > | registers_t |
Public Member Functions | |
virtual bool | is_block () const =0 |
Returns true if this represents a NoC block. More... | |
virtual bool | is_component () const =0 |
Returns true if this represents a component. More... | |
virtual std::string | get_key () const =0 |
Returns block key (i.e. what is used for the registry) More... | |
virtual std::string | get_name () const =0 |
For blocks, returns the block name. For components, returns it's canonical name. More... | |
virtual uint64_t | noc_id () const =0 |
Return the one NoC that is valid for this block. More... | |
virtual ports_t | get_input_ports ()=0 |
virtual ports_t | get_output_ports ()=0 |
virtual std::vector< size_t > | get_all_port_numbers ()=0 |
Returns the full list of port numbers used. More... | |
virtual args_t | get_args ()=0 |
Returns the args for this block. Checks if args are valid. More... | |
virtual registers_t | get_settings_registers ()=0 |
Returns a list of settings registers by name. More... | |
virtual registers_t | get_readback_registers ()=0 |
Returns a list of readback (user) registers by name. More... | |
Static Public Member Functions | |
static sptr | make_from_noc_id (uint64_t noc_id) |
Reads and stores block definitions for blocks and components.
typedef std::vector<arg_t> uhd::rfnoc::blockdef::args_t |
typedef std::vector<port_t> uhd::rfnoc::blockdef::ports_t |
typedef uhd::dict<std::string, size_t> uhd::rfnoc::blockdef::registers_t |
typedef std::shared_ptr<blockdef> uhd::rfnoc::blockdef::sptr |
|
pure virtual |
Returns the full list of port numbers used.
|
pure virtual |
Returns the args for this block. Checks if args are valid.
|
pure virtual |
|
pure virtual |
Returns block key (i.e. what is used for the registry)
|
pure virtual |
For blocks, returns the block name. For components, returns it's canonical name.
|
pure virtual |
|
pure virtual |
Returns a list of readback (user) registers by name.
|
pure virtual |
Returns a list of settings registers by name.
|
pure virtual |
Returns true if this represents a NoC block.
|
pure virtual |
Returns true if this represents a component.
|
static |
Create a block definition object for a NoC block given a NoC ID. This cannot be used for components.
Note: If nothing is found, returns an empty sptr. Does not throw.
|
pure virtual |
Return the one NoC that is valid for this block.