Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / blks2_packet_decoder.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Packet Decoder
5 ###################################################
6  -->
7 <block>
8         <name>Packet Decoder</name>
9         <key>blks2_packet_decoder</key>
10         <import>from grc_gnuradio import blks2 as grc_blks2</import>
11         <make>grc_blks2.packet_demod_$(type.fcn)(grc_blks2.packet_decoder(
12                 access_code=$access_code,
13                 threshold=$threshold,
14                 callback=lambda ok, payload: self.$(id).recv_pkt(ok, payload),
15         ),
16 )</make>
17         <param>
18                 <name>Output Type</name>
19                 <key>type</key>
20                 <value>float</value>
21                 <type>enum</type>
22                 <option>
23                         <name>Complex</name>
24                         <key>complex</key>
25                         <opt>fcn:c</opt>
26                 </option>
27                 <option>
28                         <name>Float</name>
29                         <key>float</key>
30                         <opt>fcn:f</opt>
31                 </option>
32                 <option>
33                         <name>Int</name>
34                         <key>int</key>
35                         <opt>fcn:i</opt>
36                 </option>
37                 <option>
38                         <name>Short</name>
39                         <key>short</key>
40                         <opt>fcn:s</opt>
41                 </option>
42                 <option>
43                         <name>Byte</name>
44                         <key>byte</key>
45                         <opt>fcn:b</opt>
46                 </option>
47         </param>
48         <param>
49                 <name>Access Code</name>
50                 <key>access_code</key>
51                 <value></value>
52                 <type>string</type>
53         </param>
54         <param>
55                 <name>Threshold</name>
56                 <key>threshold</key>
57                 <value>-1</value>
58                 <type>int</type>
59         </param>
60         <sink>
61                 <name>in</name>
62                 <type>byte</type>
63         </sink>
64         <source>
65                 <name>out</name>
66                 <type>$type</type>
67         </source>
68         <doc>
69 Packet decoder block, for use with the gnuradio demodulator blocks: gmsk, psk, qam.
70
71 Access Code: string of 1's and 0's, leave blank for automatic.
72
73 Threshold: -1 for automatic.
74         </doc>
75 </block>