GNU Radio's MICROTELECOM Package
perseus.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015 <+YOU OR YOUR COMPANY+>.
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_MICROTELECOM_PERSEUS_H
23 #define INCLUDED_MICROTELECOM_PERSEUS_H
24 
25 #include <microtelecom/api.h>
26 #include <gnuradio/sync_block.h>
27 
28 namespace gr {
29  namespace microtelecom {
30 
31  /*!
32  * \brief Perseus Receiver source block
33  * \ingroup microtelecom
34  *
35  */
36  class MICROTELECOM_API perseus : virtual public gr::sync_block
37  {
38  public:
39  typedef boost::shared_ptr<perseus> sptr;
40 
41  /*! \brief Set frequency with Hz resolution.
42  * \param freq The frequency in Hz
43  *
44  * Set the frequency of the Perseus receiver
45  */
46  virtual void set_freq(float freq) = 0;
47  virtual void set_attenuator(int attenuation_db) = 0;
48  virtual void set_dither(int adc_dither) = 0;
49  virtual void set_preamp(int preamp) = 0;
50  virtual void set_wideband(int frontend_filters) = 0;
51 
52 
53  /*!
54  * \brief Return a shared_ptr to a new instance of microtelecom::perseus.
55  *
56  * To avoid accidental use of raw pointers, microtelecom::perseus's
57  * constructor is in a private implementation
58  * class. microtelecom::perseus::make is the public interface for
59  * creating new instances.
60  */
61 // static sptr make(int sampling_rate = 95000, int central_frequency = 7070000, int attenuation_db = 0, bool adc_dither = 0, bool preamp = 0, bool frontend_filters = 0)
62  static sptr make(int sampling_rate, int central_frequency, int attenuation_db, bool adc_dither, bool preamp, bool frontend_filters) ;
63  };
64 
65  } // namespace microtelecom
66 } // namespace gr
67 
68 #endif /* INCLUDED_MICROTELECOM_PERSEUS_H */
69 
boost::shared_ptr< perseus > sptr
Definition: perseus.h:39
#define MICROTELECOM_API
Definition: api.h:30
Perseus Receiver source block.
Definition: perseus.h:36
Definition: perseus.h:28