convert xml -> yaml
This commit is contained in:
+1
-1
@@ -1,3 +1,3 @@
|
||||
file(GLOB xml_files "*.xml")
|
||||
file(GLOB xml_files "*.block.yml")
|
||||
|
||||
install(FILES ${xml_files} DESTINATION share/gnuradio/grc/blocks )
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_chunks_to_symbols_xx
|
||||
label: Chunks to Symbols
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: byte
|
||||
multiplicity: '1'
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.chunks_to_symbols()
|
||||
|
||||
file_format: 1
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<block>
|
||||
<name>Chunks to Symbols</name>
|
||||
<key>ieee802_11_chunks_to_symbols_xx</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.chunks_to_symbols()</make>
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>byte</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</source>
|
||||
</block>
|
||||
@@ -0,0 +1,35 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_decode_mac
|
||||
label: WiFi Decode MAC
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: log
|
||||
label: Log
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: byte
|
||||
vlen: 48
|
||||
|
||||
outputs:
|
||||
- domain: message
|
||||
id: out
|
||||
optional: true
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.decode_mac(${log}, ${debug})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,57 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Decode MAC</name>
|
||||
<key>ieee802_11_decode_mac</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.decode_mac($log, $debug)</make>
|
||||
|
||||
<param>
|
||||
<name>Log</name>
|
||||
<key>log</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>byte</type>
|
||||
<vlen>48</vlen>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_ether_encap
|
||||
label: Ethernet Encapsulation
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
|
||||
inputs:
|
||||
- domain: message
|
||||
id: from tap
|
||||
optional: true
|
||||
- domain: message
|
||||
id: from wifi
|
||||
optional: true
|
||||
|
||||
outputs:
|
||||
- domain: message
|
||||
id: to tap
|
||||
optional: true
|
||||
- domain: message
|
||||
id: to wifi
|
||||
optional: true
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.ether_encap(${debug})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>Ethernet Encapsulation</name>
|
||||
<key>ieee802_11_ether_encap</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.ether_encap($debug)</make>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<sink>
|
||||
<name>from tap</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</sink>
|
||||
|
||||
<sink>
|
||||
<name>from wifi</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>to tap</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
|
||||
<source>
|
||||
<name>to wifi</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
</block>
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_frame_equalizer
|
||||
label: WiFi Frame Equalizer
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: algo
|
||||
label: Algorithm
|
||||
dtype: int
|
||||
default: ieee802_11.LS
|
||||
options: [ieee802_11.LS, ieee802_11.LMS, ieee802_11.COMB, ieee802_11.STA]
|
||||
option_labels: [LS, LMS, Comb, STA]
|
||||
- id: freq
|
||||
label: Frequency
|
||||
dtype: real
|
||||
default: 5.89e9
|
||||
- id: bw
|
||||
label: Bandwidth
|
||||
dtype: real
|
||||
default: 10e6
|
||||
- id: log
|
||||
label: Log
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
vlen: 64
|
||||
multiplicity: '1'
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: byte
|
||||
vlen: 48
|
||||
multiplicity: '1'
|
||||
- domain: message
|
||||
id: symbols
|
||||
optional: true
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.frame_equalizer(${algo}, ${freq}, ${bw}, ${log}, ${debug})
|
||||
callbacks:
|
||||
- set_algorithm(${algo})
|
||||
- set_frequency(${freq})
|
||||
- set_bandwidth(${bw})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,105 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Frame Equalizer</name>
|
||||
<key>ieee802_11_frame_equalizer</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.frame_equalizer($algo, $freq, $bw, $log, $debug)</make>
|
||||
<callback>set_algorithm($algo)</callback>
|
||||
<callback>set_frequency($freq)</callback>
|
||||
<callback>set_bandwidth($bw)</callback>
|
||||
|
||||
<param>
|
||||
<name>Algorithm</name>
|
||||
<key>algo</key>
|
||||
<value>ieee802_11.LS</value>
|
||||
<type>int</type>
|
||||
|
||||
<option>
|
||||
<name>LS</name>
|
||||
<key>ieee802_11.LS</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>LMS</name>
|
||||
<key>ieee802_11.LMS</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Comb</name>
|
||||
<key>ieee802_11.COMB</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>STA</name>
|
||||
<key>ieee802_11.STA</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Frequency</name>
|
||||
<key>freq</key>
|
||||
<value>5.89e9</value>
|
||||
<type>real</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Bandwidth</name>
|
||||
<key>bw</key>
|
||||
<value>10e6</value>
|
||||
<type>real</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Log</name>
|
||||
<key>log</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>complex</type>
|
||||
<vlen>64</vlen>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>byte</type>
|
||||
<vlen>48</vlen>
|
||||
<nports>1</nports>
|
||||
</source>
|
||||
|
||||
<source>
|
||||
<name>symbols</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_mac
|
||||
label: WiFi MAC
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: src_mac
|
||||
label: SRC MAC
|
||||
dtype: int_vector
|
||||
default: '[0x23, 0x23, 0x23, 0x23, 0x23, 0x23]'
|
||||
- id: dst_mac
|
||||
label: DST MAC
|
||||
dtype: int_vector
|
||||
default: '[0x42, 0x42, 0x42, 0x42, 0x42, 0x42]'
|
||||
- id: bss_mac
|
||||
label: BSS MAC
|
||||
dtype: int_vector
|
||||
default: '[0xff, 0xff, 0xff, 0xff, 0xff, 0xff]'
|
||||
|
||||
inputs:
|
||||
- domain: message
|
||||
id: app in
|
||||
optional: true
|
||||
- domain: message
|
||||
id: phy in
|
||||
optional: true
|
||||
|
||||
outputs:
|
||||
- domain: message
|
||||
id: app out
|
||||
optional: true
|
||||
- domain: message
|
||||
id: phy out
|
||||
optional: true
|
||||
asserts:
|
||||
- ${ len(src_mac) == 6 }
|
||||
- ${ len(dst_mac) == 6 }
|
||||
- ${ len(bss_mac) == 6 }
|
||||
- ${ all([x >= 0 and 255 >= x for x in src_mac]) }
|
||||
- ${ all([x >= 0 and 255 >= x for x in dst_mac]) }
|
||||
- ${ all([x >= 0 and 255 >= x for x in bss_mac]) }
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.mac(${src_mac}, ${dst_mac}, ${bss_mac})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi MAC</name>
|
||||
<key>ieee802_11_mac</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.mac($src_mac, $dst_mac, $bss_mac)</make>
|
||||
|
||||
<param>
|
||||
<name>SRC MAC</name>
|
||||
<key>src_mac</key>
|
||||
<value>[0x23, 0x23, 0x23, 0x23, 0x23, 0x23]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>DST MAC</name>
|
||||
<key>dst_mac</key>
|
||||
<value>[0x42, 0x42, 0x42, 0x42, 0x42, 0x42]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>BSS MAC</name>
|
||||
<key>bss_mac</key>
|
||||
<value>[0xff, 0xff, 0xff, 0xff, 0xff, 0xff]</value>
|
||||
<type>int_vector</type>
|
||||
</param>
|
||||
|
||||
<check>len($src_mac) == 6</check>
|
||||
<check>len($dst_mac) == 6</check>
|
||||
<check>len($bss_mac) == 6</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $src_mac])</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $dst_mac])</check>
|
||||
<check>all([x >= 0 and 255 >= x for x in $bss_mac])</check>
|
||||
|
||||
<sink>
|
||||
<name>app in</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</sink>
|
||||
|
||||
<sink>
|
||||
<name>phy in</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>app out</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
|
||||
<source>
|
||||
<name>phy out</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
</block>
|
||||
@@ -0,0 +1,40 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_mapper
|
||||
label: WiFi Mapper
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: encoding
|
||||
label: Encoding
|
||||
dtype: int
|
||||
default: ieee802_11.BPSK_1_2
|
||||
options: [ieee802_11.BPSK_1_2, ieee802_11.BPSK_3_4, ieee802_11.QPSK_1_2, ieee802_11.QPSK_3_4,
|
||||
ieee802_11.16QAM_1_2, ieee802_11.16QAM_3_4, ieee802_11.64QAM_2_3, ieee802_11.64QAM_3_4]
|
||||
option_labels: [BPSK 1/2, BPSK 3/4, QPSK 1/2, QPSK 3/4, 16QAM 1/2, 16QAM 3/4,
|
||||
64QAM 2/3, 64QAM 3/4]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
|
||||
inputs:
|
||||
- domain: message
|
||||
id: in
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: byte
|
||||
multiplicity: '1'
|
||||
asserts:
|
||||
- ${ encoding in range(8) }
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.mapper(${encoding}, ${debug})
|
||||
callbacks:
|
||||
- set_encoding(${encoding})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,80 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Mapper</name>
|
||||
<key>ieee802_11_mapper</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.mapper($encoding, $debug)</make>
|
||||
<callback>set_encoding($encoding)</callback>
|
||||
|
||||
<param>
|
||||
<name>Encoding</name>
|
||||
<key>encoding</key>
|
||||
<value>ieee802_11.BPSK_1_2</value>
|
||||
<type>int</type>
|
||||
|
||||
<option>
|
||||
<name>BPSK 1/2</name>
|
||||
<key>ieee802_11.BPSK_1_2</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>BPSK 3/4</name>
|
||||
<key>ieee802_11.BPSK_3_4</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>QPSK 1/2</name>
|
||||
<key>ieee802_11.QPSK_1_2</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>QPSK 3/4</name>
|
||||
<key>ieee802_11.QPSK_3_4</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>16QAM 1/2</name>
|
||||
<key>ieee802_11.16QAM_1_2</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>16QAM 3/4</name>
|
||||
<key>ieee802_11.16QAM_3_4</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>64QAM 2/3</name>
|
||||
<key>ieee802_11.64QAM_2_3</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>64QAM 3/4</name>
|
||||
<key>ieee802_11.64QAM_3_4</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<check>$encoding in range(8)</check>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>byte</type>
|
||||
<nports>1</nports>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
@@ -0,0 +1,34 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_parse_mac
|
||||
label: WiFi Parse MAC
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: log
|
||||
label: Log
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
|
||||
inputs:
|
||||
- domain: message
|
||||
id: in
|
||||
|
||||
outputs:
|
||||
- domain: message
|
||||
id: fer
|
||||
optional: true
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.parse_mac(${log}, ${debug})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,54 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Parse MAC</name>
|
||||
<key>ieee802_11_parse_mac</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.parse_mac($log, $debug)</make>
|
||||
|
||||
<param>
|
||||
<name>Log</name>
|
||||
<key>log</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>message</type>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>fer</name>
|
||||
<type>message</type>
|
||||
<optional>1</optional>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_sync_long
|
||||
label: WiFi Sync Long
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: log
|
||||
label: Log
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: sync_length
|
||||
label: Sync Length
|
||||
dtype: int
|
||||
default: '240'
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
- label: in delayed
|
||||
domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
asserts:
|
||||
- ${ sync_length > 0 }
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.sync_long(${sync_length}, ${log}, ${debug})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,69 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Sync Long</name>
|
||||
<key>ieee802_11_sync_long</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.sync_long($sync_length, $log, $debug)</make>
|
||||
|
||||
<param>
|
||||
<name>Log</name>
|
||||
<key>log</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Sync Length</name>
|
||||
<key>sync_length</key>
|
||||
<value>240</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
|
||||
<check>$sync_length > 0</check>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<sink>
|
||||
<name>in delayed</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
@@ -0,0 +1,54 @@
|
||||
# auto-generated by grc.converter
|
||||
|
||||
id: ieee802_11_sync_short
|
||||
label: WiFi Sync Short
|
||||
category: '[IEEE802.11]'
|
||||
|
||||
parameters:
|
||||
- id: log
|
||||
label: Log
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: debug
|
||||
label: Debug
|
||||
dtype: bool
|
||||
default: 'False'
|
||||
options: ['True', 'False']
|
||||
option_labels: [Enable, Disable]
|
||||
- id: threshold
|
||||
label: Threshold
|
||||
dtype: real
|
||||
default: '0.8'
|
||||
- id: min_plateau
|
||||
label: Min Plateau
|
||||
dtype: int
|
||||
default: '2'
|
||||
|
||||
inputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
- label: abs
|
||||
domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
- label: cor
|
||||
domain: stream
|
||||
dtype: float
|
||||
multiplicity: '1'
|
||||
|
||||
outputs:
|
||||
- domain: stream
|
||||
dtype: complex
|
||||
multiplicity: '1'
|
||||
asserts:
|
||||
- ${ threshold > 0 }
|
||||
- ${ min_plateau > 0 }
|
||||
|
||||
templates:
|
||||
imports: import ieee802_11
|
||||
make: ieee802_11.sync_short(${threshold}, ${min_plateau}, ${log}, ${debug})
|
||||
|
||||
file_format: 1
|
||||
@@ -1,83 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<block>
|
||||
<name>WiFi Sync Short</name>
|
||||
<key>ieee802_11_sync_short</key>
|
||||
<category>[IEEE802.11]</category>
|
||||
<import>import ieee802_11</import>
|
||||
<make>ieee802_11.sync_short($threshold, $min_plateau, $log, $debug)</make>
|
||||
|
||||
<param>
|
||||
<name>Log</name>
|
||||
<key>log</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Debug</name>
|
||||
<key>debug</key>
|
||||
<value>False</value>
|
||||
<type>bool</type>
|
||||
|
||||
<option>
|
||||
<name>Enable</name>
|
||||
<key>True</key>
|
||||
</option>
|
||||
<option>
|
||||
<name>Disable</name>
|
||||
<key>False</key>
|
||||
</option>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Threshold</name>
|
||||
<key>threshold</key>
|
||||
<value>0.8</value>
|
||||
<type>real</type>
|
||||
</param>
|
||||
|
||||
<param>
|
||||
<name>Min Plateau</name>
|
||||
<key>min_plateau</key>
|
||||
<value>2</value>
|
||||
<type>int</type>
|
||||
</param>
|
||||
|
||||
<check>$threshold > 0</check>
|
||||
<check>$min_plateau > 0</check>
|
||||
|
||||
<sink>
|
||||
<name>in</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<sink>
|
||||
<name>abs</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<sink>
|
||||
<name>cor</name>
|
||||
<type>float</type>
|
||||
<nports>1</nports>
|
||||
</sink>
|
||||
|
||||
<source>
|
||||
<name>out</name>
|
||||
<type>complex</type>
|
||||
<nports>1</nports>
|
||||
</source>
|
||||
|
||||
</block>
|
||||
Reference in New Issue
Block a user