<?xml version="1.0"?>
<block>
	<name>UPSAT FSK Frame Acquisition</name>
	<key>satnogs_upsat_fsk_frame_acquisition</key>
	<import>import satnogs</import>
	<make>satnogs.upsat_fsk_frame_acquisition($preamble, $sync_word, $whitening, $manchester, $check_crc, $ax_25, $whitening_mask, $whitening_seed, $whitening_order, $packet_len)</make>

	<param>
		<name>Frame Preamble</name>
		<key>preamble</key>
		<type>raw</type>
	</param>

	<param>
		<name>Synchronization Word</name>
		<key>sync_word</key>
		<type>raw</type>
	</param>

	<param>
		<name>Whitening</name>
		<key>whitening</key>
		<type>enum</type>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
	</param>

	<param>
		<name>Use Manchester Coding</name>
		<key>manchester</key>
		<type>enum</type>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
	</param>
	
	<param>
		<name>Check CRC</name>
		<key>check_crc</key>
		<type>enum</type>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
	</param>

	<param>
		<name>Use AX.25 encapsulation</name>
		<key>ax_25</key>
		<type>enum</type>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
	</param>
	
	<param>
		<name>Whitening mask</name>
		<key>whitening_mask</key>
		<value>0x1001</value>
		<type>int</type>
	</param>
	
	<param>
		<name>Whitening seed</name>
		<key>whitening_seed</key>
		<value>0x1FF</value>
		<type>int</type>
	</param>
	
	<param>
		<name>Whitening order</name>
		<key>whitening_order</key>
		<value>17</value>
		<type>int</type>
	</param>
	
	<param>
		<name>Packet length</name>
		<key>packet_len</key>
		<value>0</value>
		<type>int</type>
	</param>

	<sink>
		<name>in</name>
		<type>float</type>
	</sink>

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