GNU Radio's FOO Package: channel_model.h Source File

GNU Radio's FOO Package

channel_model.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Bastian Bloessl <mail@bastibl.net>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17#ifndef INCLUDED_FOO_CHANNEL_MODEL_H
18#define INCLUDED_FOO_CHANNEL_MODEL_H
19
20#include <foo/api.h>
21#include <gnuradio/hier_block2.h>
22#include <gnuradio/types.h>
23
24namespace gr {
25namespace foo {
26
27 class FOO_API channel_model : virtual public hier_block2
28{
29public:
30 typedef std::shared_ptr<channel_model> sptr;
31
32 static sptr make(double noise_voltage = 0.0, double frequency_offset = 0.0,
33 double epsilon = 1.0,
34 const std::vector<gr_complex> &taps = std::vector<gr_complex>(1, 1),
35 double noise_seed = 0, bool block_tags = false);
36
37 virtual void set_noise_voltage(double noise_voltage) = 0;
38 virtual void set_frequency_offset(double frequency_offset) = 0;
39 virtual void set_taps(const std::vector<gr_complex> &taps) = 0;
40 virtual void set_timing_offset(double epsilon) = 0;
41
42 virtual double noise_voltage() const = 0;
43 virtual double frequency_offset() const = 0;
44 virtual std::vector<gr_complex> taps() const = 0;
45 virtual double timing_offset() const = 0;
46};
47
48} // namespace foo
49} // namespace gr
50
51#endif /* INCLUDED_FOO_CHANNEL_MODEL_H */
api.h
FOO_API
#define FOO_API
Definition api.h:19
gr::foo::channel_model
Definition channel_model.h:28
gr::foo::channel_model::noise_voltage
virtual double noise_voltage() const =0
gr::foo::channel_model::set_noise_voltage
virtual void set_noise_voltage(double noise_voltage)=0
gr::foo::channel_model::sptr
std::shared_ptr< channel_model > sptr
Definition channel_model.h:30
gr::foo::channel_model::taps
virtual std::vector< gr_complex > taps() const =0
gr::foo::channel_model::set_timing_offset
virtual void set_timing_offset(double epsilon)=0
gr::foo::channel_model::timing_offset
virtual double timing_offset() const =0
gr::foo::channel_model::set_taps
virtual void set_taps(const std::vector< gr_complex > &taps)=0
gr::foo::channel_model::frequency_offset
virtual double frequency_offset() const =0
gr::foo::channel_model::make
static sptr make(double noise_voltage=0.0, double frequency_offset=0.0, double epsilon=1.0, const std::vector< gr_complex > &taps=std::vector< gr_complex >(1, 1), double noise_seed=0, bool block_tags=false)
gr::foo::channel_model::set_frequency_offset
virtual void set_frequency_offset(double frequency_offset)=0
gr::foo
Definition burst_tagger.h:28
gr
Definition burst_tagger.h:27