<Schema name="FDTASinterfaceChannelParameterSchema" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:fdt="x-schema:FDTDataTypesSchema.xml" xmlns:appId="x-schema:FDTApplicationIdSchema.xml">
	<!--Definition of Attributes-->
	<AttributeType name="schemaVersion" dt:type="number" default="1.21"/>       
	<AttributeType name="frameApplicationTag" dt:type="string"/>
	<AttributeType name="gatewayBusCategory" dt:type="uuid"/>
	<AttributeType name="protectedByChannelAssignment" dt:type="boolean"/>
	<AttributeType name="channelNumber" dt:type="ui1"/>	
	
	<AttributeType name="useTransparentMode" dt:type="boolean" />
	<AttributeType name="analogResolution" dt:type="ui1" /> <!-- number of significant bits (0...15) -->

	<!--Definition of Elements-->
	<ElementType name="DigitalIO" content="textOnly" model="closed" order="seq">
		<attribute type="fdt:bitPosition" required="yes"/> <!-- 0...3 with Digital Slaves, 0...15 with transparent mode -->
		<attribute type="fdt:bitLength" required="yes"/> 
		<attribute type="channelNumber" required="no"/> <!-- TODO: Wozu brauchen wir das?? -->
		<attribute type="useTransparentMode" required="no"/>
	</ElementType>

	<ElementType name="AnalogIO" content="textOnly" model="closed" order="seq">
		<attribute type="channelNumber" required="yes"/>
		<attribute type="analogResolution" required="no"/>
	</ElementType>

	<ElementType name="FDTChannel" content="eltOnly" model="closed" order="seq">
		<attribute type="schemaVersion" required="no"/>                     
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:tag" required="yes"/>
		<attribute type="fdt:id" required="yes"/>
		<attribute type="fdt:semanticId" required="no"/>                                                                                                              
		<attribute type="protectedByChannelAssignment" required="yes"/>
		<attribute type="fdt:signalType" required="yes"/>
		<attribute type="frameApplicationTag" required="no"/>
     		<attribute type="appId:applicationId" required="no"/> 
		<attribute type="fdt:descriptor" required="no"/>     
     		<group order="one" minOccurs="1" maxOccurs="1">
			<element type="DigitalIO"/>
			<element type="AnalogIO"/>				
		</group>     
		<element type="fdt:BitEnumeratorEntries" minOccurs="0" maxOccurs="1"/>  
		<element type="fdt:Unit" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:Alarms" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:Ranges" minOccurs="0" maxOccurs="1"/>
      		<element type="fdt:Deadband" minOccurs="0" maxOccurs="1"/>	
		<element type="fdt:SubstituteValue" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="FDTChannelType" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<element type="fdt:VersionInformation" minOccurs="1" maxOccurs="1"/>
		<attribute type="gatewayBusCategory" required="no"/>
	</ElementType>
	<ElementType name="FDT" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="schemaVersion" required="no"/>                                          
		<element type="FDTChannelType" minOccurs="1" maxOccurs="1"/>
		<element type="FDTChannel" minOccurs="1" maxOccurs="1"/>
	</ElementType>
</Schema>
