USRP Hardware Driver and USRP Manual  Version: 3.15.0.0-2+b1
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 */
sensors.hpp
device_addr.hpp
config.hpp
device.hpp
UHD_API
#define UHD_API
Definition: config.h:68
uhd::device_addr_t
Definition: device_addr.hpp:38
uhd::usrp_clock::multi_usrp_clock::sptr
boost::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:48
uhd
Definition: build_info.hpp:13
uhd::usrp_clock::multi_usrp_clock
Definition: multi_usrp_clock.hpp:45
uhd::noncopyable
boost::noncopyable noncopyable
Definition: noncopyable.hpp:46
uhd::sensor_value_t
Definition: sensors.hpp:29
uhd::device::sptr
boost::shared_ptr< device > sptr
Definition: device.hpp:31