USRP Hardware Driver and USRP Manual  Version: 003.008.003-0-g87dfdc3c
UHD and USRP Manual
multi_usrp_clock.hpp
Go to the documentation of this file.
1 //
2 // Copyright 2014 Ettus Research LLC
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 //
17 
18 #ifndef INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
19 #define INCLUDED_UHD_MULTI_USRP_CLOCK_HPP
20 
21 #include <string>
22 #include <vector>
23 
24 #include <uhd/config.hpp>
25 #include <uhd/device.hpp>
27 #include <uhd/types/sensors.hpp>
28 
29 namespace uhd{ namespace usrp_clock{
30 
56 class UHD_API multi_usrp_clock : boost::noncopyable {
57 public:
58  typedef boost::shared_ptr<multi_usrp_clock> sptr;
59 
60  virtual ~multi_usrp_clock(void) = 0;
61 
67  static sptr make(const device_addr_t &dev_addr);
68 
74  virtual device::sptr get_device(void) = 0;
75 
80  virtual std::string get_pp_string(void) = 0;
81 
83  virtual size_t get_num_boards(void) = 0;
84 
86  virtual boost::uint32_t get_time(size_t board = 0) = 0;
87 
94  virtual sensor_value_t get_sensor(const std::string &name, size_t board = 0) = 0;
95 
101  virtual std::vector<std::string> get_sensor_names(size_t board = 0) = 0;
102 };
103 
104 } //namespace
105 } //namespace
106 
107 #endif /* INCLUDED_UHD_MULTI_USRP_CLOCK_HPP */
boost::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:58
boost::shared_ptr< device > sptr
Definition: device.hpp:41
#define UHD_API
Definition: config.hpp:79
Definition: convert.hpp:28
Definition: sensors.hpp:38
Definition: multi_usrp_clock.hpp:56
Definition: device_addr.hpp:47