aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_ctor_args.hpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2016-02-19 17:42:44 -0800
committerAshish Chaudhari <ashish@ettus.com>2016-02-26 14:23:40 -0800
commit6db9ac785ca5f62e58cf792f0525b37b16a87bdf (patch)
treeb64f0fb76253531b3dc88c22a795e0f79b556df0 /host/lib/usrp/dboard_ctor_args.hpp
parentc03506fedd75a7fbad242d2be06123a187e66277 (diff)
downloaduhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.tar.gz
uhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.tar.bz2
uhd-6db9ac785ca5f62e58cf792f0525b37b16a87bdf.zip
dboards: Added ability to register a per-dboard container class
- The typical dboard classes are actually "subdev" classes i.e. there is one instance per dboard subdev (front-end). This makes it hard to implement shared functionality between multiple front-ends. - This changes adds the ability to create a container class which is created per group of subdevs and each subdev gets a pointer to the container class for cross linkage.
Diffstat (limited to 'host/lib/usrp/dboard_ctor_args.hpp')
-rw-r--r--host/lib/usrp/dboard_ctor_args.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_ctor_args.hpp b/host/lib/usrp/dboard_ctor_args.hpp
index 99c071ff8..c8e4006d1 100644
--- a/host/lib/usrp/dboard_ctor_args.hpp
+++ b/host/lib/usrp/dboard_ctor_args.hpp
@@ -26,11 +26,17 @@
namespace uhd{ namespace usrp{
- struct dboard_ctor_args_t{
+ class dboard_ctor_args_t {
+ public:
std::string sd_name;
dboard_iface::sptr db_iface;
dboard_id_t rx_id, tx_id;
property_tree::sptr rx_subtree, tx_subtree;
+ dboard_base::sptr rx_container, tx_container;
+
+ static const dboard_ctor_args_t& cast(dboard_base::ctor_args_t args) {
+ return *static_cast<dboard_ctor_args_t*>(args);
+ }
};
}} //namespace