USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
multi_usrp_clock.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 //
4 // SPDX-License-Identifier: GPL-3.0
5 //
6 
7 #ifndef INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
8 #define INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
9 
10 #include <string>
11 #include <vector>
12 
13 #include <uhd/config.hpp>
14 #include <uhd/device.hpp>
16 #include <uhd/types/sensors.hpp>
17 
18 namespace uhd{ namespace usrp_clock{
19 
45 class UHD_API multi_usrp_clock : boost::noncopyable {
46 public:
47  typedef boost::shared_ptr<multi_usrp_clock> sptr;
48 
49  virtual ~multi_usrp_clock(void) = 0;
50 
56  static sptr make(const device_addr_t &dev_addr);
57 
63  virtual device::sptr get_device(void) = 0;
64 
69  virtual std::string get_pp_string(void) = 0;
70 
72  virtual size_t get_num_boards(void) = 0;
73 
75  virtual uint32_t get_time(size_t board = 0) = 0;
76 
83  virtual sensor_value_t get_sensor(const std::string &name, size_t board = 0) = 0;
84 
90  virtual std::vector<std::string> get_sensor_names(size_t board = 0) = 0;
91 };
92 
93 } //namespace
94 } //namespace
95 
96 #endif /* INCLUDED_UHD_MULTI_USRP_CLOCK_HPP */
boost::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:47
boost::shared_ptr< device > sptr
Definition: device.hpp:30
Definition: build_info.hpp:14
Definition: sensors.hpp:28
Definition: multi_usrp_clock.hpp:45
#define UHD_API
Definition: config.h:62
Definition: device_addr.hpp:36