<?xml version="1.0"?>
<block>
	<name>AX.25 Decoder</name>
	<key>satnogs_ax25_decoder_bm</key>
	<import>import satnogs</import>
	<make>satnogs.ax25_decoder_bm($addr, $ssid, $promisc, $descrambling, $max_frame_len, $n_sync_flags)</make>

	<param>
		<name>Receiver Callsign</name>
		<key>addr</key>
		<value>'GND'</value>
		<type>string</type>
	</param>

	<param>
		<name>Receiver SSID</name>
		<key>ssid</key>
		<value>0</value>
		<type>int</type>
	</param>


	<param>
		<name>Promiscuous mode</name>
		<key>promisc</key>
		<type>enum</type>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
	</param>

	<param>
		<name>G3RUH descrambling</name>
		<key>descrambling</key>
		<type>enum</type>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
	</param>

	<param>
		<name>Maximum frame length</name>
		<key>max_frame_len</key>
		<value>256</value>
		<type>int</type>
	</param>
	
	<param>
		<name>AX.25 Leading SYNC flags Threshold</name>
		<key>n_sync_flags</key>
		<value>2</value>
		<type>int</type>
	</param>

	<sink>
		<name>in</name>
		<type>byte</type>
	</sink>

	<source>
		<name>pdu</name>
		<type>message</type>
	</source>

	<source>
		<name>failed_pdu</name>
		<type>message</type>
		<optional>1</optional>
	</source>
</block>

