GNU Radio's SDRPLAY Package
rsp1a_source.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2018 HB9FXQ, Frank Werner-Krippendorf.
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_SDRPLAY_RSP1A_SOURCE_H
23 #define INCLUDED_SDRPLAY_RSP1A_SOURCE_H
24 
25 #include <sdrplay/api.h>
26 #include <gnuradio/sync_block.h>
27 
28 
29 namespace gr {
30  namespace sdrplay {
31 
32  /*!
33  * \brief <+description of block+>
34  * \ingroup sdrplay
35  *
36  */
37  class SDRPLAY_API rsp1a_source : virtual public gr::sync_block {
38  public:
39  typedef boost::shared_ptr<rsp1a_source> sptr;
40 
41  static sptr make(double rf_freq, double bw, bool agc_enabled, double if_atten_db,
42  bool dc_offset_mode, bool iq_balance_mode, bool debug_enabled, int if_type, int lo_mode,
43  double sample_rate, bool bcast_notch, bool dab_notch, int lna_atten_step, bool bias_t,
44  std::string device_serial);
45 
46  virtual void set_rf_freq(float rf_freq) = 0;
47 
48  virtual void set_agc_enabled(bool agc_enabled) = 0;
49 
50  virtual void set_if_atten_db(int if_atten_db) = 0;
51  virtual void set_lna_atten_step(int lna_atten_step) = 0;
52 
53 
54  virtual void set_biasT(bool bias_t) = 0;
55  };
56 
57  } // namespace sdrplay
58 } // namespace gr
59 
60 #endif /* INCLUDED_SDRPLAY_RSP1A_SOURCE_H */
61 
boost::shared_ptr< rsp1a_source > sptr
Definition: rsp1a_source.h:39
Definition: rsp1_source.h:28
<+description of block+>
Definition: rsp1a_source.h:37
#define SDRPLAY_API
Definition: api.h:31