GNU Radio's IIO Package
math.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2016 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_MATH_H
24 #define INCLUDED_IIO_MATH_H
25 
26 #include <iio/api.h>
27 #include <gnuradio/hier_block2.h>
28 
29 namespace gr {
30  namespace iio {
31  class IIO_API iio_math : virtual public gr::hier_block2
32  {
33  public:
34  typedef std::shared_ptr<iio_math> sptr;
35 
36  static sptr make(const std::string &function,
37  int ninputs = 1);
38  };
39 
40  class IIO_API iio_math_gen : virtual public gr::hier_block2
41  {
42  public:
43  typedef std::shared_ptr<iio_math_gen> sptr;
44 
45  static sptr make(double sampling_freq, double wav_freq,
46  const std::string &function);
47  };
48  }
49 }
50 
51 #endif /* INCLUDED_IIO_MATH_H */
#define IIO_API
Definition: api.h:19
std::shared_ptr< iio_math_gen > sptr
Definition: math.h:43
Definition: math.h:31
Definition: math.h:40
Definition: attr_sink.h:29
std::shared_ptr< iio_math > sptr
Definition: math.h:34