summaryrefslogtreecommitdiff
path: root/gr-fcd/lib
diff options
context:
space:
mode:
authorJohnathan Corgan <jcorgan@corganenterprises.com>2012-04-01 16:47:32 -0700
committerJohnathan Corgan <jcorgan@corganenterprises.com>2012-04-01 16:47:32 -0700
commitde0070d765ea31befcbc14eaecae2b934eec4afb (patch)
treec48808337128e50775ed0f31c3c2c4528fcea009 /gr-fcd/lib
parent269691c7d45675382bafbdf8a56f0682f1927fd9 (diff)
parent98c703b3282b47ae2e0deaf317468f789cc9176e (diff)
Merge branch 'master' into next
Diffstat (limited to 'gr-fcd/lib')
-rw-r--r--gr-fcd/lib/fcd_source_c_impl.cc16
-rw-r--r--gr-fcd/lib/fcd_source_c_impl.h1
2 files changed, 17 insertions, 0 deletions
diff --git a/gr-fcd/lib/fcd_source_c_impl.cc b/gr-fcd/lib/fcd_source_c_impl.cc
index a67d5bdbba..9543f16ebc 100644
--- a/gr-fcd/lib/fcd_source_c_impl.cc
+++ b/gr-fcd/lib/fcd_source_c_impl.cc
@@ -173,6 +173,22 @@ void fcd_source_c_impl::set_lna_gain(float gain)
/* TODO: check fme */
}
+// Set mixer gain
+void fcd_source_c_impl::set_mixer_gain(float gain)
+{
+ FCD_MODE_ENUM fme;
+ unsigned char g;
+
+ if ( gain > 4.0 ) {
+ g = TMGE_P12_0DB;
+ } else {
+ g = TMGE_P4_0DB;
+ }
+
+ fme = fcdAppSetParam(FCD_CMD_APP_SET_MIXER_GAIN, &g, 1);
+ /* TODO: check fme */
+}
+
// Set new frequency correction
void fcd_source_c_impl::set_freq_corr(int ppm)
{
diff --git a/gr-fcd/lib/fcd_source_c_impl.h b/gr-fcd/lib/fcd_source_c_impl.h
index e4a7467c5d..d082ecc1e6 100644
--- a/gr-fcd/lib/fcd_source_c_impl.h
+++ b/gr-fcd/lib/fcd_source_c_impl.h
@@ -32,6 +32,7 @@ public:
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);