- added jay_add and jay_peak_detect
git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@431 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -22,5 +22,7 @@ install(FILES
|
||||
jay_square2_ff.xml
|
||||
jay_bit_slicer.xml
|
||||
jay_pocsag_decoder.xml
|
||||
jay_bit_packer.xml DESTINATION share/gnuradio/grc/blocks
|
||||
jay_bit_packer.xml
|
||||
jay_add.xml
|
||||
jay_peak_detect.xml DESTINATION share/gnuradio/grc/blocks
|
||||
)
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>add</name>
|
||||
<key>jay_add</key>
|
||||
<category>[jay]</category>
|
||||
<import>import jay</import>
|
||||
<make>jay.add()</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>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>peak_detect</name>
|
||||
<key>jay_peak_detect</key>
|
||||
<category>[jay]</category>
|
||||
<import>import jay</import>
|
||||
<make>jay.peak_detect($alpha_s, $alpha_m, $vlen)</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>Alpha short</name>
|
||||
<key>alpha_s</key>
|
||||
<type>float</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Alpha medium</name>
|
||||
<key>alpha_m</key>
|
||||
<type>float</type>
|
||||
</param>
|
||||
<param>
|
||||
<name>Vector length</name>
|
||||
<key>vlen</key>
|
||||
<type>int</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>float</type>
|
||||
<vlen>$vlen</vlen>
|
||||
</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>float</type>
|
||||
<vlen>$vlen</vlen>
|
||||
</source>
|
||||
</block>
|
||||
Reference in New Issue
Block a user