diff options
author | piotr <Piotr Krysik pkrysik@elka.pw.edu.pl> | 2014-02-04 17:57:25 +0100 |
---|---|---|
committer | piotr <Piotr Krysik pkrysik@elka.pw.edu.pl> | 2014-02-04 17:57:25 +0100 |
commit | 437f5467a12ceddbc93a88f704697bd024378959 (patch) | |
tree | 68fb7a5ca2d4e72358c3444156072392a9fe627f /grc |
Initial commit - gsm-receiver with removed quick hacks
Diffstat (limited to 'grc')
-rw-r--r-- | grc/CMakeLists.txt | 23 | ||||
-rw-r--r-- | grc/gsm_receiver.xml | 38 | ||||
-rw-r--r-- | grc/gsm_receiver_hier.xml | 32 |
3 files changed, 93 insertions, 0 deletions
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt new file mode 100644 index 0000000..c3f7dea --- /dev/null +++ b/grc/CMakeLists.txt @@ -0,0 +1,23 @@ +# Copyright 2011 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. + +install(FILES + gsm_receiver.xml + gsm_receiver_hier.xml DESTINATION share/gnuradio/grc/blocks +) diff --git a/grc/gsm_receiver.xml b/grc/gsm_receiver.xml new file mode 100644 index 0000000..7a0e3aa --- /dev/null +++ b/grc/gsm_receiver.xml @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<block> + <name>receiver</name> + <key>gsm_receiver</key> + <category>gsm</category> + <import>import gsm</import> + <make>gsm.receiver($tuner, $osr)</make> + <!-- Make one 'param' node for every Parameter you want settable from the GUI. + Sub-nodes: + * name + * key (makes the value accessible as $keyname, e.g. in the make node) + * type --> + <param> + <name>...</name> + <key>...</key> + <type>...</type> + </param> + + <!-- Make one 'sink' node per input. Sub-nodes: + * name (an identifier for the GUI) + * type + * vlen + * optional (set to 1 for optional inputs) --> + <sink> + <name>in</name> + <type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type> + </sink> + + <!-- Make one 'source' node per output. Sub-nodes: + * name (an identifier for the GUI) + * type + * vlen + * optional (set to 1 for optional inputs) --> + <source> + <name>out</name> + <type><!-- e.g. int, float, complex, byte, short, xxx_vector, ...--></type> + </source> +</block> diff --git a/grc/gsm_receiver_hier.xml b/grc/gsm_receiver_hier.xml new file mode 100644 index 0000000..247cfcb --- /dev/null +++ b/grc/gsm_receiver_hier.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<block> + <name>GSM Receiver</name> + <key>gsm_receiver_hier</key> + <category>GSM</category> + <import>import gsm</import> + <make>gsm.receiver_hier($input_rate, $osr)</make> + <param> + <name>Input rate</name> + <key>input_rate</key> + <value>samp_rate</value> + <type>real</type> + </param> + + <param> + <name>Oversampling ration</name> + <key>osr</key> + <value>4</value> + <type>int</type> + </param> + + <sink> + <name>in</name> + <type>complex</type> + </sink> + + <source> + <name>out</name> + <type>float</type> + <vlen>142</vlen> + </source> +</block>
\ No newline at end of file |