USRP Hardware Driver and USRP Manual Version: 4.2.0.0
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
17namespace uhd { namespace usrp_clock {
18
45{
46public:
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
Definition: device_addr.hpp:38
std::shared_ptr< device > sptr
Definition: device.hpp:29
Definition: multi_usrp_clock.hpp:45
std::shared_ptr< multi_usrp_clock > sptr
Definition: multi_usrp_clock.hpp:47
virtual std::string get_pp_string(void)=0
virtual size_t get_num_boards(void)=0
Get the number of USRP Clocks in this configuration.
static sptr make(const device_addr_t &dev_addr)
virtual sensor_value_t get_sensor(const std::string &name, size_t board=0)=0
virtual device::sptr get_device(void)=0
virtual uint32_t get_time(size_t board=0)=0
Get time from device.
virtual std::vector< std::string > get_sensor_names(size_t board=0)=0
#define UHD_API
Definition: config.h:87
Definition: build_info.hpp:12
boost::noncopyable noncopyable
Definition: noncopyable.hpp:45
Definition: sensors.hpp:29