You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
<?xml version="1.0"?> |
|
<block> |
|
<name>max_freq</name> |
|
<key>crfa_max_freq</key> |
|
<category>[crfa]</category> |
|
<import>import crfa</import> |
|
<make>crfa.max_freq($fft_len, $num_decoders, $center_freq, $samp_rate)</make> |
|
<!-- Make one 'param' node for every Parameter you want settable from the GUI. |
|
Sub-nodes: |
|
* name |
|
* key (makes the value accessible as $keyname, e.g. in the make node) |
|
* type --> |
|
<callback>set_center_freq($center_freq);</callback> |
|
<param> |
|
<name>fft_len</name> |
|
<key>fft_len</key> |
|
<type>int</type> |
|
</param> |
|
<param> |
|
<name>num_decoders</name> |
|
<key>num_decoders</key> |
|
<type>int</type> |
|
</param> |
|
<param> |
|
<name>center_freq</name> |
|
<key>center_freq</key> |
|
<type>float</type> |
|
</param> |
|
<param> |
|
<name>samp_rate</name> |
|
<key>samp_rate</key> |
|
<type>int</type> |
|
</param> |
|
|
|
|
|
<!-- Make one 'sink' node per input. Sub-nodes: |
|
* name (an identifier for the GUI) |
|
* type |
|
* vlen |
|
* optional (set to 1 for optional inputs) --> |
|
<sink> |
|
<name>in</name> |
|
<type>float</type> |
|
<vlen>$fft_len</vlen> |
|
</sink> |
|
<source> |
|
<name>out</name> |
|
<type>message</type> |
|
<optional>1</optional> |
|
</source> |
|
|
|
</block>
|
|
|