id: blocks_float_to_uchar
label: Float To UChar
flags: [ python, cpp ]

inputs:
-   domain: stream
    dtype: float

outputs:
-   domain: stream
    dtype: byte

templates:
    imports: from gnuradio import blocks
    make: blocks.float_to_uchar()

cpp_templates:
    includes: ['#include <gnuradio/blocks/float_to_uchar.h>']
    declarations: 'blocks::float_to_uchar::sptr ${id};'
    make: 'this->${id} = blocks::float_to_uchar::make();'

file_format: 1
