diff options
author | Tom Rondeau | 2012-03-27 21:46:48 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-03-27 21:46:48 -0400 |
commit | 8bfb47dd8fb661039bdfdc475047e6f983f11270 (patch) | |
tree | 448402699fabea713d3f54b35e7733617d273ab3 /gr-fcd/grc/fcd_source_c.xml | |
parent | da09d2b000606b55f564bc6adaa945968d6c3e72 (diff) | |
parent | 79e341d9064b8e44c2d1900cb34ddb51deebb559 (diff) | |
download | gnuradio-8bfb47dd8fb661039bdfdc475047e6f983f11270.tar.gz gnuradio-8bfb47dd8fb661039bdfdc475047e6f983f11270.tar.bz2 gnuradio-8bfb47dd8fb661039bdfdc475047e6f983f11270.zip |
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'gr-fcd/grc/fcd_source_c.xml')
-rw-r--r-- | gr-fcd/grc/fcd_source_c.xml | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/gr-fcd/grc/fcd_source_c.xml b/gr-fcd/grc/fcd_source_c.xml new file mode 100644 index 000000000..8572e6da1 --- /dev/null +++ b/gr-fcd/grc/fcd_source_c.xml @@ -0,0 +1,104 @@ +<?xml version="1.0"?> +<block> + <name>Funcube Dongle Source</name> + <key>fcd_source_c</key> + <category>Sources</category> + <throttle>1</throttle> + <import>from gnuradio import fcd</import> + <make>fcd.source_c($device_name) +#if $lna() != 20.0 +self.$(id).set_lna_gain($lna) +#end if +#if $ppm() != 115 +self.$(id).set_freq_corr($ppm) +#end if +#if ($dci() != 0.0) or ($dcq() != 0.0) +self.$(id).set_dc_corr($dci,$dcq) +#end if +#if ($iq_phase() != 0.0) or ($iq_gain() != 1.0) +self.$(id).set_iq_corr($iq_phase,$iq_gain) +#end if +self.$(id).set_freq($freq) + </make> + <callback>set_freq($freq)</callback> + <callback>set_lna_gain($lna)</callback> + <callback>set_freq_corr($ppm)</callback> + <callback>set_dc_corr($dci,$dcq)</callback> + <callback>set_iq_corr($iq_gain,$iq_phase)</callback> + <param> + <name>Device Name</name> + <key>device_name</key> + <value>hw:1</value> + <type>string</type> + <hide>#if $device_name() then 'none' else 'part'#</hide> + </param> + <param> + <name>Frequency (Hz)</name> + <key>freq</key> + <value>145500000</value> + <type>real</type> + </param> + <param> + <name>LNA Gain (dB)</name> + <key>lna</key> + <value>20.0</value> + <type>real</type> + </param> + <param> + <name>Frequency corr. (ppm)</name> + <key>ppm</key> + <value>-120</value> + <type>int</type> + </param> + <param> + <name>DC I offset</name> + <key>dci</key> + <value>0.0</value> + <type>real</type> + </param> + <param> + <name>DC Q offset</name> + <key>dcq</key> + <value>0.0</value> + <type>real</type> + </param> + <param> + <name>IQ phase balance</name> + <key>iq_phase</key> + <value>0.0</value> + <type>real</type> + </param> + <param> + <name>IQ gain balance</name> + <key>iq_gain</key> + <value>1.0</value> + <type>real</type> + </param> + <check>($freq >= 50e6) and ($freq <= 2e9)</check> + <check>($dci >= -1.0) and ($dci <= 1.0)</check> + <check>($dcq >= -1.0) and ($dcq <= 1.0)</check> + <check>($iq_phase >= -1.0) and ($iq_phase <= 1.0)</check> + <check>($iq_gain >= -1.0) and ($iq_gain <= 1.0)</check> + <source> + <name>out</name> + <type>complex</type> + </source> + <doc> +This block wraps the Funcube Dongle USB audio input and the USB HID control interface \ +into one convenient GNU Radio source block. + +The sample rate is fixed at 96 ksps. + +To find the device name on Linux type: + cat /proc/asound/cards + +The LNA gain is a set of discrete values between -5 to 30 dB with 2.5 dB step, but you can \ +use any float value and it will be rounded to the nearest valid value. + +The FCD block can autmatically apply frequency correction: + - For FCD v1.0 you can leave at -120 ppm + - For FCD v1.1 with serial number 810 or greater use -12 ppm + +The DC offset and IQ balance parameters can have range -1.0 to 1.0. + </doc> +</block> |