SeaTrac Serial Command Interface Reference
Page 29
6.
Message Field Type and Constant Definitions
Message payloads contain a sequence of data fields as defined by the CID code at the start of
the message.
Depending on the CID code specified, the data fields may differ in length and meaning, but all
are built up out of simple defined data types discussed in this section…
6.1.
Primitive Types
For basic exchange of data, the following primitive numeric data types are used. Unless
otherwise stated all multi-byte data types are transmitted least-significant-byte first (Little-
Endean).
BOOLEAN
A Boolean flag encoded in a byte (UINT8) with 0x00 representing
FALSE, and a non-zero value (typically 0xFF) representing TRUE.
DOUBLE
An eight byte representation of a Double-precision floating-point
number as defined by the IEEE754 standard (1 sign bit, 11 bit
exponent, 52 bit fraction).
FLOAT
(or SINGLE)
An four byte representation of a Single-precision floating-point
number as defined by the IEEE754 standard (1 sign bit, 8 bit
exponent, 23 bit fraction).
INT8
A single byte representing an 8-bit signed integer (value between
-128 and 127)
INT16
A two byte representation of a 16-bit signed integer (value
between -32768 and 32767)
INT32
A four byte representation of a 32-bit signed integer (value
between -2147483648 and 2147483647)
INT64
An eight byte representation of a 64-bit signed integer (value
between -9223372036854775808 and 9223372036854775807)
UINT8
A single byte representing an 8-bit unsigned integer (value
between 0 and 255)
UINT16
A two byte representation of a 16-bit unsigned integer (value
between 0 and 65535)
UINT32
A four byte representation of a 32-bit unsigned integer (value
between 0 and 4294967295)
UINT64
An eight byte representation of a 64-bit unsigned integer (value
between 0 and 18446744073709551615)
1
For further details, see
http://en.wikipedia.org/wiki/Double-precision_floating-point_format
2
For further details, see
http://en.wikipedia.org/wiki/Single_precision
.
Содержание seatrac X100 Series
Страница 2: ......
Страница 6: ...SeaTrac Serial Command Interface Reference Page 6...
Страница 139: ......