diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-15 23:36:55 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-15 23:36:55 +0200 |
commit | afd56f4b5a5c9ac107aaca91364239c0ce61634d (patch) | |
tree | 6fea6f0e3c06f9a63c60ac54f443b6f22c96d298 /grc | |
parent | 8578eee7ce5d74a14a3089be8ea94ada3d9627f0 (diff) |
hackrf: implement BB lowpass filter control
To use the default (automatic) bandwidth filter selection, this should
be set to 0.
Diffstat (limited to 'grc')
-rw-r--r-- | grc/gen_osmosdr_blocks.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py index 76231aa..84d1e15 100644 --- a/grc/gen_osmosdr_blocks.py +++ b/grc/gen_osmosdr_blocks.py @@ -37,9 +37,8 @@ self.\$(id).set_gain_mode(\$gain_mode$(n), $n) self.\$(id).set_gain(\$gain$(n), $n) self.\$(id).set_if_gain(\$if_gain$(n), $n) self.\$(id).set_bb_gain(\$bb_gain$(n), $n) -\#if \$ant$(n)() self.\$(id).set_antenna(\$ant$(n), $n) -\#end if +self.\$(id).set_bandwidth(\$bw$(n), $n) \#end if #end for </make> @@ -53,6 +52,7 @@ self.\$(id).set_antenna(\$ant$(n), $n) <callback>set_if_gain(\$if_gain$(n), $n)</callback> <callback>set_bb_gain(\$bb_gain$(n), $n)</callback> <callback>set_antenna(\$ant$(n), $n)</callback> + <callback>set_bandwidth(\$bw$(n), $n)</callback> #end for <param> <name>$(dir.title())put Type</name> @@ -183,6 +183,9 @@ Antenna: For devices with only one antenna, this may be left blank. Otherwise, the user should specify one of the possible antenna choices. +Bandwidth: +Set the bandpass filter on the radio frontend. To use the default (automatic) bandwidth filter setting, this should be zero. + See the OsmoSDR project page for more detailed documentation: http://sdr.osmocom.org/trac/ http://sdr.osmocom.org/trac/wiki/rtl-sdr @@ -276,6 +279,21 @@ PARAMS_TMPL = """ \#end if </hide> </param> + <param> + <name>Ch$(n): Bandwidth (Hz)</name> + <key>bw$(n)</key> + <value>0</value> + <type>real</type> + <hide> + \#if not \$nchan() > $n + all + \#elif \$bw$(n)() + none + \#else + part + \#end if + </hide> + </param> """ def parse_tmpl(_tmpl, **kwargs): |