blob: b7ee66349fb9f268be7c5071e600b1efa380d777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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])
|