GNU Radio's IIO Package
pluto_sink.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2017 Analog Devices Inc.
4 * Author: Paul Cercueil <paul.cercueil@analog.com>
5 *
6 * This is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
9 * any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street,
19 * Boston, MA 02110-1301, USA.
20 */
21
22
23#ifndef INCLUDED_IIO_PLUTO_SINK_H
24#define INCLUDED_IIO_PLUTO_SINK_H
25
26#include <iio/api.h>
27#include <gnuradio/hier_block2.h>
28
29namespace gr {
30 namespace iio {
31 /*!
32 * \brief Sink block for the PlutoSDR
33 * \ingroup iio
34 *
35 */
36 class IIO_API pluto_sink : virtual public gr::hier_block2
37 {
38 public:
39 typedef std::shared_ptr<pluto_sink> sptr;
40
41 static sptr make(const std::string &uri,
42 unsigned long long frequency,
43 unsigned long samplerate,
44 unsigned long bandwidth,
45 unsigned long buffer_size,
46 bool cyclic,
47 double attenuation,
48 const char *filter = "",
49 bool auto_filter = true);
50
51 virtual void set_params(unsigned long long frequency,
52 unsigned long samplerate,
53 unsigned long bandwidth,
54 double attenuation,
55 const char *filter = "",
56 bool auto_filter = true) = 0;
57 };
58
59 } // namespace iio
60} // namespace gr
61
62#endif /* INCLUDED_IIO_PLUTO_SINK_H */
#define IIO_API
Definition api.h:19
Sink block for the PlutoSDR.
Definition pluto_sink.h:37
static sptr make(const std::string &uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, unsigned long buffer_size, bool cyclic, double attenuation, const char *filter="", bool auto_filter=true)
std::shared_ptr< pluto_sink > sptr
Definition pluto_sink.h:39
virtual void set_params(unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, double attenuation, const char *filter="", bool auto_filter=true)=0
Definition attr_sink.h:30
Definition attr_sink.h:29