GNU Radio's IIO Package
fmcomms2_source_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2014 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_FMCOMMS2_SOURCE_IMPL_H
23 #define INCLUDED_IIO_FMCOMMS2_SOURCE_IMPL_H
24 
25 #include <string>
26 #include <vector>
27 
28 #include <iio/fmcomms2_source.h>
29 
30 #include "device_source_impl.h"
31 
32 namespace gr {
33  namespace iio {
34 
36  , public device_source_impl
37  {
38  private:
39  std::vector<std::string> get_channels_vector(
40  bool ch1_en, bool ch2_en, bool ch3_en, bool ch4_en);
41 
42  public:
43  fmcomms2_source_impl(struct iio_context *ctx, bool destroy_ctx,
44  unsigned long long frequency, unsigned long samplerate,
45  unsigned long bandwidth,
46  bool ch1_en, bool ch2_en, bool ch3_en, bool ch4_en,
47  unsigned long buffer_size, bool quadrature, bool rfdc,
48  bool bbdc, const char *gain1, double gain1_value,
49  const char *gain2, double gain2_value,
50  const char *rf_port_select, const char *filter,
51  bool auto_filter);
52 
53  void set_params(unsigned long long frequency,
54  unsigned long samplerate, unsigned long bandwidth,
55  bool quadrature, bool rfdc, bool bbdc,
56  const char *gain1, double gain1_value,
57  const char *gain2, double gain2_value,
58  const char *rf_port_select,
59  const char *filter,
60  bool auto_filter);
61  };
62 
63  } // namespace iio
64 } // namespace gr
65 
66 #endif /* INCLUDED_IIO_FMCOMMS2_SOURCE_IMPL_H */
struct iio_context * ctx
Definition: device_source_impl.h:61
Definition: device_source_impl.h:41
Definition: fmcomms2_source_impl.h:35
unsigned int buffer_size
Definition: device_source_impl.h:65
bool destroy_ctx
Definition: device_source_impl.h:67
fmcomms2_source_impl(struct iio_context *ctx, bool destroy_ctx, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool ch1_en, bool ch2_en, bool ch3_en, bool ch4_en, unsigned long buffer_size, bool quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter, bool auto_filter)
Definition: attr_sink.h:29
<+description of block+>
Definition: fmcomms2_source.h:40
void set_params(unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, bool quadrature, bool rfdc, bool bbdc, const char *gain1, double gain1_value, const char *gain2, double gain2_value, const char *rf_port_select, const char *filter, bool auto_filter)