diff options
author | Johnathan Corgan | 2012-06-26 07:06:53 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-06-26 07:06:53 -0700 |
commit | 0b7655a76e5c73b8f5a8310909cf038f12cbb869 (patch) | |
tree | 0cb43310fbe0ad55f19b3043c7bc9bd06e876095 /gr-blocks/grc | |
parent | 86f15ba3488cde9eededa2af5af8dcadc01e9e47 (diff) | |
download | gnuradio-0b7655a76e5c73b8f5a8310909cf038f12cbb869.tar.gz gnuradio-0b7655a76e5c73b8f5a8310909cf038f12cbb869.tar.bz2 gnuradio-0b7655a76e5c73b8f5a8310909cf038f12cbb869.zip |
blocks: added gr::blocks::float_to_uchar
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_block_tree.xml | 1 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_float_uchar.xml | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_block_tree.xml b/gr-blocks/grc/blocks_block_tree.xml index f73c634a7..32a81c07a 100644 --- a/gr-blocks/grc/blocks_block_tree.xml +++ b/gr-blocks/grc/blocks_block_tree.xml @@ -52,5 +52,6 @@ <block>blocks_float_to_complex</block> <block>blocks_float_to_int</block> <block>blocks_float_to_short</block> + <block>blocks_float_to_uchar</block> </cat> </cat> diff --git a/gr-blocks/grc/blocks_float_uchar.xml b/gr-blocks/grc/blocks_float_uchar.xml new file mode 100644 index 000000000..d190eafcf --- /dev/null +++ b/gr-blocks/grc/blocks_float_uchar.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!-- +################################################### +##Float to Unsigned Char: +################################################### + --> +<block> + <name>Float To UChar</name> + <key>blocks_float_to_uchar</key> + <import>from gnuradio import blocks</import> + <make>blocks.float_to_uchar()</make> + <sink> + <name>in</name> + <type>float</type> + </sink> + <source> + <name>out</name> + <type>byte</type> + </source> +</block> |