<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<?xml-stylesheet type="text/xsl" href="xs3p.xsl"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="3.0.0">
	<xs:include schemaLocation="VhtngClasses.xsd"/>
	<xs:element name="Variable" type="Variable"/>
	<xs:complexType name="Variable">
		<xs:sequence>
			<xs:element name="channelmode" type="Channelmode" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>See enumeration for detailed information</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="elements" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>for scalar variables this is "1"
If the availableis an array, the number of elemts should be given here</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="fifolength" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>for channel mode muxfifo, the depth of the fifo is defined here.
unit : bytes</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="direction" type="Direction" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>see enumeration for detailed info</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="maxbytesize" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>if variable is of the datatype string, this is the length of the string</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="datatype" type="DataType" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>see enumeration</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="rate" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>rate which is used for grouping
unit: microseconds</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="arrayposition" type="xs:int" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Related to the communication layer configuration.
Offset of the variable within the group </xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="LogicalGroup" type="LogicalGroup"/>
	<xs:complexType name="LogicalGroup">
		<xs:annotation>
			<xs:documentation>Related to the communication layer configuration.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="TypeGroup" type="TypeGroup" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
		<xs:attribute name="id" use="optional" type="xs:int">
			<xs:annotation>
				<xs:documentation>the id of the group, where the variable belongs to. </xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>
	<xs:element name="VariableTransportConfiguration" type="VariableTransportConfiguration"/>
	<xs:complexType name="VariableTransportConfiguration">
		<xs:annotation>
			<xs:documentation>Groups for communication layer configuration; Variable transport</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="LogicalGroup" type="LogicalGroup" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="GroupType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="octet"/>
			<xs:enumeration value="long"/>
			<xs:enumeration value="longlong"/>
			<xs:enumeration value="double"/>
			<xs:enumeration value="float"/>
			<xs:enumeration value="short"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="TypeGroup" type="TypeGroup"/>
	<xs:complexType name="TypeGroup">
		<xs:sequence>
			<xs:element name="basicdatatype" type="GroupType" minOccurs="1" maxOccurs="1"/>
			<xs:element name="Variable" type="Variable" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
