EasyManua.ls Logo

STW TC1 - Page 127

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Teleservice Application Framework
User Manual 127/374
STW
type
Prefix
Size
Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
places 15..16)
double precision
NATIVE type definitions
STW
type
Prefix
Size
Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
charn
cn_
8 bit
0x80 .. 0x7F
-128 .. +127
char
uintn
un_
32
bit
0x00000000 .. 0xFFFFFFFF
0 .. 4294967295
unsigned int
sintn
sn_
32
bit
0x80000000 .. 0x7FFFFFFF
- 2147483648 ..
+2147483647
signed int
Not recommended mistakable COMPATIBILITY type definitions
STW
type
Prefix
Size
Range (hexadecimal - HEX)
Range (decimal - DEC)
C equivalent
boolean
q_
8 bit
0x00:FALSE / (!=0x00):TRUE
0:FALSE / (!=0):TRUE
unsigned char
STW also defines the data type boolean to store binary data. A boolean data type can help to increase the
performance. However boolean is target specific and should be used with care. On some platforms a boolean
variable takes 1 bit of memory. Such a variable can only be 0 or 1 but can not be referenced by pointers or
members of a structure. Other platforms define boolean as an integer variable. In this case it is not guaranteed,
that the value of this variable is 0 or 1 - it could also be greater than 1. If a platform defines a boolean as an
integer, the variable can be referenced by pointers or member of a structure.

Table of Contents