diff options
author | Johnathan Corgan | 2012-07-02 09:13:13 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-07-02 09:13:13 -0700 |
commit | 025f323d9857715a31a1117693c5debd19393a46 (patch) | |
tree | 6a947bbb5d49cbe7b4a42201b696b5c3bdff5826 /gr-blocks/grc | |
parent | cc085e128901a9f3e8bfcc45d1834a62d747726c (diff) | |
download | gnuradio-025f323d9857715a31a1117693c5debd19393a46.tar.gz gnuradio-025f323d9857715a31a1117693c5debd19393a46.tar.bz2 gnuradio-025f323d9857715a31a1117693c5debd19393a46.zip |
blocks: added gr::blocks::and_const_XX (bb ss ii)
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_and_const_xx.xml | 48 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_block_tree.xml | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_and_const_xx.xml b/gr-blocks/grc/blocks_and_const_xx.xml new file mode 100644 index 000000000..d0abbfe51 --- /dev/null +++ b/gr-blocks/grc/blocks_and_const_xx.xml @@ -0,0 +1,48 @@ +<?xml version="1.0"?> +<!-- +################################################### +## And Const Block: +## all types, 1 output, 1 input & const +################################################### + --> +<block> + <name>And Const</name> + <key>blocks_and_const_xx</key> + <import>from gnuradio import blocks</import> + <make>blocks.and_const_$(type.fcn)($const)</make> + <callback>set_k($const)</callback> + <param> + <name>IO Type</name> + <key>type</key> + <type>enum</type> + <option> + <name>Int</name> + <key>int</key> + <opt>fcn:ii</opt> + </option> + <option> + <name>Short</name> + <key>short</key> + <opt>fcn:ss</opt> + </option> + <option> + <name>Byte</name> + <key>byte</key> + <opt>fcn:bb</opt> + </option> + </param> + <param> + <name>Constant</name> + <key>const</key> + <value>0</value> + <type>int</type> + </param> + <sink> + <name>in</name> + <type>$type</type> + </sink> + <source> + <name>out</name> + <type>$type</type> + </source> +</block> diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml index 3aed8dc22..e5566ee43 100644 --- a/gr-blocks/grc/blocks_block_tree.xml +++ b/gr-blocks/grc/blocks_block_tree.xml @@ -44,6 +44,7 @@ <cat> <name>Boolean Operations (New) </name> <block>blocks_and_xx.xml</block> + <block>blocks_and_const_xx.xml</block> </cat> <cat> <name>Stream Type Conversions (New) </name> |