<device>
    <nickname offset-bytes="80" bytes="32"/>
	<mixer>
		<inputs num="30" pin0="0x300"/>
		<mixes num="16" pin0="0x300"/>
	</mixer>
	<inputs>
		<analogue name="Analogue 1" stereo-name="Analogue 1-2" pin="0x400">
            <air offset-bytes="174" bits="1" command="7"/>
            <mode offset-bytes="166" bits="2" command="6">
                <enum value="Line" option="1"/>
                <enum value="Inst" option="2"/>
            </mode>
        </analogue>
        <analogue name="Analogue 2" pin="0x401">
            <air offset-bytes="175" bits="1" command="7"/>
            <mode offset-bytes="167" bits="2" command="6">
                <enum value="Line" option="1"/>
                <enum value="Inst" option="2"/>
            </mode>
        </analogue>
        <analogue name="Analogue 3" stereo-name="Analogue 3-4" pin="0x402">
            <air offset-bytes="176" bits="1" command="7"/>
        </analogue>
        <analogue name="Analogue 4" pin="0x403">
            <air offset-bytes="177" bits="1" command="7"/>
        </analogue>
        <analogue name="Analogue 5" stereo-name="Analogue 5-6" pin="0x404">
            <air offset-bytes="178" bits="1" command="7"/>
        </analogue>
        <analogue name="Analogue 6" pin="0x405">
            <air offset-bytes="179" bits="1" command="7"/>
        </analogue>
        <analogue name="Analogue 7" stereo-name="Analogue 7-8" pin="0x406">
            <air offset-bytes="180" bits="1" command="7"/>
        </analogue>
        <analogue name="Analogue 8" pin="0x407">
            <air offset-bytes="181" bits="1" command="7"/>
        </analogue>
		<spdif-rca name="S/PDIF 1" stereo-name="S/PDIF 1-2" pin="0x408" />
		<spdif-rca name="S/PDIF 2" pin="0x409" />
		<adat name="ADAT 1" stereo-name="ADAT 1-2" pin="0x200" />
		<adat name="ADAT 2" pin="0x201" />
		<adat name="ADAT 3" stereo-name="ADAT 3-4" pin="0x202" pin-h="0x0" />
		<adat name="ADAT 4" pin="0x203" pin-h="0x0" />
		<adat name="ADAT 5" stereo-name="ADAT 5-6" pin="0x204" pin-m="0x0" />
		<adat name="ADAT 6" pin="0x205" pin-m="0x0" />
		<adat name="ADAT 7" stereo-name="ADAT 7-8" pin="0x206" pin-m="0x0" />
		<adat name="ADAT 8" pin="0x207" pin-m="0x0" />
		<playback name="Playback 1" stereo-name="Playback 1-2" pin="0x600"/>
		<playback name="Playback 2" pin="0x601"/>
		<playback name="Playback 3" stereo-name="Playback 3-4" pin="0x602"/>
		<playback name="Playback 4" pin="0x603"/>
		<playback name="Playback 5" stereo-name="Playback 5-6" pin="0x604"/>
		<playback name="Playback 6" pin="0x605"/>
		<playback name="Playback 7" stereo-name="Playback 7-8" pin="0x606"/>
		<playback name="Playback 8" pin="0x607"/>
		<playback name="Playback 9" stereo-name="Playback 9-10" pin="0x608"/>
		<playback name="Playback 10" pin="0x609"/>
		<playback name="Playback 11" stereo-name="Playback 11-12" pin="0x60a"/>
		<playback name="Playback 12" pin="0x60b" />
		<playback name="Playback 13" stereo-name="Playback 13-14" pin="0x60c"/>
		<playback name="Playback 14" pin="0x60d"/>
		<playback name="Playback 15" stereo-name="Playback 15-16" pin="0x60e" pin-h="0x0"/>
		<playback name="Playback 16" pin="0x60f" pin-h="0x0"/>
		<playback name="Playback 17" stereo-name="Playback 17-18" pin="0x610" pin-m="0x0"/>
		<playback name="Playback 18" pin="0x611" pin-m="0x0"/>
		<playback name="Playback 19" stereo-name="Playback 19-20" pin="0x612" pin-m="0x0"/>
		<playback name="Playback 20" pin="0x613" pin-m="0x0"/>
	</inputs>
	<outputs>
		<analogue name="Monitor Output 1" stereo-name="Monitor Outputs 1-2" pin="0x408" monitor="true">
			<gain offset-bytes="32" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="52" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="2" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="0" bits="1" command="3"/>
		</analogue>
		<analogue name="Monitor Output 2" pin="0x409" monitor="true">
			<gain offset-bytes="33" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="52" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="3" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="1" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 3" stereo-name="Line Outputs 3-4" pin="0x400">
			<gain offset-bytes="36" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="56" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="4" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="2" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 4" pin="0x401">
			<gain offset-bytes="37" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="56" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="5" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="3" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 5" stereo-name="Line Outputs 5-6" pin="0x402">
			<gain offset-bytes="40" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="60" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="6" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="4" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 6" pin="0x403">
			<gain offset-bytes="41" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="60" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="73" offset-bits="7" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="5" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 7" stereo-name="Line Outputs 7-8" pin="0x404" headphone="1">
			<gain offset-bytes="44" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="64" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="74" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="6" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 8" pin="0x405" headphone="1">
			<gain offset-bytes="45" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="64" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="74" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="72" offset-bits="7" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 9" stereo-name="Line Outputs 9-10" pin="0x406" headphone="2">
			<gain offset-bytes="48" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="68" offset-bits="0" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="74" offset-bits="2" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="73" offset-bits="0" bits="1" command="3"/>
		</analogue>
		<analogue name="Line Output 10" pin="0x407" headphone="2">
			<gain offset-bytes="49" bits="8" command="1"/>
            <enable-hardware-gain offset-bytes="68" offset-bits="1" bits="1" command="3"/>
            <enable-hardware-dim offset-bytes="74" offset-bits="3" bits="1" command="3"/>
            <enable-hardware-mute offset-bytes="73" offset-bits="1" bits="1" command="3"/>
		</analogue>
        
		<spdif-rca name="S/PDIF Output 1" stereo-name="S/PDIF Outputs 1-2" pin="0x186"/>
		<spdif-rca name="S/PDIF Output 2" pin="0x187"/>
        
		<adat name="ADAT Output 1" stereo-name="ADAT Outputs 1-2" pin="0x200"/>
		<adat name="ADAT Output 2" pin="0x201"/>
		<adat name="ADAT Output 3" stereo-name="ADAT Outputs 3-4" pin="0x202" pin-h="0x0"/>
		<adat name="ADAT Output 4" pin="0x203" pin-h="0x0"/>
		<adat name="ADAT Output 5" stereo-name="ADAT Outputs 5-6" pin="0x204" pin-m="0x0"/>
		<adat name="ADAT Output 6" pin="0x205" pin-m="0x0"/>
		<adat name="ADAT Output 7" stereo-name="ADAT Outputs 7-8" pin="0x206" pin-m="0x0"/>
		<adat name="ADAT Output 8" pin="0x207" pin-m="0x0"/>
    </outputs>
    <record-outputs>
		<record pin="0x600" input="0"/>
		<record pin="0x601" input="1"/>
		<record pin="0x602" input="2"/>
		<record pin="0x603" input="3"/>
		<record pin="0x604" input="4"/>
		<record pin="0x605" input="5"/>
		<record pin="0x606" input="6"/>
		<record pin="0x607" input="7"/>
		<record pin="0x608" input="8"/>
		<record pin="0x609" input="9"/>
        <loopback name="Loopback 1" stereo-name="Loopback 1-2" pin="0x60a"/>
        <loopback name="Loopback 2" pin="0x60b"/>
		<record pin="0x60c" input="10"/>
		<record pin="0x60d" input="11"/>
		<record pin="0x60e" pin-h="0x0" input="12"/>
		<record pin="0x60f" pin-h="0x0" input="13"/>
		<record pin="0x610" pin-m="0x0" input="14"/>
		<record pin="0x611" pin-m="0x0" input="15"/>
        <record pin="0x612" pin-m="0x0" input="16"/>
		<record pin="0x613" pin-m="0x0" input="17"/>
	</record-outputs>
    <monitoring offset-bytes="24" bytes="92">
        <preset>
            <enum value="1-2" option="2" mapping="0, 0, x, x, x, x, x, x, x, x"/>
            <enum value="1-4" option="4" mapping="0, 0, 0, 0, x, x, x, x, x, x"/>
            <enum value="1-6" option="6" mapping="0, 0, 0, 0, 0, 0, x, x, x, x"/>
            <enum value="1-8" option="8" mapping="0, 0, 0, 0, 0, 0, 0, 0, x, x"/>
            <enum value="All" option="1" mapping="0, 0, 0, 0, 0, 0, 0, 0, 0, 0"/>
            <enum value="None" option="0" mapping="x, x, x, x, x, x, x, x, x, x"/>
        </preset>
        
        <hardware-controls>
            <group exclusive="true">
                <mute offset-bytes="24" bits="1" command="2"/>
                <dim offset-bytes="28" bits="1" command="2"/>
                <gain offset-bytes="112" bits="8" command="2"/>
            </group>
        </hardware-controls>
    </monitoring>
	<clocking>
		<clock-source>
			<enum value="Internal" option="24"/>
			<enum value="S/PDIF" option="3"/>
			<enum value="ADAT" option="0"/>
		</clock-source>
		<sample-rate>
			<enum value="44.1 kHz" option="44100"/>
			<enum value="48 kHz" option="48000"/>
			<enum value="88.2 kHz" option="88200"/>
			<enum value="96 kHz" option="96000"/>
            <enum value="176.4 kHz" option="176400"/>
            <enum value="192 kHz" option="192000"/>
		</sample-rate>
	</clocking>
	<settings>
		<buffer-size>
			<enum value="32"/>
			<enum value="64"/>
			<enum value="128"/>
			<enum value="256"/>
			<enum value="512"/>
			<enum value="1024"/>
			<enum value="2048"/>
		</buffer-size>
        <meter-source offset-bytes="184" bits="8" command="8">
            <enum value="Analogue" option="1"/>
        </meter-source>
        <hardware-meters>
            <meters-l offset-bytes="136" bytes="10">
                <table name="Analogue" value="0, 1, 2, 3, 4, 5, 6, 7, 18, 19"/>
            </meters-l>
            <meters-m offset-bytes="146" bytes="10">
                <table name="Analogue" value="0, 1, 2, 3, 4, 5, 6, 7, 14, 15"/>
            </meters-m>
            <meters-h offset-bytes="156" bytes="10">
                <table name="Analogue" value="0, 1, 2, 3, 4, 5, 6, 7, 12, 13"/>
            </meters-h>
        </hardware-meters>
		<spdif-mode name="S/PDIF Source" num="0" >
            <mode>
                <enum value="RCA" option="2"/>
                <enum value="Optical" option="1"/>
            </mode>
            <input offset-bytes="132" bits="2" command="4"/>
            <output offset-bytes="124" bits="2" command="4"/>
		</spdif-mode>
        <standalone offset-bytes="188" bits="1"/>
	</settings>
    <preset>
        <enum value="Direct Routing"/>
        <enum value="System Playback"/>
        <enum value="2 Channel Analogue"/>
        <enum value="8 Channel Analogue"/>
        <enum value="Digital"/>
        <enum value="Analogue + Digital"/>
        <enum value="Standalone Preamp"/>
        <enum value="Empty"/>
    </preset>
    <notifications>
        <notification name="dim-mute" value="0x00200000"/>
        <notification name="monitor" value="0x00400000"/>
    </notifications>
	<appspace appspace-size="8392" app-ofs="200" appstorage-size="8192" flash-command="5"/>
	<routing num="75" num-m="67" num-h="63"/>
    <firmware>
        <segment name="App_Upgrade" nickname="App" version="1016" file="ClarettThunderbolt.tca">
            <version offset-bytes="8" bits="32"/>
        </segment>
        <segment name="FPGA_Upgrade" nickname="FPGA" version="1021" file="fp001005_tb_top.bit">
            <version offset-bytes="12" bits="32"/>
        </segment>
    </firmware>
</device>
