blob: d082ecc1e60d1d0b10fdadda9dd8d848d1c0ab8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* -*- c++ -*- */
/*
* Copyright 2011-2012 Free Software Foundation, Inc.
*
* GNU Radio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* GNU Radio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GNU Radio; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
#ifndef INCLUDED_FCD_SOURCE_C_IMPL_H
#define INCLUDED_FCD_SOURCE_C_IMPL_H
#include <fcd_source_c.h>
#include <gr_audio_source.h>
class FCD_API fcd_source_c_impl : public fcd_source_c
{
public:
/* Public API functions documented in include/fcd_source_c.h */
void set_freq(int freq);
void set_freq(float freq);
void set_freq_khz(int freq);
void set_lna_gain(float gain);
void set_mixer_gain(float gain);
void set_freq_corr(int ppm);
void set_dc_corr(double _dci, double _dcq);
void set_iq_corr(double _gain, double _phase);
private:
fcd_source_c_impl(const std::string device_name = "");
friend FCD_API fcd_source_c_sptr
fcd_make_source_c(const std::string device_name);
audio_source::sptr fcd; /*!< The audio input source */
int d_freq_corr; /*!< The frequency correction in ppm */
int d_freq_req; /*!< The latest requested frequency in Hz */
};
#endif /* INCLUDED_FCD_SOURCE_C_IMPL_H */
|