#include <uhd/usrp_clock/multi_usrp_clock.hpp>
Public Types | |
typedef boost::shared_ptr< multi_usrp_clock > | sptr |
Public Member Functions | |
virtual | ~multi_usrp_clock (void)=0 |
virtual device::sptr | get_device (void)=0 |
virtual std::string | get_pp_string (void)=0 |
virtual size_t | get_num_boards (void)=0 |
Get the number of USRP Clocks in this configuration. More... | |
virtual uint32_t | get_time (size_t board=0)=0 |
Get time from device. More... | |
virtual sensor_value_t | get_sensor (const std::string &name, size_t board=0)=0 |
virtual std::vector< std::string > | get_sensor_names (size_t board=0)=0 |
Static Public Member Functions | |
static sptr | make (const device_addr_t &dev_addr) |
The Multi-USRP-Clock device class:
This class facilitates ease-of-use for must use-case scenarios when using clock devices with UHD. This class can be used with a single clock device or with multiple clock devices connected to the same host.
To create a multi_usrp_clock out of a single USRP Clock:
device_addr_t dev; dev["addr"] = 192.168.10.3; multi_usrp_clock::sptr clock = multi_usrp_clock::make(dev);
To create a multi_usrp_clock out of multiple clock devices:
device_addr_t dev; dev["addr0"] = 192.168.10.3; dev["addr1"] = 192.168.10.4; multi_usrp_clock::sptr clock = multi_usrp_clock::make(dev);
typedef boost::shared_ptr<multi_usrp_clock> uhd::usrp_clock::multi_usrp_clock::sptr |
|
pure virtual |
|
pure virtual |
Return the underlying device. This allows direct access to the EEPROM and sensors.
|
pure virtual |
Get the number of USRP Clocks in this configuration.
|
pure virtual |
Get a printable summary for this USRP Clock configuration.
|
pure virtual |
Get a USRP Clock sensor value.
name | the name of the sensor |
board | the board index (0 to M-1) |
|
pure virtual |
Get a list of possible USRP Clock sensor names.
board | the board index (0 to M-1) |
|
pure virtual |
Get time from device.
|
static |
Make a new Multi-USRP-Clock from the given device address.
dev_addr | the device address |