GNU Radio 3.6.4.1 C++ API
fcd_source_c_impl.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2011-2012 Free Software Foundation, Inc.
4
*
5
* GNU Radio 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
* GNU Radio 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 GNU Radio; 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_FCD_SOURCE_C_IMPL_H
22
#define INCLUDED_FCD_SOURCE_C_IMPL_H
23
24
#include <
fcd_source_c.h
>
25
#include <
gr_audio_source.h
>
26
27
class
FCD_API
fcd_source_c_impl
:
public
fcd_source_c
28
{
29
public
:
30
/* Public API functions documented in include/fcd_source_c.h */
31
void
set_freq
(
int
freq);
32
void
set_freq
(
float
freq);
33
void
set_freq_khz
(
int
freq);
34
void
set_lna_gain
(
float
gain);
35
void
set_mixer_gain
(
float
gain);
36
void
set_freq_corr
(
int
ppm);
37
void
set_dc_corr
(
double
_dci,
double
_dcq);
38
void
set_iq_corr
(
double
_gain,
double
_phase);
39
40
private
:
41
fcd_source_c_impl
(
const
std::string device_name =
""
);
42
friend
FCD_API
fcd_source_c_sptr
43
fcd_make_source_c
(
const
std::string device_name);
44
45
audio_source::sptr
fcd;
/*!< The audio input source */
46
int
d_freq_corr;
/*!< The frequency correction in ppm */
47
int
d_freq_req;
/*!< The latest requested frequency in Hz */
48
};
49
50
#endif
/* INCLUDED_FCD_SOURCE_C_IMPL_H */
gr-fcd
lib
fcd_source_c_impl.h
Generated on Thu Mar 21 2013 15:59:32 for GNU Radio 3.6.4.1 C++ API by
1.8.1.2