USRP Hardware Driver and USRP Manual: multi_usrp_clock.hpp Source File

| USRP Hardware Driver and USRP Manual Version: 4.9.0.makepkg-0-g9ec1f582 UHD and USRP Manual |

Loading...
Searching...
No Matches
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>
12#include <uhd/types/device_addr.hpp>
13#include <uhd/types/sensors.hpp>
14#include <string>
15#include <vector>
16
17 namespace uhd { namespace usrp_clock {
18
44 class UHD_API multi_usrp_clock : uhd::noncopyable
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
uhd::device_addr_t
Definition device_addr.hpp:39
uhd::device::sptr
std::shared_ptr< device > sptr
Definition device.hpp:29
uhd::usrp_clock::multi_usrp_clock
Definition multi_usrp_clock.hpp:45
uhd::usrp_clock::multi_usrp_clock::sptr
std::shared_ptr< multi_usrp_clock > sptr
Definition multi_usrp_clock.hpp:47
uhd::usrp_clock::multi_usrp_clock::get_pp_string
virtual std::string get_pp_string(void)=0
uhd::usrp_clock::multi_usrp_clock::get_num_boards
virtual size_t get_num_boards(void)=0
Get the number of USRP Clocks in this configuration.
uhd::usrp_clock::multi_usrp_clock::make
static sptr make(const device_addr_t &dev_addr)
uhd::usrp_clock::multi_usrp_clock::get_sensor
virtual sensor_value_t get_sensor(const std::string &name, size_t board=0)=0
uhd::usrp_clock::multi_usrp_clock::get_device
virtual device::sptr get_device(void)=0
uhd::usrp_clock::multi_usrp_clock::~multi_usrp_clock
virtual ~multi_usrp_clock(void)=0
uhd::usrp_clock::multi_usrp_clock::get_time
virtual uint32_t get_time(size_t board=0)=0
Get time from device.
uhd::usrp_clock::multi_usrp_clock::get_sensor_names
virtual std::vector< std::string > get_sensor_names(size_t board=0)=0
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
device.hpp
device_addr.hpp
uhd::usrp_clock
Definition multi_usrp_clock.hpp:17
uhd
Definition build_info.hpp:12
uhd::noncopyable
boost::noncopyable noncopyable
Definition noncopyable.hpp:45
sensors.hpp
uhd::sensor_value_t
Definition sensors.hpp:29