diff options
Diffstat (limited to 'gr-aistx/grc')
-rw-r--r-- | gr-aistx/grc/AISTX_Build_Frame.xml | 47 | ||||
-rw-r--r-- | gr-aistx/grc/AISTX_DebugME.xml | 32 | ||||
-rw-r--r-- | gr-aistx/grc/AISTX_nrz_to_nrzi.xml | 15 | ||||
-rw-r--r-- | gr-aistx/grc/CMakeLists.txt | 23 |
4 files changed, 117 insertions, 0 deletions
diff --git a/gr-aistx/grc/AISTX_Build_Frame.xml b/gr-aistx/grc/AISTX_Build_Frame.xml new file mode 100644 index 0000000..61f7198 --- /dev/null +++ b/gr-aistx/grc/AISTX_Build_Frame.xml @@ -0,0 +1,47 @@ +<?xml version="1.0"?> +<block> + <name>AIS Frame Builder</name> + <key>AISTX_Build_Frame</key> + <category>AISTX</category> + <import>import AISTX</import> + <make>AISTX.Build_Frame($sentence, $repeat, $enable_NRZI)</make> + <param> + <name>Sentence</name> + <key>sentence</key> + <value>010010000011101011110111001110011000100000000000000000100000001011001000001011000101000110100010010100001101011001111011000011111111111011100101110011100000000000000110</value> + <type>string</type> + </param> + <param> + <name>Repeat</name> + <key>repeat</key> + <value>True</value> + <type>enum</type> + <option> + <name>Yes</name> + <key>True</key> + </option> + <option> + <name>No</name> + <key>False</key> + </option> + </param> + <param> + <name>Enable_NRZI_Conversion</name> + <key>enable_NRZI</key> + <value>True</value> + <type>enum</type> + <option> + <name>Yes</name> + <key>True</key> + </option> + <option> + <name>No</name> + <key>False</key> + </option> + </param> + + <source> + <name>out</name> + <type>byte</type> + </source> +</block> diff --git a/gr-aistx/grc/AISTX_DebugME.xml b/gr-aistx/grc/AISTX_DebugME.xml new file mode 100644 index 0000000..9dcdc31 --- /dev/null +++ b/gr-aistx/grc/AISTX_DebugME.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<block> + <name>DebugME</name> + <key>AISTX_DebugME</key> + <category>AISTX</category> + <import>import AISTX</import> + <make>AISTX.DebugME($type.size)</make> + <param> + <name>Input Type</name> + <key>type</key> + <type>enum</type> + <option> + <name>Complex</name> + <key>complex</key> + <opt>size:gr.sizeof_gr_complex</opt> + </option> + <option> + <name>Float</name> + <key>float</key> + <opt>size:gr.sizeof_float</opt> + </option> + <option> + <name>Byte</name> + <key>byte</key> + <opt>size:gr.sizeof_char</opt> + </option> + </param> + <sink> + <name>in</name> + <type>$type</type> + </sink> +</block> diff --git a/gr-aistx/grc/AISTX_nrz_to_nrzi.xml b/gr-aistx/grc/AISTX_nrz_to_nrzi.xml new file mode 100644 index 0000000..d2191bb --- /dev/null +++ b/gr-aistx/grc/AISTX_nrz_to_nrzi.xml @@ -0,0 +1,15 @@ +<block> + <name>Nrz to nrzi</name> + <key>AISTX_nrz_to_nrzi</key> + <category>AISTX</category> + <import>import AISTX</import> + <make>AISTX.nrz_to_nrzi()</make> + <sink> + <name>in</name> + <type>byte</type> + </sink> + <source> + <name>out</name> + <type>byte</type> + </source> +</block> diff --git a/gr-aistx/grc/CMakeLists.txt b/gr-aistx/grc/CMakeLists.txt new file mode 100644 index 0000000..2ae27c1 --- /dev/null +++ b/gr-aistx/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 + AISTX_nrz_to_nrzi.xml + AISTX_Build_Frame.xml + AISTX_DebugME.xml DESTINATION share/gnuradio/grc/blocks +) |