Loading...
Searching...
No Matches
multi_usrp_clock.hpp
Go to the documentation of this file.
//
// Copyright 2014 Ettus Research LLC
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once
#include <uhd/config.hpp>
#include <uhd/device.hpp>
#include <uhd/types/device_addr.hpp>
#include <uhd/types/sensors.hpp>
#include <string>
#include <vector>
namespace uhd { namespace usrp_clock {
class UHD_API multi_usrp_clock : uhd::noncopyable
{
public:
typedef std::shared_ptr<multi_usrp_clock> sptr;
virtual ~multi_usrp_clock(void) = 0;
static sptr make(const device_addr_t& dev_addr);
virtual device::sptr get_device(void) = 0;
virtual std::string get_pp_string(void) = 0;
virtual size_t get_num_boards(void) = 0;
virtual uint32_t get_time(size_t board = 0) = 0;
virtual sensor_value_t get_sensor(const std::string& name, size_t board = 0) = 0;
virtual std::vector<std::string> get_sensor_names(size_t board = 0) = 0;
};
}} // 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