Advertisement
Guest User

blocks_null_sink.block.yml

a guest
Aug 13th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.01 KB | None | 0 0
  1. # auto-generated by grc.converter
  2.  
  3. id: blocks_null_sink
  4. label: Null Sink
  5.  
  6. parameters:
  7. -   id: type
  8.     label: Input Type
  9.     dtype: enum
  10.     options: [complex, float, int, short, byte]
  11.     option_attributes:
  12.         size: [gr.sizeof_gr_complex, gr.sizeof_float, gr.sizeof_int, gr.sizeof_short,
  13.             gr.sizeof_char]
  14.     hide: part
  15. -   id: vlen
  16.     label: Vec Length
  17.     dtype: int
  18.     default: '1'
  19.     hide: ${ 'part' if vlen == 1 else 'none' }
  20. -   id: num_inputs
  21.     label: Num Inputs
  22.     dtype: int
  23.     default: '1'
  24.     hide: part
  25. -   id: bus_conns
  26.     label: Bus Connections
  27.     dtype: raw
  28.     default: '[[0,],]'
  29.     hide: part
  30.  
  31. inputs:
  32. -   domain: stream
  33.     dtype: ${ type }
  34.     vlen: ${ vlen }
  35.     multiplicity: ${ num_inputs }
  36.  
  37. templates:
  38.     imports: from gnuradio import blocks
  39.     make: blocks.null_sink(${type.size}*${vlen})
  40.  
  41. cpp_templates:
  42.     includes: '#include <gnuradio/blocks/null_sink.h>'
  43.     make: 'blocks::null_sink::make(${type.size}*${vlen});'
  44.  
  45. file_format: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement