GNU Radio's HOWTO Package
fcdproplus_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013 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_FCDPROPLUS_IMPL_H
22#define INCLUDED_FCDPROPLUS_FCDPROPLUS_IMPL_H
23
26#include <gnuradio/audio/source.h>
27#include <gnuradio/logger.h>
28#include <gnuradio/prefs.h>
29
30
31namespace gr {
32 namespace fcdproplus {
33
35 {
36 private:
37 gr::audio::source::sptr fcd; /*!< The audio input source */
38 fcdpp_control::sptr fcd_control_block; /*!< The fcd control block */
39 unsigned int d_freq_req; /*!< The latest requested frequency in Khz */
40 int d_corr;
41 int d_unit;
42 gr::logger_ptr d_logger;
43 public:
44 fcdproplus_impl(const std::string user_device_name,int unit);
46 /* Public API functions documented in include/fcdproplus/fcdproplus.h */
47 void set_freq(float freq);
48 void set_lna(int gain);
49 void set_mixer_gain(int gain);
50 void set_freq_corr(int ppm);
51 void set_if_gain(int gain);
52
53 };
54
55 } // namespace fcdproplus
56} // namespace gr
57
58#endif /* INCLUDED_FCDPROPLUS_FCDPROPLUS_IMPL_H */
59
Funcube Dongle source block.
Definition: fcd.h:47
boost::shared_ptr< fcdpp_control > sptr
Definition: fcdpp_control.h:34
Definition: fcdproplus_impl.h:35
void set_lna(int gain)
Switches the LNA on/off.
void set_freq_corr(int ppm)
Set new frequency correction.
void set_freq(float freq)
Set frequency with resolution defined by unit.
void set_if_gain(int gain)
Set If gain.
void set_mixer_gain(int gain)
Switches mixer gain onf/off.
fcdproplus_impl(const std::string user_device_name, int unit)
Funcube Pro+ Dongle source block.
Definition: fcdproplus.h:47
Definition: fcd.h:29