3 * Copyright 2008 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 along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef INCLUDED_MSDD_RS_SOURCE_SIMPLE_H
22 #define INCLUDED_MSDD_RS_SOURCE_SIMPLE_H
24 #include <gr_sync_block.h>
25 #include <msdd6000_rs.h>
26 #include <boost/scoped_ptr.hpp>
28 class msdd_rs_source_simple;
29 typedef boost::shared_ptr<msdd_rs_source_simple> msdd_rs_source_simple_sptr;
32 // public shared_ptr constructor
34 msdd_rs_source_simple_sptr msdd_rs_make_source_simple ( const char *src, unsigned short port_src);
37 class msdd_rs_source_simple : public gr_sync_block {
39 friend msdd_rs_source_simple_sptr
40 msdd_rs_make_source_simple ( const char *src, unsigned short port_src);
42 boost::scoped_ptr<MSDD6000_RS> rcv;
46 msdd_rs_source_simple (const char *src, unsigned short port_src);
49 ~msdd_rs_source_simple ();
53 /* function starts the flow of data from the digitizer */
55 /* function stops the flow of data from the digitizer */
58 // Do not need this //
59 // bool set_decim_rate(unsigned int);
60 /* Adding functions for setting the sample rate and
64 /* hardware commands -- change current state of digitizer */
65 bool set_ddc_samp_rate(double);
66 bool set_ddc_bw(double);
68 bool set_rx_freq(double);
69 bool set_ddc_gain(double);
70 bool set_rf_atten(double);
72 int work(int, gr_vector_const_void_star&, gr_vector_void_star&);
74 /* Query methods -- query current state of digitizer */
76 float pull_ddc_samp_rate();
82 /* Pulling back gain and frequency ranges */
83 std::vector<int> gain_range();
84 std::vector<float> freq_range();
87 #endif /* INCLUDED_MSDD_RS__RS__SOURCE_C_H */