GNU Radio's SDRPLAY Package
rsp2_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_RSP2_SOURCE_H
23 #define INCLUDED_SDRPLAY_RSP2_SOURCE_H
24 
25 #include <sdrplay/api.h>
26 #include <gnuradio/sync_block.h>
27 
28 namespace gr {
29  namespace sdrplay {
30 
31  /*!
32  * \brief <+description of block+>
33  * \ingroup sdrplay
34  *
35  */
36  class SDRPLAY_API rsp2_source : virtual public gr::sync_block
37  {
38  public:
39  typedef boost::shared_ptr<rsp2_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, int lna_atten_step,
44  std::string device_serial, std::string antenna);
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  } // namespace sdrplay
55 } // namespace gr
56 
57 #endif /* INCLUDED_SDRPLAY_RSP2_SOURCE_H */
58 
<+description of block+>
Definition: rsp2_source.h:36
boost::shared_ptr< rsp2_source > sptr
Definition: rsp2_source.h:39
Definition: rsp1_source.h:28
#define SDRPLAY_API
Definition: api.h:31