diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2014-05-05 21:46:53 -0400 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2014-05-05 21:46:53 -0400 |
commit | 58d003bcdd0a4982941ccc700a6158aaa25a02d2 (patch) | |
tree | e07744f51605a57eed4e130fdd5dd69edf60184b /gr-blocks/grc | |
parent | 967489ad32b6235b61dd47890c2d6511e593df7b (diff) |
blocks: adding blocks.pdu_filter and blocks.pdu_set
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_block_tree.xml | 1 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_pdu_filter.xml | 35 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_pdu_set.xml | 35 |
3 files changed, 71 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml index 22d0e5c7c8..7001d906ac 100644 --- a/gr-blocks/grc/blocks_block_tree.xml +++ b/gr-blocks/grc/blocks_block_tree.xml @@ -121,6 +121,7 @@ <block>blocks_message_burst_source</block> <block>blocks_message_strobe</block> <block>blocks_message_debug</block> + <block>blocks_pdu_filter</block> <block>blocks_pdu_to_tagged_stream</block> <block>blocks_tagged_stream_multiply_length</block> <block>blocks_tagged_stream_to_pdu</block> diff --git a/gr-blocks/grc/blocks_pdu_filter.xml b/gr-blocks/grc/blocks_pdu_filter.xml new file mode 100644 index 0000000000..a9565c9b9c --- /dev/null +++ b/gr-blocks/grc/blocks_pdu_filter.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<!-- +################################################### +## PDU Filter +################################################### + --> +<block> + <name>PDU Filter</name> + <key>blocks_pdu_filter</key> + <import>from gnuradio import blocks</import> + <import>import pmt</import> + <make>blocks.pdu_filter($k, $v)</make> + <param> + <name>Key</name> + <key>k</key> + <value>pmt.intern("key")</value> + <type>raw</type> + </param> + <param> + <name>Value</name> + <key>v</key> + <value>pmt.intern("value")</value> + <type>raw</type> + </param> + <sink> + <name>pdus</name> + <type>message</type> + <optional>1</optional> + </sink> + <source> + <name>pdus</name> + <type>message</type> + <optional>1</optional> + </source> +</block> diff --git a/gr-blocks/grc/blocks_pdu_set.xml b/gr-blocks/grc/blocks_pdu_set.xml new file mode 100644 index 0000000000..1e7157fa8a --- /dev/null +++ b/gr-blocks/grc/blocks_pdu_set.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<!-- +################################################### +## PDU Set +################################################### + --> +<block> + <name>PDU Set</name> + <key>blocks_pdu_set</key> + <import>from gnuradio import blocks</import> + <import>import pmt</import> + <make>blocks.pdu_set($k, $v)</make> + <param> + <name>Key</name> + <key>k</key> + <value>pmt.intern("key")</value> + <type>raw</type> + </param> + <param> + <name>Value</name> + <key>v</key> + <value>pmt.intern("value")</value> + <type>raw</type> + </param> + <sink> + <name>pdus</name> + <type>message</type> + <optional>1</optional> + </sink> + <source> + <name>pdus</name> + <type>message</type> + <optional>1</optional> + </source> +</block> |