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

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

Loading...
Searching...
No Matches
wb_iface.hpp
Go to the documentation of this file.
1//
2// Copyright 2011-2013,2015 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/types/time_spec.hpp>
12#include <stdint.h>
13#include <memory>
14
15namespace uhd {
16
17 class UHD_API wb_iface
18{
19public:
20 typedef std::shared_ptr<wb_iface> sptr;
21 typedef uint32_t wb_addr_type;
22
23 virtual ~wb_iface(void);
24
30 virtual void poke64(const wb_addr_type addr, const uint64_t data);
31
37 virtual uint64_t peek64(const wb_addr_type addr);
38
44 virtual void poke32(const wb_addr_type addr, const uint32_t data);
45
51 virtual uint32_t peek32(const wb_addr_type addr);
52
58 virtual void poke16(const wb_addr_type addr, const uint16_t data);
59
65 virtual uint16_t peek16(const wb_addr_type addr);
66};
67
68 class UHD_API timed_wb_iface : public wb_iface
69{
70public:
71 typedef std::shared_ptr<timed_wb_iface> sptr;
72
77 virtual time_spec_t get_time(void) = 0;
78
83 virtual void set_time(const time_spec_t& t) = 0;
84};
85
86} // 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