GNU Radio's IIO Package
pluto_source_impl.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 #ifndef INCLUDED_IIO_PLUTO_SOURCE_IMPL_H
23 #define INCLUDED_IIO_PLUTO_SOURCE_IMPL_H
24 
25 #include <string>
26 #include <vector>
27 
28 #include <iio/fmcomms2_source.h>
29 #include <iio/pluto_source.h>
30 
31 #include "device_source_impl.h"
32 
33 namespace gr {
34  namespace iio {
35 
37  , public fmcomms2_source_f32c
38  {
39  public:
41 
42  static std::string get_uri();
43 
44  void set_params(unsigned long long frequency,
45  unsigned long samplerate,
46  unsigned long bandwidth,
47  bool quadrature, bool rfdc, bool bbdc,
48  const char *gain, double gain_value,
49  const char *filter, bool auto_filter);
50  };
51 
52  } // namespace iio
53 } // namespace gr
54 
55 #endif /* INCLUDED_IIO_PLUTO_SOURCE_IMPL_H */
std::shared_ptr< fmcomms2_source > sptr
Definition: fmcomms2_source.h:43
pluto_source_impl(fmcomms2_source::sptr block)
static std::string get_uri()
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)
Definition: fmcomms2_source.h:82
Definition: attr_sink.h:29
Source block for the PlutoSDR.
Definition: pluto_source.h:36
Definition: pluto_source_impl.h:36