From 7361ce25f30ddfcc7538fec4a8b4cb9044201a03 Mon Sep 17 00:00:00 2001 From: Alexandru Csete Date: Thu, 8 Mar 2012 15:25:58 -0800 Subject: Initial import of out-of-tree files from Alexandru Csete --- gr-fcd/swig/fcd_source_c.i | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 gr-fcd/swig/fcd_source_c.i (limited to 'gr-fcd/swig/fcd_source_c.i') diff --git a/gr-fcd/swig/fcd_source_c.i b/gr-fcd/swig/fcd_source_c.i new file mode 100644 index 000000000..03223b40b --- /dev/null +++ b/gr-fcd/swig/fcd_source_c.i @@ -0,0 +1,24 @@ +/* + * First arg is the package prefix. + * Second arg is the name of the class minus the prefix. + * + * This does some behind-the-scenes magic so we can + * access fcd_source_c from python as fcd.source_c + */ +GR_SWIG_BLOCK_MAGIC(fcd,source_c); + +fcd_source_c_sptr fcd_make_source_c (const std::string device_name = ""); + +class fcd_source_c : public gr_hier_block2 +{ +public: + fcd_source_c (const std::string device_name = ""); + ~fcd_source_c(); + + void set_freq(float freq); + void set_freq_khz(int freq); + void set_lna_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); +}; -- cgit From 9ef789c8cca6b3439ecce5fc7aa71d3b073acfd7 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Mon, 12 Mar 2012 09:26:38 -0700 Subject: fcd: added FCD_API to code --- gr-fcd/swig/fcd_source_c.i | 3 --- 1 file changed, 3 deletions(-) (limited to 'gr-fcd/swig/fcd_source_c.i') diff --git a/gr-fcd/swig/fcd_source_c.i b/gr-fcd/swig/fcd_source_c.i index 03223b40b..3438ab74d 100644 --- a/gr-fcd/swig/fcd_source_c.i +++ b/gr-fcd/swig/fcd_source_c.i @@ -12,9 +12,6 @@ fcd_source_c_sptr fcd_make_source_c (const std::string device_name = ""); class fcd_source_c : public gr_hier_block2 { public: - fcd_source_c (const std::string device_name = ""); - ~fcd_source_c(); - void set_freq(float freq); void set_freq_khz(int freq); void set_lna_gain(float gain); -- cgit