Lexicon RV8 V1.0 - SERIAL COMMUNICATIONS PROTOCOL DEFINITION REV 1-7 Manual page 20

Serial communications protocol definition
Table of Contents

Advertisement

Lexicon, Inc.
RV-8 Serial Communications Protocol
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.
Max Value:
This is a 16 bit value representing the maximum value for a parameter. Parameter values
exceeding the maximum will be limited to the maximum. This may be a signed or
unsigned value depending on the Parameter Type.
Min Value:
© 2004 Lexicon, Inc. All rights reserved.
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
Not Used Yet
Printed on: 01/18/05
Data Size
(Bytes)
1
2
9
14
4
1
1
N/A
2
21
4
0
20 of 74

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rv8

Table of Contents