- added Bit Packer

git-svn-id: http://moon:8086/svn/software/trunk/projects/GnuRadio@423 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2019-02-10 15:55:43 +00:00
parent e7e3babb50
commit 28681c4973
4 changed files with 295 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<block>
<name>Bit Packer</name>
<key>jay_bit_packer</key>
<category>[JAY]</category>
<import>import jay</import>
<make>jay.bit_packer($numBitsIn, $numBitsOut, $endianess)</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>Number of input bits</name>
<key>numBitsIn</key>
<type>int</type>
</param>
<param>
<name>Number of output bits</name>
<key>numBitsOut,</key>
<type>int</type>
</param>
<param>
<name>Endianess</name>
<key>endianess</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>int</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>int</type>
</source>
</block>