GNU Radio's SDRPLAY Package
rsp1_source_impl.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 #ifndef INCLUDED_SDRPLAY_RSP1_SOURCE_IMPL_H
22 #define INCLUDED_SDRPLAY_RSP1_SOURCE_IMPL_H
23 
24 #include <sdrplay/rsp1_source.h>
25 #include <mirsdrapi-rsp.h>
26 #include "rsp_dev.h"
27 
28 
29 namespace gr {
30  namespace sdrplay {
31 
32  class rsp1_source_impl : public rsp1_source {
33  private:
34  rsp_dev *dev;
35 
36  public:
37 
38  explicit rsp1_source_impl(double rf_freq, double bw, bool agc_enabled, double if_atten_db,
39  bool dc_offset_mode, bool iq_balance_mode, bool debug_enabled, int if_type,
40  int lo_mode, double sample_rate,
41  int lna_atten_step,
42  std::string device_serial);
43 
45 
46  int work(int noutput_items,
47  gr_vector_const_void_star &input_items,
48  gr_vector_void_star &output_items);
49 
50  void set_rf_freq(float rf_freq);
51 
52  void set_agc_enabled(bool agc_enabled);
53 
54  void set_if_atten_db(int if_atten_db);
55 
56  void set_lna_atten_step(int lna_atten_step);
57  };
58 
59  } // namespace sdrplay
60 } // namespace gr
61 
62 #endif /* INCLUDED_SDRPLAY_RSP1_SOURCE_IMPL_H */
63 
Definition: rsp1_source_impl.h:32
Definition: rsp_dev.h:36
<+description of block+>
Definition: rsp1_source.h:36
void set_rf_freq(float rf_freq)
void set_agc_enabled(bool agc_enabled)
Definition: rsp1_source.h:28
rsp1_source_impl(double rf_freq, double bw, bool agc_enabled, double if_atten_db, bool dc_offset_mode, bool iq_balance_mode, bool debug_enabled, int if_type, int lo_mode, double sample_rate, int lna_atten_step, std::string device_serial)
void set_lna_atten_step(int lna_atten_step)
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
void set_if_atten_db(int if_atten_db)