USRP Hardware Driver and USRP Manual  Version: 3.15.0.HEAD-0-g6563c537
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 <uhd/config.hpp>
12 #include <uhd/device.hpp>
14 #include <uhd/types/sensors.hpp>
15 #include <string>
16 #include <vector>
17 
18 namespace uhd { namespace usrp_clock {
19 
46 {
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 uhd::usrp_clock
95 
96 #endif /* INCLUDED_UHD_MULTI_USRP_CLOCK_HPP */
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
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:13
Definition: sensors.hpp:29
Definition: multi_usrp_clock.hpp:45
#define UHD_API
Definition: config.h:68
Definition: device_addr.hpp:38