GNU Radio's FUNCUBE Package
fcdpp_control.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2020 dl1ksv.
4  *
5  * SPDX-License-Identifier: GPL-3.0-or-later
6  */
7 
8 #ifndef INCLUDED_FUNCUBE_FCDPP_CONTROL_H
9 #define INCLUDED_FUNCUBE_FCDPP_CONTROL_H
10 
11 #include <gnuradio/block.h>
12 #include <funcube/api.h>
13 
14 namespace gr {
15 namespace funcube {
16 
17 /*!
18  * \brief <+description of block+>
19  * \ingroup funcube
20  *
21  */
22 class FUNCUBE_API fcdpp_control : virtual public gr::block
23 {
24 public:
25  typedef std::shared_ptr<fcdpp_control> sptr;
26 
27  /*!
28  * \brief Return a shared_ptr to a new instance of funcube::fcdpp_control.
29  *
30  * To avoid accidental use of raw pointers, funcube::fcdpp_control's
31  * constructor is in a private implementation
32  * class. funcube::fcdpp_control::make is the public interface for
33  * creating new instances.
34  */
35  static sptr make();
36  /*! \brief Sets the frequency .
37  * \param freq The frequency in unit Hz
38  *
39  * Sets the frequency of the Funcube Dongle with Hz resolution
40  *
41  */
42  virtual void set_freq(float freq) = 0;
43 
44  /*! \brief Switches the LNA on/off.
45  * \param gain lna on/off.
46  *
47  */
48  virtual void set_lna(int gain) = 0;
49 
50  /*! \brief Switches mixer gain onf/off.
51  * \param gain true means on.
52  *
53  */
54  virtual void set_mixer_gain(int gain) = 0;
55 
56  /*! \brief Set If gain.
57  * \param gain The If gain value between 0 and 59 db
58  *
59  */
60  virtual void set_if_gain(int gain) = 0;
61 };
62 
63 } // namespace funcube
64 } // namespace gr
65 
66 #endif /* INCLUDED_FUNCUBE_FCDPP_CONTROL_H */
#define FUNCUBE_API
Definition: api.h:19
<+description of block+>
Definition: fcdpp_control.h:23
virtual void set_lna(int gain)=0
Switches the LNA on/off.
std::shared_ptr< fcdpp_control > sptr
Definition: fcdpp_control.h:25
virtual void set_mixer_gain(int gain)=0
Switches mixer gain onf/off.
virtual void set_freq(float freq)=0
Sets the frequency .
static sptr make()
Return a shared_ptr to a new instance of funcube::fcdpp_control.
virtual void set_if_gain(int gain)=0
Set If gain.
Definition: fcd.h:14