|
| | block_id_t () |
| |
| | block_id_t (const std::string &block_str) |
| |
| | block_id_t (const size_t device_no, const std::string &block_name, const size_t block_ctr=0) |
| |
| std::string | to_string () const |
| | Return a string like this: "0/FFT#1" (includes all components, if set) More...
|
| |
| bool | match (const std::string &block_str) |
| | Check if block_str matches this block. More...
|
| |
| std::string | get () const |
| | Short for to_string() More...
|
| |
| std::string | get_local () const |
| | Like get(), but only returns the local part ("FFT#1") More...
|
| |
| uhd::fs_path | get_tree_root () const |
| | Returns the property tree root for this block (e.g. "/mboards/0/xbar/FFT#1/") More...
|
| |
| size_t | get_device_no () const |
| | Return device number. More...
|
| |
| size_t | get_block_count () const |
| | Return block count. More...
|
| |
| std::string | get_block_name () const |
| | Return block name. More...
|
| |
| bool | set (const std::string &new_name) |
| | Set from string such as "0/FFT#1", "FFT#0", ... More...
|
| |
| bool | set (const size_t device_no, const std::string &block_name, const size_t block_ctr=0) |
| | Sets from individual components, like calling set_device_no(), set_block_name() More...
|
| |
| void | set_device_no (size_t device_no) |
| | Set the device number. More...
|
| |
| bool | set_block_name (const std::string &block_name) |
| | Set the block name. Will return false if invalid block string. More...
|
| |
| void | set_block_count (size_t count) |
| | Set the block count. More...
|
| |
| block_id_t | operator= (const std::string &new_name) |
| | Assignment: Works like set(std::string) More...
|
| |
| bool | operator== (const block_id_t &block_id) const |
| |
| bool | operator!= (const block_id_t &block_id) const |
| |
| bool | operator< (const block_id_t &block_id) const |
| |
| bool | operator> (const block_id_t &block_id) const |
| |
| bool | operator== (const std::string &block_id_str) const |
| | Check if a string matches the entire block ID (not like match()) More...
|
| |
| bool | operator== (const char *block_id_str) const |
| | Check if a string matches the entire block ID (not like match()) More...
|
| |
| block_id_t | operator++ () |
| | Increment the block count ("FFT#1" -> "FFT_2") More...
|
| |
| block_id_t | operator++ (int) |
| | Increment the block count ("FFT#1" -> "FFT_2") More...
|
| |
Identifies an RFNoC block.
An RFNoC block ID is a string such as: 0/FFT#1
The rules for formatting such a string are:
DEVICE/BLOCKNAME#COUNTER
DEVICE: Identifies the device (usually the motherboard index) BLOCKNAME: A name given to this block COUNTER: If is are more than one block with a BLOCKNAME, this counts up.
So, 0/FFT#1 means we're addressing the second block called FFT on the first device.
This class can represent these block IDs.