GNU Radio's FOSPHOR Package
base_sink_c.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013-2014 Sylvain Munaut <tnt@246tNt.com>
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21
22#ifndef INCLUDED_GR_FOSPHOR_BASE_SINK_C_H
23#define INCLUDED_GR_FOSPHOR_BASE_SINK_C_H
24
26
27#include <gnuradio/sync_block.h>
28#include <gnuradio/fft/window.h>
29
30namespace gr {
31 namespace fosphor {
32
33 /*!
34 * \brief Base fosphor sink API interface
35 * \ingroup fosphor
36 */
37 class GR_FOSPHOR_API base_sink_c : public gr::sync_block
38 {
39 protected:
40 base_sink_c(const char *name = NULL);
41
42 public:
43
57 };
58
59 virtual void execute_ui_action(enum ui_action_t action) = 0;
60
61 virtual void set_frequency_range(const double center,
62 const double span) = 0;
63 virtual void set_frequency_center(const double center) = 0;
64 virtual void set_frequency_span(const double span) = 0;
65
66 virtual void set_fft_window(const gr::fft::window::win_type win) = 0;
67 };
68
69 } // namespace fosphor
70} // namespace gr
71
72#endif /* INCLUDED_GR_FOSPHOR_BASE_SINK_C_H */
73
#define GR_FOSPHOR_API
Definition: api.h:30
Base fosphor sink API interface.
Definition: base_sink_c.h:38
ui_action_t
Definition: base_sink_c.h:44
@ REF_UP
Definition: base_sink_c.h:47
@ ZOOM_CENTER_UP
Definition: base_sink_c.h:52
@ DB_PER_DIV_UP
Definition: base_sink_c.h:45
@ DB_PER_DIV_DOWN
Definition: base_sink_c.h:46
@ ZOOM_TOGGLE
Definition: base_sink_c.h:49
@ FREEZE_TOGGLE
Definition: base_sink_c.h:56
@ ZOOM_WIDTH_DOWN
Definition: base_sink_c.h:51
@ REF_DOWN
Definition: base_sink_c.h:48
@ RATIO_DOWN
Definition: base_sink_c.h:55
@ ZOOM_CENTER_DOWN
Definition: base_sink_c.h:53
@ RATIO_UP
Definition: base_sink_c.h:54
@ ZOOM_WIDTH_UP
Definition: base_sink_c.h:50
virtual void execute_ui_action(enum ui_action_t action)=0
base_sink_c(const char *name=NULL)
virtual void set_frequency_range(const double center, const double span)=0
virtual void set_frequency_center(const double center)=0
virtual void set_frequency_span(const double span)=0
virtual void set_fft_window(const gr::fft::window::win_type win)=0
Definition: base_sink_c.h:30
Definition: private.h:44