GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
uhd_types.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2020 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11/* Wrappers for UHD types that exposed in the API of gr-uhd blocks */
12#ifndef INCLUDED_GR_UHD_TYPES_H
13#define INCLUDED_GR_UHD_TYPES_H
14
15#include <uhd/stream.hpp>
16#include <uhd/types/filters.hpp>
17#include <uhd/types/ranges.hpp>
18#include <uhd/types/sensors.hpp>
19#include <uhd/types/stream_cmd.hpp>
20#include <uhd/types/tune_request.hpp>
21#include <uhd/types/tune_result.hpp>
22#include <uhd/types/wb_iface.hpp>
23
24namespace gr {
25namespace uhd {
26
27// typedef device_addr_t ::uhd::device_addr_t
28class stream_args_t : public ::uhd::stream_args_t
29{
30
31public:
32 stream_args_t(const std::string& cpu = "",
33 const std::string& otw = "",
34 const ::uhd::device_addr_t& args = ::uhd::device_addr_t(),
35 const std::vector<size_t> channels = std::vector<size_t>())
36 : ::uhd::stream_args_t(cpu, otw)
37 {
38 this->args = args;
39 this->channels = channels;
40 }
41};
42} // namespace uhd
43} // namespace gr
44
45
46#endif
Definition: uhd_types.h:29
stream_args_t(const std::string &cpu="", const std::string &otw="", const ::uhd::device_addr_t &args=::uhd::device_addr_t(), const std::vector< size_t > channels=std::vector< size_t >())
Definition: uhd_types.h:32
GNU Radio logging wrapper.
Definition: basic_block.h:29