3 * Copyright 2003,2004 Free Software Foundation, Inc.
5 * This file is part of GNU Radio
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
27 #include <gr_oscope_sink_x.h>
28 #include <gr_io_signature.h>
29 #include <gr_oscope_guts.h>
32 gr_oscope_sink_x::gr_oscope_sink_x (const std::string name,
33 gr_io_signature_sptr input_sig,
35 : gr_sync_block (name, input_sig, gr_make_io_signature (0, 0, 0)),
36 d_sampling_rate (sampling_rate), d_guts (0)
40 gr_oscope_sink_x::~gr_oscope_sink_x ()
45 // ----------------------------------------------------------------
48 gr_oscope_sink_x::set_update_rate (double update_rate)
50 return d_guts->set_update_rate (update_rate);
54 gr_oscope_sink_x::set_decimation_count (int decimation_count)
56 return d_guts->set_decimation_count (decimation_count);
60 gr_oscope_sink_x::set_trigger_channel (int channel)
62 return d_guts->set_trigger_channel (channel);
66 gr_oscope_sink_x::set_trigger_mode (gr_trigger_mode mode)
68 return d_guts->set_trigger_mode (mode);
72 gr_oscope_sink_x::set_trigger_slope (gr_trigger_slope slope)
74 return d_guts->set_trigger_slope (slope);
78 gr_oscope_sink_x::set_trigger_level (double trigger_level)
80 return d_guts->set_trigger_level (trigger_level);
85 gr_oscope_sink_x::set_trigger_level_auto ()
87 return d_guts->set_trigger_level_auto ();
91 gr_oscope_sink_x::set_sample_rate (double sample_rate)
93 return d_guts->set_sample_rate (sample_rate);
97 gr_oscope_sink_x::set_num_channels (int nchannels)
99 return d_guts->set_num_channels (nchannels);
105 gr_oscope_sink_x::num_channels () const
107 return d_guts->num_channels ();
111 gr_oscope_sink_x::sample_rate () const
113 return d_guts->sample_rate ();
117 gr_oscope_sink_x::update_rate () const
119 return d_guts->update_rate ();
123 gr_oscope_sink_x::get_decimation_count () const
125 return d_guts->get_decimation_count ();
129 gr_oscope_sink_x::get_trigger_channel () const
131 return d_guts->get_trigger_channel ();
135 gr_oscope_sink_x::get_trigger_mode () const
137 return d_guts->get_trigger_mode ();
141 gr_oscope_sink_x::get_trigger_slope () const
143 return d_guts->get_trigger_slope ();
147 gr_oscope_sink_x::get_trigger_level () const
149 return d_guts->get_trigger_level ();
153 gr_oscope_sink_x::get_samples_per_output_record () const
155 return d_guts->get_samples_per_output_record ();