代码拉取完成,页面将自动刷新
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This XSD file describe the output from the DBCC program, a program
that turns DBC files into something more useful (either C code or XML ),
see https://github.com/howerj/dbcc for more information.
There is more information that needs to be included in this files, as a DBC
file also contains information about which nodes receive and send signals, and
there is extra type information for signals (like specific values meaning special
things) which currently are not processed by DBCC. Multiplexed signals and
information about remote frames is also not stored, as it is not yet extracted.
This XSD cannot describe CAN FD messages and signals. -->
<!-- The CAN database is comprised of messages which each node (or ECU)
connected to the bus can send or receive -->
<xs:element name="candb">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="message"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- A can message is a package of data that is broadcast to each ECU on the
bus, it has an ID and a package length, with zero to eight bytes of
data -->
<xs:element name="message">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="id" type="can-id"/>
<!-- 11 or 29 bit CAN ID -->
<xs:element name="dlc" type="dlc"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="signal"/>
<xs:element maxOccurs="1" minOccurs="0" ref="multiplexor-group"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- A signal is a member of a message, it describes how to turn
a message into a type (such as a float, an integer, ...) by
specifying where in the message and how many bits the value it.
Instead of doing the rational thing and only choosing and standardizing
on one endianess (does not matter which one, just pick *one*) messages
can contain signals of differing endianess -->
<xs:element name="signal">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="startbit" type="startbit"/>
<xs:element name="bitlength" type="bitlength"/>
<xs:element name="endianess" type="endianess"/>
<xs:element name="scaling" type="xs:float"/>
<xs:element name="offset" type="xs:float"/>
<xs:element name="minimum" type="xs:float"/>
<xs:element name="maximum" type="xs:float"/>
<xs:element name="signed" type="xs:boolean"/>
<xs:element name="floating" type="xs:unsignedInt"/>
<xs:element name="units" type="xs:string"/>
<!-- an optional multiplexor, of which there can only be one per
message -->
<xs:element minOccurs="0" maxOccurs="1" name="multiplexed-on" type="xs:unsignedInt"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- a multiplexor group consists of a multiplexor and a series of messages,
which signal gets decoded depends on the value of the multiplexor -->
<xs:element name="multiplexor-group">
<xs:complexType>
<xs:sequence>
<xs:element ref="multiplexor"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="multiplexed"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- a multiplexor is just an ordinary signal, although it really should be
unsigned... -->
<xs:element name="multiplexor">
<xs:complexType>
<xs:sequence>
<xs:element ref="signal"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- a multiplexed signal consists of a value that the multiplexor should be
when the signal is to be decoded and a descriptor of the signal -->
<xs:element name="multiplexed">
<xs:complexType>
<xs:sequence>
<xs:element name="multiplexed-on" type="xs:unsignedInt"/>
<xs:element ref="signal"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Only two valid byte orders, "motorola" (Big Endian) and "intel" (Little Endian) -->
<xs:simpleType name="endianess">
<xs:restriction base="xs:string">
<xs:enumeration value="motorola"/>
<xs:enumeration value="intel"/>
</xs:restriction>
</xs:simpleType>
<!-- 2^29-1 for 29 bit CAN IDs, 2047 for 11-bit can IDS -->
<xs:simpleType name="can-id">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="3221225472"/> <!-- Maximum ID should be '536870911', some DBCs do not abide by this -->
</xs:restriction>
</xs:simpleType>
<!-- DLC 0-8 are valid values -->
<xs:simpleType name="dlc">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="8"/>
</xs:restriction>
</xs:simpleType>
<!-- Bit lengths of zero do not make sense, the maximum bit length is
the maximum length in a CAN package -->
<xs:simpleType name="bitlength">
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
<!-- Offset into the CAN package data, limited by maximum length of a CAN
package -->
<xs:simpleType name="startbit">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。