<device>
    <nickname offset-bytes="16" bytes="32"/>
    <mixer high="false">
        <inputs num="18" pin0="0x300"/>
        <mixes  num="10" pin0="0x300"/>
    </mixer>
    <inputs>
        <analogue   name="Analogue 1"   stereo-name="Analogue 1-2"  pin="0x080">
            <air    offset-bytes="149" bits="1" command="8"/>
            <mode   offset-bytes="124" bits="1" command="7">
                <enum value="Line" option="0"/>
                <enum value="Inst" option="1"/>
            </mode>
        </analogue>
        <analogue   name="Analogue 2"                               pin="0x081">
            <air    offset-bytes="150" bits="1" command="8"/>
            <mode   offset-bytes="125" bits="1" command="7">
                <enum value="Line" option="0"/>
                <enum value="Inst" option="1"/>
            </mode>
        </analogue>
        <spdif-rca  name="S/PDIF 1"     stereo-name="S/PDIF 1-2"    pin="0x180" pin-h="0x0"/>
        <spdif-rca  name="S/PDIF 2"                                 pin="0x181" pin-h="0x0"/>
        <adat       name="ADAT 1"       stereo-name="ADAT 1-2"      pin="0x200" pin-h="0x0"/>
        <adat       name="ADAT 2"                                   pin="0x201" pin-h="0x0"/>
        <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"/>
    </inputs>
    <outputs>
        <analogue   name="Monitor Output 1" stereo-name="Monitor Outputs 1-2"   pin="0x080">
            <gain                       offset-bytes="52"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="102"  bits="2"    command="3"/>
        </analogue>
        <analogue   name="Monitor Output 2"                                     pin="0x081">
            <gain                       offset-bytes="54"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="103"  bits="2"    command="3"/>
        </analogue>
        <analogue   name="Line Output 3"    stereo-name="Line Outputs 3-4"      pin="0x082" headphone="1">
            <gain                       offset-bytes="56"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="104"  bits="2"    command="3"/>
        </analogue>
        <analogue   name="Line Output 4"                                        pin="0x083" headphone="1">
            <gain                       offset-bytes="58"   bits="16"   command="1" gain-mode="gain"/>
            <enable-hardware-control    offset-bytes="105"  bits="2"    command="3"/>
        </analogue>
    </outputs>
    <record-outputs>
        
        <!-- Record outputs 0-1 are present at all sample rates -->
        <record pin="0x600"             input="0"/>
        <record pin="0x601"             input="1"/>
        
        <!-- Record outputs 2-7 are not present at high sample rates -->
        <record pin="0x602" pin-h="0x0" input="2"/>
        <record pin="0x603" pin-h="0x0" input="3"/>
        <record pin="0x604" pin-h="0x0" input="4"/>
        <record pin="0x605" pin-h="0x0" input="5"/>
        <record pin="0x606" pin-h="0x0" input="6"/>
        <record pin="0x607" pin-h="0x0" input="7"/>
        
        <!-- Record outputs 8-11 are not present at medium or high sample rates -->
        <record pin="0x608" pin-m="0x0" input="8"/>
        <record pin="0x609" pin-m="0x0" input="9"/>
        <record pin="0x60a" pin-m="0x0" input="10"/>
        <record pin="0x60b" pin-m="0x0" input="11"/>
        
    </record-outputs>
    <monitoring offset-bytes="49" bytes="71">
        <preset>
            <enum value="1-2"   option="2" mapping="0, 0, x, x"/>
            <enum value="All"   option="1" mapping="0, 0, 0, 0"/>
            <enum value="None"  option="0" mapping="x, x, x, x"/>
        </preset>
        
        <hardware-controls>
            <group exclusive="true" strategy="red">
                <mute   offset-bytes="49"   bits="1"    command="2"/>
                <dim    offset-bytes="50"   bits="1"    command="2"/>
                <gain   offset-bytes="118"  bits="16"   command="2"/>
            </group>
        </hardware-controls>
        
    </monitoring>
    <clocking>
        <clock-source>
            <enum value="Internal"  option="41"/>
            <enum value="S/PDIF"    option="42"/>
            <enum value="ADAT"      option="43"/>
        </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>
        <spdif-mode name="S/PDIF Source" num="0" default="Optical">
            <mode>
                <enum value="Optical" option="1"/>
            </mode>
            <input  offset-bytes="158" bits="2" command="4"/>
            <output offset-bytes="140" bits="2" command="4"/>
        </spdif-mode>
        <standalone offset-bytes="141" bits="1"/>
    </settings>
    <preset>
        <enum value="Direct Routing"/>
        <enum value="System Playback"/>
        <enum value="2 Channel Analogue"/>
        <enum value="Digital"/>
        <enum value="Analogue + Digital"/>
        <enum value="Standalone Preamp"/>
        <enum value="Empty"/>
    </preset>
    <notifications>
        <!--
            These allow the device to update the monitor status or the dim-mute status on Focusrite Control.
            Notifications arrive in the form of 32-bit unsigned integers. The value given for each notification
            below (e.g. 0x00200000) is a bit mask; if the corresponding bit is set in the received notification
            then the appropriate part of the model in Focusrite Control is updated (e.g. monitor or dim-mute).
         
            Note that this section is identical for all Claretts and Scarletts (i.e. dim-mute 0x00200000 and
            monitor 0x00400000).
         -->
        <notification name="dim-mute"   value="0x00200000"/>
        <notification name="monitor"    value="0x00400000"/>
    </notifications>
    <appspace appspace-size="8352" app-ofs="160" appstorage-size="8192" flash-command="6"/>
    <routing num="64" num-m="60" num-h="58"/>
    <firmware>
        <segment name="App_Upgrade" nickname="App" version="1993" file="ClarettPlus_2Pre.bin">
            <version offset-bytes="12" bits="32"/>
        </segment>
    </firmware>
    <state>
        <power-mode offset-bytes="159" bytes="1" bits="8"/>
    </state>
</device>
