Lexicon RV-8 V2.0 - SERIAL PROTOCOL DEFINITIONS REV 1-8 Manual page 23

Serial protocol definition
Table of Contents

Advertisement

Lexicon
ParamType:
Param Type Name
PARAM_TYPE_UINT8
PARAM_TYPE_UINT16
PARAM_TYPE_CSTR8
PARAM_TYPE_CSTR13
PARAM_TYPE_UINT32
PARAM_TYPE_BOOLEAN
PARAM_TYPE_INT8
PARAM_TYPE_BRANCH
PARAM_TYPE_INT16
PARAM_TYPE_CSTR20
PARAM_TYPE_ARRAY
PARAM_TYPE_ARRAYITEM
Data:
The data value transmitted is dependent on the ParamType, as described above.
The CurrentValue is always packed starting at the CurrentValue [0] byte in the
packet. For multi-byte data, the values are packed LSB first(CurrentValue [0]) to
MSB(CurrentValue [0+(num bytes-1)]). For example: Setting a given signed 16
bit parameter to a value of -300 the data array would be packed as follows:
Data[0] = 0xd4
Data[1] = 0xfe
Data[2 - 13] = don't care.
If a parameter's current value is a signed 16 bit parameter with a value of -3 the
data array would be packed as follows:
Data[0] = 0xfd
Data[1] = 0xff
Data[2 - 13] = don't care.
All signed values are in the 2's compliment format.
RV-8 Serial Communications Protocol
ParamTy
Type Description
pe ID
0
Unsigned 8 bit integer(0 to
255)
1
Unsigned 16 bit integer(0 to
65535)
2
Zero terminated string of 8
ascii characters
3
Zero terminated string of 13
ascii characters
4
Unsigned 32 bit integer (0 to
4,294,967,295 )
5
Boolean( 0 to 1)
6
Signed 8 bit integer
(-127 to 128)
7
Parameter Branch
8
Signed 16 bit integer
(-32,767 to 32,768)
9
Zero terminated string of 20
ascii characters
10
Unsigned 16 bit number
representing the number of
elements in the array,
another 16 bit number
representing the number of
bytes in an ArrayItem
11
Unsigned 16 ParamId,
Unsigned 8 bit ParamType,
Unsigned 16 ArrayItem
Index,
Unsigned 8 Databytes 0 to
128
Data Size
(Bytes)
1
2
9
14
4
1
1
N/A
2
21
4
133
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rv-8

Table of Contents