#include <uhd/utils/soft_register.hpp>
Public Types | |
typedef std::shared_ptr< soft_regmap_db_t > | sptr |
Public Types inherited from uhd::soft_regmap_accessor_t | |
typedef std::shared_ptr< soft_regmap_accessor_t > | sptr |
Public Member Functions | |
soft_regmap_db_t () | |
soft_regmap_db_t (const std::string &name) | |
const std::string & | get_name () const override |
void | add (soft_regmap_t ®map) |
void | add (soft_regmap_db_t &db) |
soft_register_base & | lookup (const std::string &path) const override |
std::vector< std::string > | enumerate () const override |
Public Member Functions inherited from uhd::soft_regmap_accessor_t | |
virtual | ~soft_regmap_accessor_t () |
A regmap database is a collection of regmaps or other regmap databases this allows for efficient encapsulation for multiple registers in a hierarchical fashion. A regmap_db does not manage storage for regmaps. It is simply a wrapper.
typedef std::shared_ptr<soft_regmap_db_t> uhd::soft_regmap_db_t::sptr |
|
inline |
Use the default constructor if this is the top-level DB
|
inline |
Use this constructor if this is a nested DB
|
inline |
Add a regmap to this map with an identifier "name" and visibility
|
inline |
Add a level of regmap_db to this map with an identifier "name" and visibility
|
inlineoverridevirtual |
Enumerate the paths of all registers that this DB can access
Implements uhd::soft_regmap_accessor_t.
|
inlineoverridevirtual |
Get the name of this register map
Implements uhd::soft_regmap_accessor_t.
|
inlineoverridevirtual |
Lookup a register by path. A path is defined as a string of "/" separated tokens that scope a register. The leaf (last token) is the name of the register The token immediately before the leaf is the name of the register map If a nested regmap_db is used, the token before the regmap is the db name. For every nested db, the path has an additional token. For example: radio0/spi_regmap/spi_control_reg
Implements uhd::soft_regmap_accessor_t.