GNU Radio's HNCHIIO 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_HNCHIIO_MATH_H
24#define INCLUDED_HNCHIIO_MATH_H
25
27#include <gnuradio/hier_block2.h>
28
29namespace gr {
30 namespace hnchiio {
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_HNCHIIO_MATH_H */
#define IIO_API
Definition api.h:19
Definition math.h:41
static sptr make(double sampling_freq, double wav_freq, const std::string &function)
std::shared_ptr< iio_math_gen > sptr
Definition math.h:43
Definition math.h:32
std::shared_ptr< iio_math > sptr
Definition math.h:34
static sptr make(const std::string &function, int ninputs=1)
Definition device_sink.h:36
Definition device_sink.h:35