Serial Communications Syntax - Barco BarcoReality SIM6 Ultra R9040150 User Manual

Barcoreality sim6 ultra series/ serial communications basic
Hide thumbs Also See for BarcoReality SIM6 Ultra R9040150:
Table of Contents

Advertisement

1. Serial Communications Basics
1.5

Serial Communications Syntax

Characters
In this manual, all characters are expressed using the C-Language syntax:
decimal values
hexadecimal values
Negative Values/Numbers
The 2s complement number system is used to express negative numbers
Pascal-language string
A Pascal-language string consists of one or more characters. The first character of the string contains the length of the string.
Therefore, a Pascal-language string is limited to 255 characters.
Pascal string 'Hello world"
length
'h'
'e'
'l'
'l'
'o'
"
'w'
'o'
'r'
'l'
'd'
C-language string
A C-language string consists of one or more characters. The last character of the string is always the NULL character \x00. There-
fore, the length of a C-language string is determined by the position of the NULL character...
C string 'Hello world"
'h'
'e'
'l'
'l'
'o'
"
'w'
'o'
'r'
'l'
2. ddd=0...255
3. hh=00...ff
12
2
ddd
3
\xhh
\x0b
\x68
\x65
\x6c
\x6c
\x6f
\x20
\x77
\x6f
\x72
\x6c
\x64
\x68
\x65
\x6c
\x6c
\x6f
\x20
\x77
\x6f
\x72
\x6c
R5976538 BARCOREALITY SIM6 ULTRA SERIES 08/06/2005

Advertisement

Table of Contents
loading

Table of Contents