summaryrefslogtreecommitdiff
path: root/gr-channels/grc/channels_quantizer.block.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gr-channels/grc/channels_quantizer.block.yml')
-rw-r--r--gr-channels/grc/channels_quantizer.block.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/gr-channels/grc/channels_quantizer.block.yml b/gr-channels/grc/channels_quantizer.block.yml
new file mode 100644
index 0000000000..68fcf50299
--- /dev/null
+++ b/gr-channels/grc/channels_quantizer.block.yml
@@ -0,0 +1,24 @@
+id: channels_quantizer
+label: Quantizer
+
+parameters:
+- id: bits
+ label: Bits
+ dtype: int
+ default: '16'
+
+inputs:
+- domain: stream
+ dtype: float
+
+outputs:
+- domain: stream
+ dtype: float
+
+templates:
+ imports: from gnuradio import channels
+ make: channels.quantizer(${bits})
+ callbacks:
+ - set_bits(${bits})
+
+file_format: 1