aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/python/deframer.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gr-fadingui/python/deframer.py')
-rw-r--r--src/gr-fadingui/python/deframer.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gr-fadingui/python/deframer.py b/src/gr-fadingui/python/deframer.py
new file mode 100644
index 0000000..b7ee663
--- /dev/null
+++ b/src/gr-fadingui/python/deframer.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright 2021 Naoki Pross.
+
+import numpy as np
+from gnuradio import gr
+
+class deframer(gr.sync_block):
+ """
+ docstring for block deframer
+ """
+ def __init__(self):
+ gr.sync_block.__init__(self,
+ name="deframer",
+ in_sig=[np.byte],
+ out_sig=[np.byte])
+
+
+ def work(self, input_items, output_items):
+ in0 = input_items[0]
+ out = output_items[0]
+
+ out[:] = in0
+ return len(output_items[0])
+