GNU Radio's HOWTO Package
fcdpp_control.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2018 Volker Schroer, DL1KSV
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_FCDPROPLUS_CONTROL_H
22
#define INCLUDED_FCDPROPLUS_CONTROL_H
23
24
#include <
fcdproplus/api.h
>
25
#include <gnuradio/block.h>
26
27
28
namespace
gr
{
29
namespace
fcdproplus {
30
31
class
FCDPROPLUS_API
fcdpp_control
:
virtual
public
block
32
{
33
public
:
34
typedef
boost::shared_ptr<fcdpp_control>
sptr
;
35
36
static
sptr
make();
37
38
/*! \brief Sets the frequency .
39
* \param freq The frequency in unit Hz
40
*
41
* Sets the frequency of the Funcube Dongle with Hz resolution
42
*
43
*/
44
virtual
void
set_freq(
float
freq) = 0;
45
46
/*! \brief Switches the LNA on/off.
47
* \param gain lna on/off.
48
*
49
*/
50
virtual
void
set_lna(
int
gain) = 0;
51
52
/*! \brief Switches mixer gain onf/off.
53
* \param gain true means on.
54
*
55
*/
56
virtual
void
set_mixer_gain(
int
gain) = 0;
57
58
/*! \brief Set If gain.
59
* \param gain The If gain value between 0 and 59 db
60
*
61
*/
62
virtual
void
set_if_gain(
int
gain)=0;
63
64
};
65
}
// namespace fcdproplus
66
}
// namespace gr
67
68
69
#endif
/* INCLUDED_FCDPROPLUS_CONTROL_H */
FCDPROPLUS_API
#define FCDPROPLUS_API
Definition:
api.h:30
gr::fcdproplus::fcdpp_control
Definition:
fcdpp_control.h:31
gr::fcdproplus::fcdpp_control::sptr
boost::shared_ptr< fcdpp_control > sptr
Definition:
fcdpp_control.h:34
gr
Definition:
fcd.h:29
api.h
include
fcdproplus
fcdpp_control.h
Generated by
1.8.17