Skip to content

Commit 5d65840

Browse files
committed
Release v8.0
2 parents c640f46 + e3aa140 commit 5d65840

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+767
-559
lines changed

aliases/aliases.adoc

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ For example let's assume there is some message definition like the one below:
1818
<int name="SomeField" type="uint32" />
1919
...
2020
</message>
21-
</schema>
21+
</schema>
2222
----
2323
In case there is a need to rename the **SomeField** name to be **SomeOtherField**,
2424
then the message definition can add an **&lt;alias&gt;** with the old name to
25-
the renamed field in order to keep the old client code compiling.
25+
the renamed field in order to keep the old client code compiling.
2626
[source,xml]
2727
----
2828
<?xml version="1.0" encoding="UTF-8"?>
@@ -34,7 +34,7 @@ the renamed field in order to keep the old client code compiling.
3434
</fields>
3535
<alias name="SomeField" field="$SomeOtherField" />
3636
</message>
37-
</schema>
37+
</schema>
3838
----
3939
In such case the code generator must allow access of the renamed field by
4040
both old and new names.
@@ -63,7 +63,7 @@ there was an enum field with limited number of valid values:
6363
</enum>
6464
...
6565
</message>
66-
</schema>
66+
</schema>
6767
----
6868
When need arises to introduce new value the developer may decide to save I/O
6969
traffic reuse the same byte occupied by the `SomeEnum` field, like below.
@@ -82,10 +82,10 @@ traffic reuse the same byte occupied by the `SomeEnum` field, like below.
8282
</bitfield>
8383
...
8484
</message>
85-
</schema>
85+
</schema>
8686
----
8787
In order to keep old client code compiling it is possible to introduce
88-
alias to the `SomeEnum` member of the <<fields-bitfield, &lt;bitfield&gt; >>
88+
alias to the `SomeEnum` member of the <<fields-bitfield, &lt;bitfield&gt; >>
8989
like this:
9090
[source,xml]
9191
----
@@ -103,15 +103,15 @@ like this:
103103
</fields>
104104
<alias name="SomeEnum" field="$F1.SomeEnum" />
105105
</message>
106-
</schema>
106+
</schema>
107107
----
108108
There can be any number of different **&lt;alias&gt;** nodes. The elements
109109
that are allowed to have **&lt;alias&gt;**-es are <<messages-messages, &lt;message&gt; >>,
110110
<<interfaces-interfaces, &lt;interface&gt; >>, and <<fields-bundle, &lt;bundle&gt; >>.
111111

112112
[[aliases-description]]
113113
=== Description ===
114-
The **&lt;alias&gt;** node may also have **description**
114+
The **&lt;alias&gt;** node may also have **description**
115115
<<intro-properties, property>> which is expected to find its way into
116116
the generated code as a comment for the relevant access functions.
117117
[source,xml]
@@ -160,7 +160,7 @@ When a new <<messages-messages, &lt;message&gt; >> or <<interfaces-interfaces, &
160160
copy all the fields from other already defined <<messages-messages, &lt;message&gt; >>, <<interfaces-interfaces, &lt;interface&gt; >>, or <<fields-bundle, &lt;bundle&gt; >>
161161
(using **copyFieldsFrom** <<intro-properties, property>>).
162162
By default all the <<aliases-aliases, &lt;alias&gt; >> definitions are also copied.
163-
It is possible to modify this default behavior by using **copyFieldsAliases**
163+
It is possible to modify this default behavior by using **copyFieldsAliases**
164164
<<intro-properties, property>> with <<intro-boolean, boolean>> value.
165165
[source,xml]
166166
----
@@ -173,10 +173,9 @@ It is possible to modify this default behavior by using **copyFieldsAliases**
173173
<message name="Msg2" id="2" copyFieldsAliases="false">
174174
...
175175
</message>
176-
176+
177177
</schema>
178178
----
179179

180180
Use <<appendix-alias, properties table>> for future references.
181181

182-

appendix/alias.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<<<
22
[[appendix-alias]]
33
=== Properties of &lt;alias&gt; ===
4-
Refer to <<aliases-aliases, Aliases>> chapter for detailed description.
4+
Refer to <<aliases-aliases, Aliases>> chapter for detailed description.
55
Introduced in DSL version **3**.
66

77
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]

appendix/appendix.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ include::alias.adoc[]
2828
include::frame.adoc[]
2929
include::layers.adoc[]
3030
include::checksum.adoc[]
31+
include::sync.adoc[]
3132
include::value.adoc[]
3233
include::custom.adoc[]

appendix/bitfield.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== Properties of &lt;bitfield&gt; Field ===
44
The **&lt;bitfield&gt;** field has all the <<appendix-fields, common>> properties as
55
well as ones listed below. Refer to <<fields-bitfield, &lt;bitfield&gt; Field>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]
99
|===

appendix/bundle.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== Properties of &lt;bundle&gt; Field ===
44
The **&lt;bundle&gt;** field has all the <<appendix-fields, common>> properties as
55
well as ones listed below. Refer to <<fields-bundle, &lt;bundle&gt; Field>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]
99
|===

appendix/checksum.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== Properties of &lt;checksum&gt; Frame Layer ===
44
The **&lt;checksum&gt;** layer has all the <<appendix-layers, common>> properties as
55
well as ones listed below. Refer to <<frames-checksum, &lt;checksum&gt; Layer>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]
99
|===

appendix/custom.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
=== Properties of &lt;custom&gt; Frame Layer ===
44
The **&lt;custom&gt;** layer has all the <<appendix-layers, common>> properties as
55
well as ones listed below. Refer to <<frames-custom, &lt;custom&gt; Layer>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^27,^.^11,^.^8,^.^10,^.^10,34", options="header"]
99
|===
1010
|Property Name|Allowed Type / Value|DSL Version|Required|Default Value ^.^|Description
1111
|**checksumFrom**|<<intro-names, name>> string|5|no (unless **semanticLayerType** is "checksum" and **checksumUntil** is empty)||Name of the frame layer, from which the checksum calculation starts. Applicable only when `semanticLayerType="checksum"`.
1212
|**checksumUntil**|<<intro-names, name>> string|5|no (unless **semanticLayerType** is "checksum" and **checksumFrom** is empty)||Name of the frame layer, until (and including) which the checksum calculation is executed. Applicable only when `semanticLayerType="checksum"`.
13-
|**[.line-through]#idReplacement#**|<<intro-boolean, bool>>|1|no|false|Mark the layer as one replacing <<frames-id, &lt;id&gt; >>. +
13+
|**[.line-through]#idReplacement#**|<<intro-boolean, bool>>|1|no|false|Mark the layer as one replacing <<frames-id, &lt;id&gt; >>. +
1414
**Deprecated**, use `semanticLayerType="id"` instead.
1515
|**semanticLayerType**|"payload", "id", "size", "sync", "checksum", "value", "custom"|5|no|custom|Specify what other layer **&lt;custom&gt;** one is replacing.
1616
|===

appendix/data.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== Properties of &lt;data&gt; Field ===
44
The **&lt;data&gt;** field has all the <<appendix-fields, common>> properties as
55
well as ones listed below. Refer to <<fields-data, &lt;data&gt; Field>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]
99
|===
@@ -16,5 +16,3 @@ for detailed description.
1616
|**validValue**|string|7|no||Valid value. Case-insensitive hexadecimal string.
1717
|===
1818

19-
20-

appendix/enum.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
=== Properties of &lt;enum&gt; Field ===
44
The **&lt;enum&gt;** field has all the <<appendix-fields, common>> properties as
55
well as ones listed below. Refer to <<fields-enum, &lt;enum&gt; Field>> chapter
6-
for detailed description.
6+
for detailed description.
77

88
[cols="^.^28,^.^10,^.^8,^.^8,^.^10,36", options="header"]
99
|===

appendix/fields.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<<<
33
[[appendix-fields]]
44
=== Common Properties of Fields ===
5-
Refer to <<fields-common, Common Properties of Fields>> chapter for detailed description.
5+
Refer to <<fields-common, Common Properties of Fields>> chapter for detailed description.
66

77
[cols="^.^27,^.^11,^.^8,^.^8,^.^10,36", options="header"]
88
|===
@@ -29,7 +29,7 @@ Applicable only to members of the <<messages-messages, &lt;message&gt; >> or <<f
2929
|**reuse**|<<intro-references, reference>> string|1|no||Field, definition of which to copy.
3030
|**reuseCode**|<<intro-boolean, bool>>|5|no|false|In case of **reuse** apply **copyCodeFrom** with the same <<intro-references, reference>> string.
3131
|**semanticType**|"none", "messageId", "version", "length"|1|no|none|Specify semantic type of the field. It allows code generator to generate special code for special cases. Value "length" was introduced in **v2** of this specification.
32-
|**sinceVersion**|<<intro-numeric, unsigned>>|1|no|0|Version of the protocol in which field was introduced. +
32+
|**sinceVersion**|<<intro-numeric, unsigned>>|1|no|0|Version of the protocol in which field was introduced. +
3333
Applicable only to members of the <<messages-messages, &lt;message&gt; >> or <<fields-bundle, &lt;bundle&gt; >>.
3434
|**validateMinLength**|<<intro-numeric, numeric>>|7|no||Specify expected minimal serialization length of the field.
3535
|**validOverride**|"any", "replace", "extend", "none"|4|no|any|Control the overriding code for **valid** retrieval.

0 commit comments

Comments
 (0)