GNU Radio's IIO Package
pluto_source.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_SOURCE_H
24#define INCLUDED_IIO_PLUTO_SOURCE_H
25
26#include <iio/api.h>
27#include <gnuradio/hier_block2.h>
28
29namespace gr {
30 namespace iio {
31 /*!
32 * \brief Source block for the PlutoSDR
33 * \ingroup iio
34 *
35 */
36 class IIO_API pluto_source : virtual public gr::hier_block2
37 {
38 public:
39 typedef std::shared_ptr<pluto_source> 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 quadrature, bool rfdc,
47 bool bbdc,
48 const char *gain,
49 double gain_value,
50 const char *filter = "",
51 bool auto_filter = true);
52
53 virtual void set_params(unsigned long long frequency,
54 unsigned long samplerate,
55 unsigned long bandwidth,
56 bool quadrature, bool rfdc, bool bbdc,
57 const char *gain, double gain_value,
58 const char *filter = "",
59 bool auto_filter = true) = 0;
60 };
61 } // namespace iio
62} // namespace gr
63
64#endif /* INCLUDED_IIO_PLUTO_SOURCE_H */
#define IIO_API
Definition api.h:19
Source block for the PlutoSDR.
Definition pluto_source.h:37
std::shared_ptr< pluto_source > sptr
Definition pluto_source.h:39
static sptr make(const std::string &uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, unsigned long buffer_size, bool quadrature, bool rfdc, bool bbdc, const char *gain, double gain_value, const char *filter="", bool auto_filter=true)
virtual void set_params(unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool quadrature, bool rfdc, bool bbdc, const char *gain, double gain_value, const char *filter="", bool auto_filter=true)=0
Definition attr_sink.h:30
Definition attr_sink.h:29