UHD  003.001.002
Public Types | Public Member Functions | Static Public Member Functions | List of all members
uhd::usrp::dboard_manager Class Referenceabstract

#include <dboard_manager.hpp>

Inheritance diagram for uhd::usrp::dboard_manager:

Public Types

typedef boost::shared_ptr< dboard_managersptr
 
typedef dboard_base::sptr(* dboard_ctor_t) (dboard_base::ctor_args_t)
 

Public Member Functions

virtual prop_names_t get_rx_subdev_names (void)=0
 
virtual prop_names_t get_tx_subdev_names (void)=0
 
virtual wax::obj get_rx_subdev (const std::string &subdev_name)=0
 
virtual wax::obj get_tx_subdev (const std::string &subdev_name)=0
 

Static Public Member Functions

static void register_dboard (const dboard_id_t &dboard_id, dboard_ctor_t dboard_ctor, const std::string &name, const prop_names_t &subdev_names=prop_names_t(1, "0"))
 
static void register_dboard (const dboard_id_t &rx_dboard_id, const dboard_id_t &tx_dboard_id, dboard_ctor_t dboard_ctor, const std::string &name, const prop_names_t &subdev_names=prop_names_t(1, "0"))
 
static sptr make (dboard_id_t rx_dboard_id, dboard_id_t tx_dboard_id, dboard_iface::sptr iface)
 

Detailed Description

A daughter board subdev dboard_manager class. Create subdev instances for each subdev on a dboard. Provide wax::obj access to the subdevs inside.

Member Typedef Documentation

◆ dboard_ctor_t

typedef dboard_base::sptr(* uhd::usrp::dboard_manager::dboard_ctor_t) (dboard_base::ctor_args_t)

◆ sptr

typedef boost::shared_ptr<dboard_manager> uhd::usrp::dboard_manager::sptr

Member Function Documentation

◆ get_rx_subdev()

virtual wax::obj uhd::usrp::dboard_manager::get_rx_subdev ( const std::string &  subdev_name)
pure virtual

◆ get_rx_subdev_names()

virtual prop_names_t uhd::usrp::dboard_manager::get_rx_subdev_names ( void  )
pure virtual

◆ get_tx_subdev()

virtual wax::obj uhd::usrp::dboard_manager::get_tx_subdev ( const std::string &  subdev_name)
pure virtual

◆ get_tx_subdev_names()

virtual prop_names_t uhd::usrp::dboard_manager::get_tx_subdev_names ( void  )
pure virtual

◆ make()

static sptr uhd::usrp::dboard_manager::make ( dboard_id_t  rx_dboard_id,
dboard_id_t  tx_dboard_id,
dboard_iface::sptr  iface 
)
static

Make a new dboard manager.

Parameters
rx_dboard_idthe id of the rx dboard
tx_dboard_idthe id of the tx dboard
ifacethe custom dboard interface
Returns
an sptr to the new dboard manager

◆ register_dboard() [1/2]

static void uhd::usrp::dboard_manager::register_dboard ( const dboard_id_t dboard_id,
dboard_ctor_t  dboard_ctor,
const std::string &  name,
const prop_names_t subdev_names = prop_names_t(1, "0") 
)
static

Register a rx or tx dboard into the system. For single subdevice boards, omit subdev_names.

Parameters
dboard_idthe dboard id (rx or tx)
dboard_ctorthe dboard constructor function pointer
namethe canonical name for the dboard represented
subdev_namesthe names of the subdevs on this dboard

◆ register_dboard() [2/2]

static void uhd::usrp::dboard_manager::register_dboard ( const dboard_id_t rx_dboard_id,
const dboard_id_t tx_dboard_id,
dboard_ctor_t  dboard_ctor,
const std::string &  name,
const prop_names_t subdev_names = prop_names_t(1, "0") 
)
static

Register an xcvr dboard into the system. For single subdevice boards, omit subdev_names.

Parameters
rx_dboard_idthe rx unit dboard id
tx_dboard_idthe tx unit dboard id
dboard_ctorthe dboard constructor function pointer
namethe canonical name for the dboard represented
subdev_namesthe names of the subdevs on this dboard

The documentation for this class was generated from the following file: