USRP Hardware Driver and USRP Manual  Version: 4.4.0.HEAD-0-g5fac246b
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 #pragma once
9 
10 #include <uhd/config.hpp>
11 #include <uhd/device.hpp>
13 #include <uhd/types/sensors.hpp>
14 #include <string>
15 #include <vector>
16 
17 namespace uhd { namespace usrp_clock {
18 
45 {
46 public:
47  typedef std::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 uhd::usrp_clock
sensors.hpp
device_addr.hpp
config.hpp
device.hpp
UHD_API
#define UHD_API
Definition: config.h:87
uhd::device_addr_t
Definition: device_addr.hpp:37
uhd
Definition: build_info.hpp:12
uhd::usrp_clock::multi_usrp_clock
Definition: multi_usrp_clock.hpp:44
uhd::device::sptr
std::shared_ptr< device > sptr
Definition: device.hpp:29
uhd::usrp_clock::multi_usrp_clock::sptr
std::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:47
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
uhd::sensor_value_t
Definition: sensors.hpp:28