Loading...
Searching...
No Matches
wb_iface.hpp
Go to the documentation of this file.
//
// Copyright 2011-2013,2015 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/types/time_spec.hpp>
#include <stdint.h>
#include <memory>
namespace uhd {
class UHD_API wb_iface
{
public:
typedef std::shared_ptr<wb_iface> sptr;
typedef uint32_t wb_addr_type;
virtual ~wb_iface(void);
virtual void poke64(const wb_addr_type addr, const uint64_t data);
virtual uint64_t peek64(const wb_addr_type addr);
virtual void poke32(const wb_addr_type addr, const uint32_t data);
virtual uint32_t peek32(const wb_addr_type addr);
virtual void poke16(const wb_addr_type addr, const uint16_t data);
virtual uint16_t peek16(const wb_addr_type addr);
};
class UHD_API timed_wb_iface : public wb_iface
{
public:
typedef std::shared_ptr<timed_wb_iface> sptr;
virtual time_spec_t get_time(void) = 0;
virtual void set_time(const time_spec_t& t) = 0;
};
} // namespace uhd
uhd::time_spec_t
Definition time_spec.hpp:31
uhd::timed_wb_iface
Definition wb_iface.hpp:69
uhd::timed_wb_iface::set_time
virtual void set_time(const time_spec_t &t)=0
uhd::timed_wb_iface::get_time
virtual time_spec_t get_time(void)=0
uhd::timed_wb_iface::sptr
std::shared_ptr< timed_wb_iface > sptr
Definition wb_iface.hpp:71
uhd::wb_iface
Definition wb_iface.hpp:18
uhd::wb_iface::peek16
virtual uint16_t peek16(const wb_addr_type addr)
uhd::wb_iface::wb_addr_type
uint32_t wb_addr_type
Definition wb_iface.hpp:21
uhd::wb_iface::peek64
virtual uint64_t peek64(const wb_addr_type addr)
uhd::wb_iface::poke64
virtual void poke64(const wb_addr_type addr, const uint64_t data)
uhd::wb_iface::~wb_iface
virtual ~wb_iface(void)
uhd::wb_iface::peek32
virtual uint32_t peek32(const wb_addr_type addr)
uhd::wb_iface::poke32
virtual void poke32(const wb_addr_type addr, const uint32_t data)
uhd::wb_iface::sptr
std::shared_ptr< wb_iface > sptr
Definition wb_iface.hpp:20
uhd::wb_iface::poke16
virtual void poke16(const wb_addr_type addr, const uint16_t data)
UHD_API
#define UHD_API
Definition config.h:87
config.hpp
uhd
Definition build_info.hpp:12
time_spec.hpp