@@ -65,28 +65,23 @@ follows.
6565 : B;set_led: Set LED brightness. @brightness: Brightness.\0
6666 \0
6767
68- For more complex objects, like Tuples, Objects and Vectors, some more syntax is
69- needed to communicate their structure to the host.
68+ For more complex objects, like Tuples and Vectors, some more syntax is needed
69+ to communicate their structure to the host.
7070
71- A Tuple type is encoded as a compound type, e.g., ``hB `` (a 16-bit integer and
72- a byte). It can be recognised by the absence of a space between the type
73- signatures. Note that a concatenated or nested Tuple type can not be recognised
74- from its signature, e.g., ``hB `` concatenated with ``ff `` is indistinguishable
75- from ``hBff ``.
76-
77- An Object type is encoded as a compound type like a Tuple, but its type
78- signature is enclosed in parentheses ``( `` and ``) ``, which makes it possible
71+ A Tuple type is encoded as a compound type enclosed in parentheses ``( `` and
72+ ``) ``, e.g., ``(hB) `` (a 16-bit integer and a byte).
73+ The parentheses make it possible
7974to communicate its structure to the host, e.g., the concatenation of ``(hB) ``
80- and ``(ff) `` is ``(hB)(ff) `` and the type signature of a nested Object may look
75+ and ``(ff) `` is ``(hB)(ff) `` and the type signature of a nested Tuple may look
8176like this ``((hB)(ff)) ``.
8277
8378A Vector type signature is enclosed in brackets ``[ `` and ``] ``. So a vector of
847916-bit integers will have as type signature ``[h] ``.
8580
86- Finally, any arbitrary combination of Tuples, Objects and Vectors can be made,
87- resulting in type signatures like ``[((hB)f)] ``, i.e., a Vector of Objects that
88- contain a Tuple of which the first element is an other Object ``(hB) `` and
89- the second element is a float ``f ``.
81+ Finally, any arbitrary combination of Tuples and Vectors can be made, resulting
82+ in type signatures like ``[((hB)f)] ``, i.e., a Vector of Tuples of which the
83+ first element is an other Tuple ``(hB) `` and the second element is a float
84+ ``f ``.
9085
9186
9287Remote procedure calls
@@ -99,9 +94,9 @@ parameters, their values are written to the I/O device. After the parameter
9994values have been received, the device executes the method and writes its return
10095value (if any) back to the I/O device.
10196
102- All native C types (``int ``, ``float ``, ``double ``, etc.), Tuples, Objects,
103- Vectors and any combination of these are currently supported. The host is
104- responsible for packing and unpacking of the values.
97+ All native C types (``int ``, ``float ``, ``double ``, etc.), Tuples, Vectors and
98+ any combination of these are currently supported. The host is responsible for
99+ packing and unpacking of the values.
105100
106101
107102.. _struct : https://docs.python.org/3.5/library/struct.html#format-strings
0 commit comments