GNU Radio's IIO Package
hnchbbboard_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_HNCHBBBOARD_SOURCE_IMPL_H
23 #define INCLUDED_IIO_HNCHBBBOARD_SOURCE_IMPL_H
24 
25 #include <string>
26 #include <vector>
27 
28 #include <iio/hnchbbboard_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  int stream_id);
41 
42  public:
43  hnchbbboard_source_impl(struct iio_context *ctx, bool destroy_ctx,
44  unsigned long long frequency, unsigned long samplerate,
45  int stream_id, unsigned long buffer_size, double gain_value);
46 
47  void set_params(unsigned long long frequency,
48  unsigned long samplerate, double gain_value);
49  };
50 
51  } // namespace iio
52 } // namespace gr
53 
54 #endif /* INCLUDED_IIO_HNCHBBBOARD_SOURCE_IMPL_H */
Definition: hnchbbboard_source_impl.h:35
hnchbbboard_source_impl(struct iio_context *ctx, bool destroy_ctx, unsigned long long frequency, unsigned long samplerate, int stream_id, unsigned long buffer_size, double gain_value)
struct iio_context * ctx
Definition: device_source_impl.h:61
Definition: device_source_impl.h:41
<+description of block+>
Definition: hnchbbboard_source.h:40
unsigned int buffer_size
Definition: device_source_impl.h:65
bool destroy_ctx
Definition: device_source_impl.h:67
Definition: attr_sink.h:29
void set_params(unsigned long long frequency, unsigned long samplerate, double gain_value)