USRP Hardware Driver and USRP Manual  Version: 3.12.0.HEAD-0-gec786351
UHD and USRP Manual
multi_usrp_clock.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 // Copyright 2018 Ettus Research, a National Instruments Company
4 //
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 
8 #ifndef INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
9 #define INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
10 
11 #include <string>
12 #include <vector>
13 
14 #include <uhd/config.hpp>
15 #include <uhd/device.hpp>
17 #include <uhd/types/sensors.hpp>
18 
19 namespace uhd{ namespace usrp_clock{
20 
46 class UHD_API multi_usrp_clock : boost::noncopyable {
47 public:
48  typedef boost::shared_ptr<multi_usrp_clock> sptr;
49 
50  virtual ~multi_usrp_clock(void) = 0;
51 
57  static sptr make(const device_addr_t &dev_addr);
58 
64  virtual device::sptr get_device(void) = 0;
65 
70  virtual std::string get_pp_string(void) = 0;
71 
73  virtual size_t get_num_boards(void) = 0;
74 
76  virtual uint32_t get_time(size_t board = 0) = 0;
77 
84  virtual sensor_value_t get_sensor(const std::string &name, size_t board = 0) = 0;
85 
91  virtual std::vector<std::string> get_sensor_names(size_t board = 0) = 0;
92 };
93 
94 } //namespace
95 } //namespace
96 
97 #endif /* INCLUDED_UHD_MULTI_USRP_CLOCK_HPP */
boost::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:48
boost::shared_ptr< device > sptr
Definition: device.hpp:31
Definition: build_info.hpp:14
Definition: sensors.hpp:29
Definition: multi_usrp_clock.hpp:46
#define UHD_API
Definition: config.h:63
Definition: device_addr.hpp:38