forked from billvaglienti/ProtoGen
-
Notifications
You must be signed in to change notification settings - Fork 5
/
dependson.xml
49 lines (39 loc) · 3.84 KB
/
dependson.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<Protocol file="globaldependson" comment="This is an example of a protocol description file another file depends on">
<Enum name="GPSConstants" file="globalenum" comment="Constants used with GPS systems">
<Value name="GPS_BAND_L1" value="0"/>
<Value name="GPS_BAND_L2" value="1"/>
<Value name="GPS_BAND_L5" value="2"/>
<Value name="NUM_GPS_BANDS" value="3"/>
<Value name="NUM_GPS_SATS" value="36"/>
</Enum>
<Documentation comment="------------"/>
<Documentation name="Added documentation" paragraph="1" comment="You can add more documentation in between packets. Each Documentation tag is includes an optional paragraph label, with controllable outline level
You can have multiple paragraphs in a documentation tag by placing two line feeds in the xml"/>
<Documentation comment="------------"/>
<Documentation name="Packets" paragraph="1"/>
<Structure name="testPacket" encode="false" decode="false" file="DemolinkProtocol.h" comment="A simple packet structure demonstrating that you can output basic structures without encodings">
<Enum name="testPktIds" comment="Values used in the definition of the generic packet">
<Value name="TEST_PKT_SYNC_BYTE0" value="0x55" comment="First synchronization byte"/>
<Value name="TEST_PKT_SYNC_BYTE1" value="0xAA" comment="Second synchronization byte"/>
<Value name="TEST_PKT_MAX_DATA" value="255" comment="Maximum number of data bytes in a test packet"/>
<Value name="TEST_PKT_OVERHEAD" value="6" comment="Overhead of a packet beyond the number of data bytes"/>
</Enum>
<Data name="sync0" inMemoryType="unsigned8" testwarning="I want to verify the warning for this" comment="First synchronization byte to indicate a packet may be forthcoming"/>
<Data name="sync1" inMemoryType="unsigned8" comment="Second synchronization byte to indicate a packet may be forthcoming"/>
<Data name="length" inMemoryType="unsigned8" comment="Number of data bytes in the packet"/>
<Data name="pkttype" inMemoryType="unsigned8" comment="Packet type identifier"/>
<Data name="data" inMemoryType="unsigned8" array="TEST_PKT_MAX_DATA+2" comment="Packet data space, plus 2 bytes checksum"/>
<Data name="rxstate" inMemoryType="unsigned16" hidden="true" neverOmit="true" comment="Receive state for processing a receive packet byte by byte, not part of the transmission"/>
</Structure>
<Packet name="KlvUserData" structureInterface="true" parameterInterface="true" comment="This packet is used to set and query the values of user-configurable KLV tags"
ID="ORION_PKT_KLV_USER_DATA1, ORION_PKT_KLV_USER_DATA2;ORION_PKT_KLV_USER_DATA3 ORION_PKT_KLV_USER_DATA4 ORION_PKT_KLV_USER_DATA5 ORION_PKT_KLV_USER_DATA6">
<Data name="Key" inMemoryType="unsigned8" comment="UAS Local Set key" />
<Data name="SubKey" inMemoryType="unsigned8" comment="UAS Local Set sub-key, if applicable (e.g., security metadata)"/>
<Data name="Value" inMemoryType="string" array="128" default="null" comment="Variable-length value string"/>
</Packet>
<Structure name="PositionLLA" file="base_types" comparefile="compare/base_compare" printfile="compare/base_print" mapfile="map/base_map" comment="Position in latitude, longitude, and altitude with respect to the WGS-84 ellipsoid">
<Data name="latitude" inMemoryType="float64" encodedType="signed32" max="pi/2" comment="The latitude of the position in radians, positive North"/>
<Data name="longitude" inMemoryType="float64" encodedType="signed32" max="pi" comment="The longitude of the position in radians, positive East"/>
<Data name="altitude" inMemoryType="float64" encodedType="unsigned24" min="-1000" scaler="1000" comment="The altitude above the WGS-84 ellipsoid of the position in meters"/>
</Structure>
</Protocol>