<?xml version="1.0"?>
<!--
###################################################
##Probe Average Magnitude Squared
###################################################
 -->
<block>
	<name>Probe Avg Mag^2</name>
	<key>analog_probe_avg_mag_sqrd_x</key>
	<import>from gnuradio import analog</import>
	<make>analog.probe_avg_mag_sqrd_$(type)($threshold, $alpha)</make>
	<callback>set_alpha($alpha)</callback>
	<callback>set_threshold($threshold)</callback>
	<callback>reset()</callback>
	<param>
		<name>Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Complex</name>
			<key>c</key>
			<opt>input:complex</opt>
			<opt>optional:1</opt>
			<opt>hide:all</opt>
		</option>
		<option>
			<name>Float</name>
			<key>f</key>
			<opt>input:float</opt>
			<opt>optional:1</opt>
			<opt>hide:all</opt>
		</option>
		<option>
			<name>Complex->Float</name>
			<key>cf</key>
			<opt>input:complex</opt>
			<opt>optional:0</opt>
			<opt>hide:</opt>
		</option>
	</param>
	<param>
		<name>Threshold (dB)</name>
		<key>threshold</key>
		<value>0</value>
		<type>real</type>
	</param>
	<param>
		<name>Alpha</name>
		<key>alpha</key>
		<value>1</value>
		<type>real</type>
	</param>
	<sink>
		<name>in</name>
		<type>$type.input</type>
	</sink>
	<source>
		<name>out</name>
		<type>float</type>
		<optional>$type.optional</optional>
		<hide>$type.hide</hide>
	</source>
	<doc>
Available functions to probe: level()

Use with the function probe block.
	</doc>
</block>
